diff options
| author | Dhravya <[email protected]> | 2024-05-26 17:26:51 -0500 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-05-26 17:26:51 -0500 |
| commit | 41b29c800dfc0d4afb8519bbcfc084cd9b1f39ed (patch) | |
| tree | 5e72013c4f39c7d28ed94c79a793e8dca34ba8af /apps/web/app/(auth) | |
| parent | added signin page (diff) | |
| download | supermemory-41b29c800dfc0d4afb8519bbcfc084cd9b1f39ed.tar.xz supermemory-41b29c800dfc0d4afb8519bbcfc084cd9b1f39ed.zip | |
proper redirects
Diffstat (limited to 'apps/web/app/(auth)')
| -rw-r--r-- | apps/web/app/(auth)/signin/page.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/web/app/(auth)/signin/page.tsx b/apps/web/app/(auth)/signin/page.tsx index 03f2ad7c..214a582c 100644 --- a/apps/web/app/(auth)/signin/page.tsx +++ b/apps/web/app/(auth)/signin/page.tsx @@ -28,20 +28,22 @@ async function Signin() { </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`} + 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-3/4`} > <form action={async () => { "use server"; - await signIn("google"); + await signIn("google", { + redirectTo: "/home", + }); }} > <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`} + className={`relative 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"> + <span className="relative w-full self-start"> Continue with Google </span> </button> |