The mobile menu works through CSS, and controls that need JavaScript are hidden without it. The contact photo gets its own preload, and the tests cover the new Reveal behaviour, the first row and the noscript markup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import type { ReactNode } from 'react';
|
|
import { Box, Heading, Stack } from '@chakra-ui/react';
|
|
|
|
type FooterColumnProps = {
|
|
title: string;
|
|
// Hidden without JavaScript, for a column that only holds items that need it
|
|
requiresJs?: boolean;
|
|
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,
|
|
requiresJs,
|
|
children,
|
|
}: FooterColumnProps) {
|
|
return (
|
|
<Box data-requires-js={requiresJs || undefined}>
|
|
<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>
|
|
);
|
|
}
|