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
+51 -2
View File
@@ -1,13 +1,29 @@
import { createSystem, defaultConfig, defineConfig } from '@chakra-ui/react';
import containerRecipe from './recipes/container';
import iconControlRecipe from './recipes/iconControl';
import linkRecipe from './recipes/link';
import linkButtonRecipe from './recipes/linkButton';
import skipNavLinkRecipe from './recipes/skipNavLink';
const config = defineConfig({
cssVarsRoot: ':where(:root, :host)',
cssVarsPrefix: 'slp',
preflight: true,
globalCss: {
body: {
height: '250vh',
html: {
// Chakra-componenten met een eigen focusring lezen deze variabele
'--focus-ring-color': '{colors.focusRing}',
},
// Eén focusstijl voor de hele site (BR-THEME-02)
'*:focus-visible': {
outlineWidth: '2px',
outlineStyle: 'solid',
outlineColor: 'var(--focus-ring-color)',
outlineOffset: '2px',
},
// Programmatische focusdoelen (main na een paginawissel) krijgen geen ring
'[tabindex="-1"]:focus': {
outline: 'none',
},
},
theme: {
@@ -63,6 +79,14 @@ const config = defineConfig({
interaction: { value: '0.45s' }, // hover, focus
fade: { value: '1.2s' }, // overvloeien van foto's
},
// Stapelvolgorde van de vaste shell-onderdelen, van laag naar hoog
zIndex: {
backToTop: { value: 8 },
mobileNav: { value: 9 },
header: { value: 10 },
// Binnen de header: de hamburger boven het logo en menu
menuToggle: { value: 1 },
},
gradients: {
// Donker verloop over hero-foto's, zodat witte tekst leesbaar blijft
scrim: {
@@ -92,6 +116,13 @@ const config = defineConfig({
},
},
},
// Kleur van de focusring; op foto's zet iconControl hem op wit
focusRing: {
value: {
_light: '{colors.accent.deep}',
_dark: '{colors.white}',
},
},
},
sizes: {
header: {
@@ -100,10 +131,16 @@ const config = defineConfig({
// Na scrollen; op mobiel krimpt de balk niet
sticky: { value: { base: '66px', lg: '68px' } },
},
// Maximale breedte van de content (Container en de to-top-knop)
content: { value: '{sizes.8xl}' },
},
spacing: {
// Zelfde waarde voor content die onder de balk begint (pt="header")
header: { value: '{sizes.header}' },
// Begin van de inhoud op een gewone pagina: onder de balk, met lucht
pageTop: {
value: 'calc({sizes.header} + clamp(3rem, 7vw, 6rem))',
},
},
},
textStyles: {
@@ -123,6 +160,14 @@ const config = defineConfig({
lineHeight: '1',
},
},
// De h1 van een gewone pagina (PageIntro, StatusPage)
pageTitle: {
value: {
fontFamily: 'heading',
fontSize: { base: '2.25rem', md: '2.75rem', lg: '3.25rem' },
lineHeight: '1.15',
},
},
},
recipes: {
// Koppen zijn in het design niet vet en iets gespatieerd
@@ -132,7 +177,11 @@ const config = defineConfig({
letterSpacing: '0.01em',
},
},
container: containerRecipe,
link: linkRecipe,
skipNavLink: skipNavLinkRecipe,
linkButton: linkButtonRecipe,
iconControl: iconControlRecipe,
},
},
});