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:
@@ -0,0 +1,11 @@
|
||||
import { defineRecipe } from '@chakra-ui/react';
|
||||
|
||||
// Uitbreiding op Chakra's Container: de maximale breedte komt uit één token,
|
||||
// zodat de to-top-knop met dezelfde rand kan uitlijnen.
|
||||
const containerRecipe = defineRecipe({
|
||||
base: {
|
||||
maxWidth: 'content',
|
||||
},
|
||||
});
|
||||
|
||||
export default containerRecipe;
|
||||
@@ -0,0 +1,26 @@
|
||||
import { defineRecipe } from '@chakra-ui/react';
|
||||
|
||||
// Knoppen en links met alleen een icoon, over een foto (hero-pijlen, socials).
|
||||
// Half doorzichtig, vol bij hover of focus; de focusring is wit op de foto.
|
||||
const iconControlRecipe = defineRecipe({
|
||||
className: 'icon-control',
|
||||
base: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
// Minimaal 44px als klikdoel op touch (BR-RWD-04)
|
||||
minW: '44px',
|
||||
minH: '44px',
|
||||
color: 'white',
|
||||
opacity: 0.6,
|
||||
cursor: 'pointer',
|
||||
transitionProperty: 'opacity',
|
||||
transitionDuration: 'interaction',
|
||||
transitionTimingFunction: 'smooth',
|
||||
'--focus-ring-color': 'white',
|
||||
_hover: { opacity: 1 },
|
||||
_focusVisible: { opacity: 1 },
|
||||
},
|
||||
});
|
||||
|
||||
export default iconControlRecipe;
|
||||
@@ -0,0 +1,24 @@
|
||||
import { defineRecipe } from '@chakra-ui/react';
|
||||
|
||||
// Uitbreiding op Chakra's Link met de rustige linkstijl uit de footer.
|
||||
// ink.soft en accent.deep halen beide 4.5:1 op papier (NFR-01).
|
||||
const linkRecipe = defineRecipe({
|
||||
// Chakra zet de ringkleur per palet; hier de kleur van de site
|
||||
base: { focusRingColor: 'focusRing' },
|
||||
variants: {
|
||||
variant: {
|
||||
subtle: {
|
||||
color: 'ink.soft',
|
||||
textDecoration: 'none',
|
||||
rounded: 'none',
|
||||
transitionProperty: 'color',
|
||||
transitionDuration: 'interaction',
|
||||
transitionTimingFunction: 'smooth',
|
||||
_hover: { color: 'accent.deep' },
|
||||
_focusVisible: { color: 'accent.deep' },
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export default linkRecipe;
|
||||
@@ -34,14 +34,21 @@ const linkButtonRecipe = defineRecipe({
|
||||
bg: 'accent',
|
||||
color: 'white',
|
||||
_hover: { bg: 'accent.deep', borderColor: 'accent.deep' },
|
||||
_focusVisible: { bg: 'accent.deep', borderColor: 'accent.deep' },
|
||||
_focusVisible: {
|
||||
bg: 'accent.deep',
|
||||
borderColor: 'accent.deep',
|
||||
},
|
||||
},
|
||||
// Wit, voor over foto's
|
||||
light: {
|
||||
borderColor: 'white/70',
|
||||
color: 'white',
|
||||
_hover: { bg: 'white', borderColor: 'white', color: 'ink' },
|
||||
_focusVisible: { bg: 'white', borderColor: 'white', color: 'ink' },
|
||||
_focusVisible: {
|
||||
bg: 'white',
|
||||
borderColor: 'white',
|
||||
color: 'ink',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
import { defineRecipe } from '@chakra-ui/react';
|
||||
|
||||
// Chakra's skip link in de stijl van het design (.skip-link): donker vlak,
|
||||
// witte tekst, hoekig. Het gedrag (pas zichtbaar bij focus) blijft van Chakra.
|
||||
const skipNavLinkRecipe = defineRecipe({
|
||||
base: {
|
||||
bg: 'ink',
|
||||
color: 'white',
|
||||
rounded: 'none',
|
||||
px: '1.25rem',
|
||||
py: '0.75rem',
|
||||
textStyle: 'eyebrow',
|
||||
fontWeight: '400',
|
||||
focusRingColor: 'focusRing',
|
||||
_focusVisible: {
|
||||
top: 0,
|
||||
insetStart: 0,
|
||||
// Chakra's recipe zet geen z-index; zonder dit valt de link onder
|
||||
// de vaste header en zie je hem niet
|
||||
zIndex: 'skipNav',
|
||||
// De -1px marge van de verborgen toestand niet meenemen
|
||||
margin: 0,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export default skipNavLinkRecipe;
|
||||
Reference in New Issue
Block a user