diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-07-12 09:45:41 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-07-12 09:45:41 +0000 |
| commit | db9a02b84724c621a37ec161b8cebc0b313985fb (patch) | |
| tree | f779c42a868f252c757bd2e6007fae56fa86b256 /apps/web/app/signup | |
| parent | 613137ff99442885c5fe679b2cc1172adfc5a283 (diff) | |
| download | karakeep-db9a02b84724c621a37ec161b8cebc0b313985fb.tar.zst | |
feat(ui): Revamp the signin/signup page
Diffstat (limited to 'apps/web/app/signup')
| -rw-r--r-- | apps/web/app/signup/page.tsx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/web/app/signup/page.tsx b/apps/web/app/signup/page.tsx new file mode 100644 index 00000000..841c07a8 --- /dev/null +++ b/apps/web/app/signup/page.tsx @@ -0,0 +1,22 @@ +import { redirect } from "next/dist/client/components/navigation"; +import KarakeepLogo from "@/components/KarakeepIcon"; +import SignUpForm from "@/components/signup/SignUpForm"; +import { getServerAuthSession } from "@/server/auth"; + +export default async function SignUpPage() { + const session = await getServerAuthSession(); + if (session) { + redirect("/"); + } + + return ( + <div className="flex min-h-screen items-center justify-center bg-gray-50 px-4 py-12 sm:px-6 lg:px-8"> + <div className="w-full max-w-md space-y-8"> + <div className="flex items-center justify-center"> + <KarakeepLogo height={80} /> + </div> + <SignUpForm /> + </div> + </div> + ); +} |
