|
1 | 1 | import { signInWithGoogle } from "@/app/login/actions"; |
2 | | -import Balloon, { PurpleBalloon } from "@/shared/components/background/Balloon"; |
| 2 | +import Balloon, { |
| 3 | + GreenBalloon, |
| 4 | + PurpleBalloon, |
| 5 | +} from "@/shared/components/background/Balloon"; |
| 6 | +import CloudLeft from "@/shared/components/background/CloudLeft"; |
| 7 | +import CloudRight from "@/shared/components/background/CloudRight"; |
3 | 8 | import Star from "@/shared/components/background/Star"; |
4 | 9 | import { StarsBackground } from "@/shared/components/background/StarBackground"; |
5 | 10 | import StarSwoop from "@/shared/components/background/StarSwoop"; |
6 | 11 | import GoogleSignInButton from "@/shared/components/GoogleSignInButton"; |
| 12 | +import Logo from "@/shared/components/Logo"; |
7 | 13 |
|
8 | 14 | export default async function LoginPage() { |
9 | 15 | return ( |
10 | | - <div className="relative flex min-h-screen w-full items-center justify-center overflow-clip text-center dark:bg-[linear-gradient(0deg,_#443461,_#130F5A_38%,_#1F1F1F)]"> |
11 | | - <div className="absolute left-0 top-0 h-[1080px] w-[1920px]"> |
12 | | - <StarSwoop className="invisible absolute right-[10%] top-[-30%] z-10 rotate-[15deg] scale-[0.3] dark:visible" /> |
13 | | - <Star className="invisible absolute left-[7%] top-[10%] z-10 scale-[0.4] dark:visible" /> |
14 | | - <Balloon className="absolute bottom-[40%] left-[5%] z-10 size-[10em]" /> |
15 | | - <PurpleBalloon className="absolute bottom-[200px] right-[40px] z-10 size-[15em]" /> |
16 | | - </div> |
17 | | - <StarsBackground |
18 | | - minTwinkleSpeed={0.8} |
19 | | - twinkleProbability={0.9} |
20 | | - className="z-[0]" |
21 | | - /> |
22 | | - <div className="relative z-20 flex content-center justify-center break-words"> |
23 | | - <div className="relative flex h-[50vh] min-h-fit min-w-[55vw] max-w-[80%] flex-col items-center justify-around rounded-xl bg-foreground/20 p-5"> |
24 | | - <div className="mb-3 flex flex-col gap-2"> |
25 | | - <h1 className="mb-3 text-5xl font-bold tracking-tight lg:text-8xl"> |
26 | | - Learn and grow |
27 | | - </h1> |
28 | | - <h2 className="text-2xl font-medium tracking-tight lg:text-4xl"> |
29 | | - with your personalized classroom agent |
30 | | - </h2> |
31 | | - </div> |
32 | | - <div className="flex w-2/5 min-w-[50vw] flex-col items-center gap-10"> |
33 | | - <h3 className="text-lg italic lg:text-xl"> |
34 | | - A collaborative space for students and teachers to interact with |
35 | | - the future of LLM-enhanced education. |
36 | | - </h3> |
37 | | - {/* <Button |
38 | | - effect="hoverUnderlineWhiteExpand" |
39 | | - icon={ArrowRightCircle} |
40 | | - iconPlacement="right" |
41 | | - className="h-12 w-full max-w-[20vw] bg-[#200092] text-white shadow-[0px_0px_45px_1px_#6083FF] hover:bg-[#200092]/90" |
42 | | - > |
43 | | - <Link href="classrooms" className="text-lg"> |
44 | | - Start your journey today |
45 | | - </Link> |
46 | | - </Button> */} |
47 | | - <form action={signInWithGoogle}> |
48 | | - <GoogleSignInButton className="h-12 w-full min-w-fit shadow-[0px_0px_45px_1px_#6083FF]" /> |
49 | | - </form> |
| 16 | + <> |
| 17 | + <CloudLeft className="absolute bottom-0 left-0 z-40 origin-bottom-left scale-[0.35] min-[500px]:scale-[0.25] min-[1270px]:scale-[0.15]" /> |
| 18 | + <CloudRight className="absolute bottom-0 right-0 z-40 origin-bottom-right scale-[0.35] min-[500px]:scale-[0.25] min-[1270px]:scale-[0.15]" /> |
| 19 | + <div className="relative flex min-h-screen w-full items-center justify-center overflow-clip text-center dark:bg-[linear-gradient(0deg,_#443461,_#130F5A_38%,_#1F1F1F)]"> |
| 20 | + <div className="absolute left-0 top-0 h-[1080px] w-[1920px]"> |
| 21 | + <StarSwoop className="absolute right-[10%] top-[-33%] z-10 rotate-[15deg] scale-[0.3] dark:visible" /> |
| 22 | + <Star className="invisible absolute left-[7%] top-[10%] z-10 scale-[0.4] dark:visible" /> |
| 23 | + <Balloon className="absolute bottom-[40%] left-[5%] z-10 size-[10em]" /> |
| 24 | + <PurpleBalloon className="absolute bottom-[28%] right-[9%] z-10 size-[9em]" /> |
| 25 | + <GreenBalloon className="absolute bottom-[29%] right-[45%] z-10 size-[3em]" /> |
| 26 | + </div> |
| 27 | + <StarsBackground |
| 28 | + minTwinkleSpeed={0.8} |
| 29 | + twinkleProbability={0.9} |
| 30 | + className="z-[0]" |
| 31 | + /> |
| 32 | + <div className="relative z-20 flex content-center justify-center break-words"> |
| 33 | + <div className="relative flex h-[50vh] min-h-fit min-w-[55vw] max-w-[80%] flex-col items-center justify-around rounded-xl bg-foreground/20 p-5"> |
| 34 | + <div className="justify-content mb-3 flex flex-col items-center gap-2"> |
| 35 | + <div className="w-fit rounded-xl border-[4px] border-border bg-muted/50 px-2 text-center dark:border-none dark:bg-inherit"> |
| 36 | + <Logo className="size-[9vh] fill-foreground stroke-foreground stroke-[1em]" /> |
| 37 | + </div> |
| 38 | + <h1 className="mb-3 text-5xl font-bold tracking-tight lg:text-8xl"> |
| 39 | + Learn and grow |
| 40 | + </h1> |
| 41 | + <h2 className="text-2xl font-medium tracking-tight lg:text-4xl"> |
| 42 | + with your personalized classroom agent |
| 43 | + </h2> |
| 44 | + </div> |
| 45 | + <div className="flex w-2/5 min-w-[50vw] flex-col items-center gap-10"> |
| 46 | + <h3 className="text-lg italic lg:text-xl"> |
| 47 | + A collaborative space for students and teachers to interact with |
| 48 | + the future of LLM-enhanced education. |
| 49 | + </h3> |
| 50 | + {/* <Button |
| 51 | + effect="hoverUnderlineWhiteExpand" |
| 52 | + icon={ArrowRightCircle} |
| 53 | + iconPlacement="right" |
| 54 | + className="h-12 w-full max-w-[20vw] bg-[#200092] text-white shadow-[0px_0px_45px_1px_#6083FF] hover:bg-[#200092]/90" |
| 55 | + > |
| 56 | + <Link href="classrooms" className="text-lg"> |
| 57 | + Start your journey today |
| 58 | + </Link> |
| 59 | + </Button> */} |
| 60 | + <form action={signInWithGoogle}> |
| 61 | + <GoogleSignInButton className="h-12 w-full min-w-fit shadow-[0px_0px_45px_1px_#6083FF]" /> |
| 62 | + </form> |
| 63 | + </div> |
50 | 64 | </div> |
51 | 65 | </div> |
52 | 66 | </div> |
53 | | - </div> |
| 67 | + </> |
54 | 68 | ); |
55 | 69 | } |
0 commit comments