Adds the footer, back-to-top button, skip link, placeholder routes, 404 and error pages inside the shell, plus per-page SEO from a single page registry (canonical URLs, Open Graph image, JSON-LD, generated sitemap.xml and robots.txt). Theme tokens and recipes replace repeated styling, the hero loads only the active and neighbouring slides, and the e-mail address is joined in the browser to keep it out of the HTML and bundle. Adds Vitest with property-based (fast-check) and axe tests, ESLint, security headers for dev and preview, Lighthouse CI and a `pnpm check` script that runs all quality gates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
1016 B
TypeScript
32 lines
1016 B
TypeScript
import type { ReactNode } from 'react';
|
|
import { Box, Heading, Stack } from '@chakra-ui/react';
|
|
|
|
type FooterColumnProps = {
|
|
title: string;
|
|
children: ReactNode;
|
|
};
|
|
|
|
// Kolom in de footer: kopje als label, daaronder een lijst. De kop is een h2,
|
|
// want de kolommen zijn hoofdsecties van de pagina (BR-SEO-09).
|
|
export default function FooterColumn({ title, children }: FooterColumnProps) {
|
|
return (
|
|
<Box>
|
|
<Heading
|
|
as="h2"
|
|
// Mobiele schermlezers lezen de CSS-hoofdletters ("SOCIALS") als
|
|
// afkorting; het label geeft ze het woord in gewone schrijfwijze
|
|
aria-label={title}
|
|
textStyle="eyebrow"
|
|
fontFamily="body"
|
|
color="ink.soft"
|
|
mb={{ base: 2, lg: 4 }}
|
|
>
|
|
{title}
|
|
</Heading>
|
|
<Stack as="ul" listStyleType="none" gap={{ base: 0, lg: 2 }}>
|
|
{children}
|
|
</Stack>
|
|
</Box>
|
|
);
|
|
}
|