diff options
| author | Dhravya <[email protected]> | 2024-05-26 17:24:15 -0500 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-05-26 17:24:15 -0500 |
| commit | de4e853f088216b89c4b263a5cb2a757e779b4fc (patch) | |
| tree | 68ac67321be7b1ee5e7afcf807749b2f98aab081 /apps/web/app/(auth) | |
| parent | change input height (diff) | |
| download | supermemory-de4e853f088216b89c4b263a5cb2a757e779b4fc.tar.xz supermemory-de4e853f088216b89c4b263a5cb2a757e779b4fc.zip | |
added signin page
Diffstat (limited to 'apps/web/app/(auth)')
| -rw-r--r-- | apps/web/app/(auth)/auth-buttons.tsx | 2 | ||||
| -rw-r--r-- | apps/web/app/(auth)/signin/page.tsx | 83 |
2 files changed, 81 insertions, 4 deletions
diff --git a/apps/web/app/(auth)/auth-buttons.tsx b/apps/web/app/(auth)/auth-buttons.tsx index 9da1f5a5..47dc1448 100644 --- a/apps/web/app/(auth)/auth-buttons.tsx +++ b/apps/web/app/(auth)/auth-buttons.tsx @@ -1,6 +1,6 @@ "use client"; -import { Button } from "@repo/ui/src/button"; +import { Button } from "@repo/ui/src/shadcn/button"; import React from "react"; import { signIn } from "../helpers/server/auth"; diff --git a/apps/web/app/(auth)/signin/page.tsx b/apps/web/app/(auth)/signin/page.tsx index 44d2b4f4..03f2ad7c 100644 --- a/apps/web/app/(auth)/signin/page.tsx +++ b/apps/web/app/(auth)/signin/page.tsx @@ -1,8 +1,85 @@ -import { getThemeToggler } from "../../helpers/lib/get-theme-button"; +import Image from "next/image"; +import Link from "next/link"; +import Logo from "@/public/logo.svg"; +import { signIn } from "@/app/helpers/server/auth"; +import { Google } from "@repo/ui/src/components/icons"; + +export const runtime = "edge"; async function Signin() { - const SetThemeButton = getThemeToggler(); - return <SetThemeButton />; + return ( + <div className="flex items-center justify-between min-h-screen"> + <div className="relative w-1/2 flex items-center min-h-screen bg-secondary p-8"> + <div className="absolute top-0 left-0 p-8 text-white inline-flex gap-2 items-center"> + <Image + src={Logo} + alt="SuperMemory logo" + className="hover:brightness-125 duration-200" + /> + <span className="text-xl">SuperMemory.ai</span> + </div> + + <div> + <h1 className="text-5xl text-foreground mb-8"> + Hello, <span className="text-white">human</span>{" "} + </h1> + <p className="text-white mb-8 text-lg"> + Write, ideate, and learn with all the wisdom of your bookmarks. + </p> + <div className="flex items-center gap-4"> + <div + className={`transition-width z-20 rounded-2xl bg-gradient-to-br from-gray-200/70 to-transparent p-[0.7px] duration-300 ease-in-out w-full`} + > + <form + action={async () => { + "use server"; + await signIn("google"); + }} + > + <button + type="submit" + className={`text-white transition-width flex justify-between w-full items-center rounded-2xl bg-[#37485E] px-6 py-4 outline-none duration-300 focus:outline-none`} + > + <Google /> + <span className="w-full self-start"> + Continue with Google + </span> + </button> + </form> + </div> + </div> + <div className="text-slate-500 mt-16"> + By continuing, you agree to the + <Link href="/terms" className="text-slate-200"> + {" "} + Terms of Service + </Link>{" "} + and + <Link href="/privacy" className="text-slate-200"> + {" "} + Privacy Policy + </Link> + </div> + </div> + </div> + <div className="w-1/2 flex flex-col items-center justify-center min-h-screen"> + <span className="text-3xl leading-relaxed italic mb-8"> + Ready for your{" "} + <span className="text-white font-bold">Second brain</span>? + </span> + + <div> + <Image + className="mx-auto rounded-lg shadow-2xl lg:max-w-none" + src={"/images/carousel-illustration-01.png"} + width={700} + height={520} + alt="Carousel 01" + /> + </div> + </div> + </div> + ); } export default Signin; |