32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
import { Portrait, Slogan, Wordmark } from "@/components/brand/brand";
|
|
|
|
// Rahmen für Einrichten, Anmelden und Einladung — alles mittig, Zeilen ausgeglichen
|
|
// (text-balance, Kai 7.11.2026: kein „an.“ allein in der Zeile): foodplanhero mit Slogan (seit
|
|
// 26.11.35 statt des Symbols), wo es eins gibt Maikes Porträt, dann Titel, Text, Inhalt.
|
|
export function AuthShell({
|
|
title,
|
|
intro,
|
|
portrait,
|
|
children,
|
|
}: {
|
|
title: string;
|
|
intro?: string;
|
|
portrait?: { src: string; name: string } | null;
|
|
children?: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<main className="mx-auto flex min-h-dvh w-full max-w-sm flex-col justify-center gap-6 px-4 py-10">
|
|
<div className="flex flex-col items-center gap-4 text-center">
|
|
<p className="flex flex-col items-center gap-2">
|
|
<Wordmark className="text-4xl" />
|
|
<Slogan />
|
|
</p>
|
|
{portrait ? <Portrait src={portrait.src} name={portrait.name} size={120} className="my-2" /> : null}
|
|
<h1 className="text-balance text-4xl leading-tight">{title}</h1>
|
|
{intro ? <p className="mx-auto max-w-[34ch] text-balance text-muted-foreground">{intro}</p> : null}
|
|
</div>
|
|
{children}
|
|
</main>
|
|
);
|
|
}
|