flowstate/app/page.tsx

35 lines
1.1 KiB
TypeScript

import { auth } from "@/auth";
import { redirect } from "next/navigation";
import Link from "next/link";
export default async function WelcomePage() {
const session = typeof auth === "function" ? await auth() : null;
if (session) {
redirect("/board");
}
return (
<div className="flex h-dvh w-full flex-col items-center justify-center p-6 text-center">
<div className="max-w-md space-y-6">
<h1 className="text-4xl font-extrabold tracking-tight">Flowstate</h1>
<p className="text-muted">Welcome Page</p>
<div className="flex items-center justify-center gap-4">
<Link
href="/login/"
className="px-4 py-2 text-sm font-medium rounded-lg bg-foreground text-background hover:opacity-70 transition-opacity"
>
Sign In
</Link>
{/* TODO */}
<Link
href="/register/"
className="px-4 py-2 text-sm font-medium rounded-lg border border-border hover:opacity-70 transition-opacity"
>
Register
</Link>
</div>
</div>
</div>
);
}