17 lines
864 B
TypeScript
17 lines
864 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, review = true }: { t: Dict; locale: Locale; path: string; title: string; showNews: boolean; legal: CmsLegal | null; children: React.ReactNode; review?: boolean }) {
|
|
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>
|
|
{review && t.sections.review && <p className="mb-8 text-sm">{t.sections.review}</p>}
|
|
{children}
|
|
</main>
|
|
<Footer t={t} locale={locale} legal={legal} />
|
|
</>
|
|
}
|