aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/app/signin
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/app/signin')
-rw-r--r--apps/web/app/signin/page.tsx25
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/web/app/signin/page.tsx b/apps/web/app/signin/page.tsx
new file mode 100644
index 00000000..fed71b62
--- /dev/null
+++ b/apps/web/app/signin/page.tsx
@@ -0,0 +1,25 @@
+import { PackageOpen } from "lucide-react";
+import SignInForm from "@/components/signin/SignInForm";
+import { redirect } from "next/dist/client/components/navigation";
+import { getServerAuthSession } from "@/server/auth";
+
+export default async function SignInPage() {
+ const session = await getServerAuthSession();
+ if (session) {
+ redirect("/");
+ }
+
+ return (
+ <div className="grid min-h-screen grid-rows-6 justify-center">
+ <div className="row-span-2 flex w-96 items-center justify-center space-x-2">
+ <span>
+ <PackageOpen size="60" className="" />
+ </span>
+ <p className="text-6xl">Hoarder</p>
+ </div>
+ <div className="row-span-4 px-3">
+ <SignInForm />
+ </div>
+ </div>
+ );
+}