feat: complete MVP foundation auth and dashboard
This commit is contained in:
@@ -1,19 +1,14 @@
|
||||
import { LockKeyhole } from "lucide-react";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default function LoginPage() {
|
||||
return (
|
||||
<main className="flex min-h-dvh items-center justify-center bg-background px-6 py-12">
|
||||
<section className="w-full max-w-md rounded-lg border bg-card p-6 text-card-foreground">
|
||||
<LockKeyhole className="mb-5 size-6 text-muted-foreground" />
|
||||
<h1 className="text-2xl font-semibold tracking-normal">
|
||||
Login-Platzhalter
|
||||
</h1>
|
||||
<p className="mt-3 text-sm leading-6 text-muted-foreground">
|
||||
Better Auth wird in einem spaeteren Task angebunden. Bis dahin bleibt
|
||||
diese Route als definierter Einstiegspunkt fuer den Admin-Login
|
||||
bestehen.
|
||||
</p>
|
||||
</section>
|
||||
</main>
|
||||
);
|
||||
import { AuthEntry } from "@/components/auth-entry";
|
||||
import { getCurrentMockSession } from "@/lib/mock-session";
|
||||
|
||||
export default async function LoginPage() {
|
||||
const session = await getCurrentMockSession();
|
||||
|
||||
if (session) {
|
||||
redirect("/dashboard");
|
||||
}
|
||||
|
||||
return <AuthEntry />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user