feat: complete MVP foundation auth and dashboard

This commit is contained in:
2026-06-04 09:05:40 +02:00
parent 20615e12a1
commit df7a955736
32 changed files with 880 additions and 139 deletions

View File

@@ -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 />;
}