qazaq-legacy-foundation-web/src/components/SectionPage.tsx

16 lines
740 B
TypeScript

import { Header } from './Header'
import { Footer } from './Footer'
import type { CmsLegal } from '@/lib/legal-model'
import type { Dict, Locale } from '@/i18n'
export function SectionPage({ t, locale, path, title, showNews, legal, children }: { t: Dict; locale: Locale; path: string; title: string; showNews: boolean; legal: CmsLegal | null; children: React.ReactNode }) {
return <>
<Header t={t} locale={locale} path={path} showProjects showNews={showNews} />
<main className="mx-auto max-w-6xl px-5 pb-20 pt-64 sm:px-8 sm:pt-56 md:pt-44">
<h1 className="mb-10 break-words font-serif text-4xl text-burgundy sm:text-5xl">{title}</h1>
{children}
</main>
<Footer t={t} locale={locale} legal={legal} />
</>
}