Completes the front-end shell with footer, status pages and SEO

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>
This commit is contained in:
2026-10-18 17:05:02 +02:00
co-authored by Claude Opus 5.5
parent b5b7f3b3db
commit 4d6408b607
99 changed files with 7883 additions and 414 deletions
+17 -13
View File
@@ -1,4 +1,4 @@
import { chakra } from '@chakra-ui/react';
import { chakra, useRecipe } from '@chakra-ui/react';
import { Icon } from '@iconify/react/offline';
import leftOutlined from '@iconify-icons/ant-design/left-outlined';
import rightOutlined from '@iconify-icons/ant-design/right-outlined';
@@ -12,10 +12,20 @@ type HeroArrowsProps = {
export default function HeroArrows({ onPrev, onNext }: HeroArrowsProps) {
return (
<>
<ArrowButton side="left" aria-label="Vorige foto" onClick={onPrev}>
<ArrowButton
side="left"
aria-label="Vorige foto"
data-testid="hero-prev-button"
onClick={onPrev}
>
<Icon icon={leftOutlined} aria-hidden />
</ArrowButton>
<ArrowButton side="right" aria-label="Volgende foto" onClick={onNext}>
<ArrowButton
side="right"
aria-label="Volgende foto"
data-testid="hero-next-button"
onClick={onNext}
>
<Icon icon={rightOutlined} aria-hidden />
</ArrowButton>
</>
@@ -29,26 +39,20 @@ type ArrowButtonProps = React.ComponentProps<typeof chakra.button> & {
const ARROW_OFFSET = 'clamp(0.5rem, 3vw, 2.5rem)';
function ArrowButton({ side, ...props }: ArrowButtonProps) {
// Doorzichtigheid, hover en witte focusring komen uit de iconControl-recipe
const iconControl = useRecipe({ key: 'iconControl' });
return (
<chakra.button
type="button"
css={iconControl()}
position="absolute"
top="50%"
left={side === 'left' ? ARROW_OFFSET : undefined}
right={side === 'right' ? ARROW_OFFSET : undefined}
zIndex={2}
transform="translateY(-50%)"
display="flex"
p={2}
color="white"
fontSize={{ base: '1.5rem', md: '2rem' }}
cursor="pointer"
opacity={0.6}
transitionProperty="opacity"
transitionDuration="interaction"
transitionTimingFunction="smooth"
_hover={{ opacity: 1 }}
_focusVisible={{ opacity: 1, outline: '1px solid white', outlineOffset: '2px' }}
{...props}
/>
);