Skip to content

Commit e31dedd

Browse files
committed
fixed front/login page format
made logout button correct
1 parent d4b525b commit e31dedd

File tree

3 files changed

+30
-20
lines changed

3 files changed

+30
-20
lines changed

app/login/page.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ import GoogleSignInButton from "@/shared/components/GoogleSignInButton";
44
export default async function LoginPage() {
55
return (
66
<div className="flex min-h-screen w-full items-center justify-center bg-[linear-gradient(0deg,_#FFF4D9,_#FFEFD2_52%,_#67C5FF)] text-center dark:bg-[linear-gradient(0deg,_#443461,_#130F5A_38%,_#1F1F1F)]">
7-
<div className="flex h-[50vh] w-[70vw] flex-col items-center justify-around rounded-xl bg-foreground/20">
8-
<div className="flex flex-col gap-2">
9-
<h1 className="text-8xl font-bold tracking-tight">Learn and grow</h1>
10-
<h2 className="text-4xl font-medium tracking-tight">
7+
<div className="flex h-[50vh] min-h-fit max-w-[80%] flex-col items-center justify-around rounded-xl bg-foreground/20 p-5">
8+
<div className="mb-3 flex flex-col gap-2">
9+
<h1 className="mb-3 text-5xl font-bold tracking-tight lg:text-7xl">
10+
Learn and grow
11+
</h1>
12+
<h2 className="text-2xl font-medium tracking-tight lg:text-4xl">
1113
with your personalized classroom agent
1214
</h2>
1315
</div>
14-
<div className="flex w-2/5 flex-col items-center gap-10">
15-
<h3 className="text-xl italic">
16+
<div className="flex w-2/5 min-w-[50vw] flex-col items-center gap-10">
17+
<h3 className="text-lg italic lg:text-xl">
1618
A collaborative space for students and teachers to interact with the
1719
future of LLM-enhanced education.
1820
</h3>
@@ -27,7 +29,7 @@ export default async function LoginPage() {
2729
</Link>
2830
</Button> */}
2931
<form action={signInWithGoogle}>
30-
<GoogleSignInButton className="shadow-[0px_0px_45px_1px_#6083FF]" />
32+
<GoogleSignInButton className="h-12 w-full min-w-fit shadow-[0px_0px_45px_1px_#6083FF]" />
3133
</form>
3234
</div>
3335
</div>

app/page.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,25 @@ import Link from "next/link";
55
export default function Home() {
66
return (
77
<div className="flex min-h-screen w-full items-center justify-center bg-[linear-gradient(0deg,_#FFF4D9,_#FFEFD2_52%,_#67C5FF)] text-center dark:bg-[linear-gradient(0deg,_#443461,_#130F5A_38%,_#1F1F1F)]">
8-
<div className="flex h-[50vh] w-[70vw] flex-col items-center justify-around rounded-xl bg-foreground/20">
9-
<div className="flex flex-col gap-2">
10-
<h1 className="text-8xl font-bold tracking-tight">Learn and grow</h1>
11-
<h2 className="text-4xl font-medium tracking-tight">
8+
<div className="flex h-[50vh] min-h-fit max-w-[80%] flex-col items-center justify-around rounded-xl bg-foreground/20 p-5">
9+
<div className="mb-3 flex flex-col gap-2">
10+
<h1 className="mb-3 text-5xl font-bold tracking-tight lg:text-8xl">
11+
Learn and grow
12+
</h1>
13+
<h2 className="text-2xl font-medium tracking-tight lg:text-4xl">
1214
with your personalized classroom agent
1315
</h2>
1416
</div>
15-
<div className="flex w-2/5 flex-col items-center gap-10">
16-
<h3 className="text-xl italic">
17+
<div className="flex w-2/5 min-w-[50vw] flex-col items-center gap-10">
18+
<h3 className="text-lg italic lg:text-xl">
1719
A collaborative space for students and teachers to interact with the
1820
future of LLM-enhanced education.
1921
</h3>
2022
<Button
2123
effect="hoverUnderlineWhiteExpand"
2224
icon={ArrowRightCircle}
2325
iconPlacement="right"
24-
className="h-12 w-full max-w-[20vw] bg-[#200092] text-white shadow-[0px_0px_45px_1px_#6083FF] hover:bg-[#200092]/90"
26+
className="h-12 w-full min-w-fit max-w-[20vw] bg-[#200092] text-white shadow-[0px_0px_45px_1px_#6083FF] hover:bg-[#200092]/90"
2527
>
2628
<Link href="classrooms" className="text-lg">
2729
Start your journey today

shared/components/ui/sidebar/app-sidebar.tsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export function AppSidebar() {
216216
<SidebarMenuItem>
217217
<SidebarMenuButton size="lg" asChild>
218218
<Link href="/">
219-
<div className="flex aspect-square size-9 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground">
219+
<div className="flex aspect-square size-11 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground">
220220
{/* <div className="relative h-[90%] w-[90%] object-contain"> */}
221221
{/* <Image src={"/logo.svg"} fill alt="Logo" className="fill-red-600"/> */}
222222
<Logo className="fill-sidebar-primary-foreground" />
@@ -318,11 +318,17 @@ export function AppSidebar() {
318318
side="top"
319319
className="w-[--radix-popper-anchor-width]"
320320
>
321-
<DropdownMenuItem>
322-
<form action={logout}>
323-
<Button variant={"ghost"}>Sign out</Button>
324-
</form>
325-
</DropdownMenuItem>
321+
<form action={logout}>
322+
<DropdownMenuItem>
323+
<Button
324+
variant={"ghost"}
325+
effect={"hoverUnderline"}
326+
className="min-h-full min-w-full justify-start"
327+
>
328+
Sign out
329+
</Button>
330+
</DropdownMenuItem>
331+
</form>
326332
</DropdownMenuContent>
327333
</DropdownMenu>
328334
</SidebarMenuItem>

0 commit comments

Comments
 (0)