Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made main page responsive #67

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 34 additions & 3 deletions components/Appbar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
// import React from "react";
// import GoogleLoginButton from "./GoogleLoginButton";
// import UserProfile from "./UserProfile";
// import { getServerSession } from "next-auth";
// import { User } from "lucide-react";
// import { authOptions } from "@/lib/authOptions";

// async function Appbar() {
// const session = await getServerSession(authOptions)
// return (
// <div className="z-20 mr-20 h-20 w-full rounded-b-xl bg-black/10 backdrop-blur-sm fixed">
// <div className=" text-white flex h-full px-6 md:px-20 justify-between items-center ">
// <div
// // onClick={() => route.replace("/")}
// className=" cursor-pointer font-bold text-3xl"
// >
// ShareHub
// </div>
// <div className="flex items-center space-x-10">
// <div className="transition-ease-in duration-500 hover:text-white/65 hover:cursor-pointer hover:text-[17px]">Explore</div>
// <div className="transition-ease-in duration-500 hover:text-white/65 hover:cursor-pointer hover:text-[17px]">About</div>
// <div className="transition-ease-in duration-500 hover:text-white/65 hover:cursor-pointer hover:text-[17px]">Contact</div>
// {!session && <GoogleLoginButton />}
// {session && <UserProfile/>}
// </div>
// </div>
// </div>
// );
// }

// export default Appbar;
import React from "react";
import GoogleLoginButton from "./GoogleLoginButton";
import UserProfile from "./UserProfile";
Expand All @@ -9,14 +40,14 @@ async function Appbar() {
const session = await getServerSession(authOptions)
return (
<div className="z-20 mr-20 h-20 w-full rounded-b-xl bg-black/10 backdrop-blur-sm fixed">
<div className=" text-white flex h-full px-6 md:px-20 justify-between items-center ">
<div className="text-white flex h-full px-4 md:px-8 lg:px-20 justify-between items-center ">
<div
// onClick={() => route.replace("/")}
className=" cursor-pointer font-bold text-3xl"
className="cursor-pointer font-bold text-2xl md:text-3xl"
>
ShareHub
</div>
<div className="flex items-center space-x-10">
<div className="flex items-center space-x-4 md:space-x-10">
<div className="transition-ease-in duration-500 hover:text-white/65 hover:cursor-pointer hover:text-[17px]">Explore</div>
<div className="transition-ease-in duration-500 hover:text-white/65 hover:cursor-pointer hover:text-[17px]">About</div>
<div className="transition-ease-in duration-500 hover:text-white/65 hover:cursor-pointer hover:text-[17px]">Contact</div>
Expand Down
8 changes: 4 additions & 4 deletions components/UserNameForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function UserNameForm({ user }: any) {
<div className="">
<form
onSubmit={handleSubmit}
className={`inline-flex items-center shadow-lg `}
className={` inline m-4 sm:inline-flex items-center shadow-lg `}
>
<div
onFocus={() => setInputActive(true)}
Expand All @@ -38,7 +38,7 @@ function UserNameForm({ user }: any) {
: ""
} flex `}
>
<span className="bg-white rounded-l-2xl py-4 pl-4">
<span className="bg-white rounded-l-2xl py-4 pl-4 sm:pl-4">
sharehub.xyz/
</span>

Expand All @@ -48,7 +48,7 @@ function UserNameForm({ user }: any) {
setUsername(e.target.value);
}}
type="text"
className="py-4 pl-1 outline-none rounded-r-2xl"
className="w-screen outline-none rounded-r-2xl sm:py-4 sm:pl-1 sm:text-base text-sm sm:w-60"
placeholder="username"
/>
</div>
Expand All @@ -60,7 +60,7 @@ function UserNameForm({ user }: any) {
</Button> */}


<div className="ml-6">
<div className="m-4 sm:ml-6">
<MagicButton
title='Join For Free'
/>
Expand Down
6 changes: 3 additions & 3 deletions components/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import TypewriterEffectSmoothDemo from "../HeroText";
async function Home() {
const sesssion = await getServerSession(authOptions)
return (
<div className=" h-screen w-full bg-gray-900 relative flex flex-col items-center justify-center antialiased">
<div className="max-w-7xl mx-auto p-4 ">
<div className=" h-screen w-full mx-0 px-1 bg-gray-900 relative flex flex-col items-center justify-center antialiased">
<div className="w-full sm:max-w-7xl mx-auto p-4 ">
<div className="w-4/5">

<div className="relative z-10 text-3xl md:text-7xl font-sans font-extrabold">
{/* Create Your Personalized Page */}
<TypewriterEffectSmoothDemo/>
</div>
<div className="relative z-10 text-2xl my-3 text-white/50">
<div className="relative z-10 text-xl my-3 text-white/50 sm:text-2xl">
Social Share is a platform that empowers you to build and customize
your own personal page to showcase your online presence and share your
content with the world.
Expand Down