16 lines
671 B
TypeScript
16 lines
671 B
TypeScript
import Image from "next/image";
|
|
|
|
// Rahmen für Einrichten, Anmelden und Einladung: Symbol, Titel, Text, Inhalt.
|
|
export function AuthShell({ title, intro, children }: { title: string; intro?: string; 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">
|
|
<Image src="/icon.svg" alt="" width={56} height={56} priority />
|
|
<h1 className="text-4xl leading-tight">{title}</h1>
|
|
{intro ? <p className="text-muted-foreground">{intro}</p> : null}
|
|
</div>
|
|
{children}
|
|
</main>
|
|
);
|
|
}
|