import AppLogoIcon from '@/components/app-logo-icon'; import { Button } from '@/components/ui/button'; import { useLocalizedRoutes } from '@/hooks/useLocalizedRoutes'; import { Link } from '@inertiajs/react'; import { Sparkles, Camera, ShieldCheck } from 'lucide-react'; import { type PropsWithChildren } from 'react'; import { useTranslation } from 'react-i18next'; interface AuthLayoutProps { name?: string; title?: string; description?: string; logoSrc?: string; logoAlt?: string; } export default function AuthSimpleLayout({ children, title, description, name, logoSrc, logoAlt }: PropsWithChildren) { const { t } = useTranslation('auth'); const { localizedPath } = useLocalizedRoutes(); const brandLabel = name ?? 'Fotospiel'; const highlights = [ { icon: Sparkles, title: t('login.highlights.moments', 'Momente in Echtzeit teilen'), description: t('login.highlights.moments_description', 'Uploads landen sofort in der Event-Galerie – ohne App-Download.'), }, { icon: Camera, title: t('login.highlights.branding', 'Branding & Slideshows, die begeistern'), description: t('login.highlights.branding_description', 'Konfiguriere Slideshow, Wasserzeichen und Aufgaben für dein Event.'), }, { icon: ShieldCheck, title: t('login.highlights.privacy', 'Sicherer Zugang über Tokens'), description: t('login.highlights.privacy_description', 'Eventzugänge bleiben geschützt – DSGVO-konform mit Join Tokens.'), }, ]; return (
{t('login.hero_tagline', 'Event-Tech mit Herz')}

{t('login.hero_heading', 'Willkommen zurück bei Fotospiel')}

{t('login.hero_subheading', 'Verwalte Events, Galerien und Gästelisten in einem liebevoll gestalteten Dashboard.')}

    {highlights.map(({ icon: Icon, title: highlightTitle, description: highlightDescription }) => (
  • {highlightTitle}

    {highlightDescription}

  • ))}

{t('login.hero_footer.headline', 'Noch kein Account?')}

{t('login.hero_footer.subline', 'Entdecke unsere Packages und erlebe Fotospiel live.')}

{logoSrc ? ( {logoAlt ) : ( )} {brandLabel}

{title}

{description}

{children}
); }