import { notFound } from 'next/navigation' import { getDict, isLocale, locales } from '@/i18n' import { loadAbout, loadContent, loadFoundation, loadLegal } from '@/lib/content' import { mediaOf, paragraphs } from '@/lib/site-model' import { buildHomeModel } from '@/lib/home-model' import { SectionPage } from '@/components/SectionPage' import { aboutPeople } from '@/lib/about-model' import { buildFoundationPeople } from '@/lib/foundation-people' export const dynamic = 'force-dynamic' export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) { const { locale } = await params if (!isLocale(locale)) notFound() const t = getDict(locale) return { title: `${t.sections.about} — ${t.siteName}`, description: t.metaDescription, alternates: { languages: Object.fromEntries(locales.map(l => [l, `/${l}/about`])) } } } export default async function Page({ 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 data = aboutPeople[locale] const people = buildFoundationPeople(await loadFoundation()) const about = await loadAbout(locale) const aboutText = paragraphs(about?.text) const aboutPhoto = mediaOf(about?.photo) return 0}> {aboutText.length > 0 &&
{/* eslint-disable-next-line @next/next/no-img-element -- загруженные сотрудниками фото отдаёт Payload */} {aboutPhoto && {aboutPhoto.alt}} {aboutText.map((text) =>

{text}

)}
}

{t.mission.title}

{m.mission.text}

{t.sections.goals}

{t.sections.goalText}

{t.directions.title}

{t.sections.founder}

{people.founder}

{t.sections.leadership}

{t.sections.director}

{people.director}

{t.sections.board}

    {people.board.map(b =>
  • {b.role === 'chair' ? t.sections.chair : t.sections.boardMember}

    {b.name}

  • )}
{data.partners.length > 0 &&

{t.sections.partners}

}
}