import { loadLegal } from '@/lib/content' import { isLegalPublished } from '@/lib/legal-model' import Image from 'next/image' import { notFound } from 'next/navigation' import { BookWhere } from '@/components/BookWhere' import { ContactForm } from '@/components/ContactForm' import { Footer } from '@/components/Footer' import { Header } from '@/components/Header' import Link from 'next/link' import { getDict, isLocale } from '@/i18n' import { loadContent } from '@/lib/content' import { buildHomeModel, type Card } from '@/lib/home-model' import { FALLBACK_EMAIL } from '@/lib/inquiry' export const dynamic = 'force-dynamic' function Cards({ items }: { items: Card[] }) { return ( ) } const Section = ({ id, title, children }: { id: string; title: string; children: React.ReactNode }) => (

{title}

{children}
) export default async function Home({ params }: { params: Promise<{ locale: string }> }) { const { locale } = await params if (!isLocale(locale)) notFound() const t = getDict(locale) const { home, news } = await loadContent(locale) const m = buildHomeModel(home, news, t) const email = m.collaboration.email ?? FALLBACK_EMAIL const legal = await loadLegal(locale) const fmt = new Intl.DateTimeFormat(locale, { day: 'numeric', month: 'long', year: 'numeric' }) return ( <>
0} />
{[96, 80, 64, 48, 32, 16].map((r) => )} {Array.from({ length: 12 }, (_, i) => ( ))}

{t.motto}

{t.heroLead}

{t.nav.directions}

{m.mission.text}

{t.book.cover}

{t.book.author}

{t.book.title}

{t.book.paragraphs.map((text) =>

{text}

)}

{t.book.organiser}

{t.book.translationReview &&

{t.book.translationReview}

} {t.projects.more}
{m.projects.length > 0 &&
}
{m.news.length > 0 && (
    {m.news.map((n) => (
  • {n.kind === 'event' ? t.news.event : t.news.news}

    {n.title}

    {n.summary &&

    {n.summary}

    } {n.place &&

    {n.place}

    }
  • ))}
)}

{t.collaboration.title}

{m.collaboration.text}

{t.collaboration.instagram}