Taalbestanden: statische teksten van de site naar src/i18n/nl (landing, shared, era), getypte t()-helper; prerender-uitvoer byte-identiek

Hero en CMS-data blijven buiten scope.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 17:28:58 +01:00
co-authored by Claude Sonnet 5.5
parent 425c59c445
commit 6c6fd771dd
34 changed files with 470 additions and 151 deletions
+8 -3
View File
@@ -3,6 +3,7 @@ import { navLinks } from '../../features/landing/data/content';
import { ModeToggle } from '../ui/ModeToggle';
import { VariantToggle } from '../ui/VariantToggle';
import { handleAnchorClick } from '../../utils/scrollToHash';
import { t } from '../../i18n';
/**
* Navigation of design B: part of the brand-red header, white text, the CTA as a white block
@@ -12,6 +13,7 @@ import { handleAnchorClick } from '../../utils/scrollToHash';
export function Nav() {
const [isMenuOpen, setIsMenuOpen] = useState(false);
const sectionLinks = navLinks.filter((link) => !link.isCta);
const menuLabel = isMenuOpen ? t('landing.nav.menuClose') : t('landing.nav.menuOpen');
// Escape closes the mobile menu (keyboard users).
useEffect(() => {
@@ -29,7 +31,10 @@ export function Nav() {
}
return (
<nav aria-label="Hoofdnavigatie" className="sticky top-0 z-40 bg-brand text-on-brand md:static">
<nav
aria-label={t('landing.nav.label')}
className="sticky top-0 z-40 bg-brand text-on-brand md:static"
>
<div className="mx-auto flex min-h-[84px] max-w-[1280px] items-center justify-between gap-4 px-6 sm:px-8">
<a
href="#top"
@@ -74,13 +79,13 @@ export function Nav() {
<button
type="button"
onClick={() => setIsMenuOpen((open) => !open)}
aria-label={isMenuOpen ? 'Sluit menu' : 'Open menu'}
aria-label={menuLabel}
aria-expanded={isMenuOpen}
aria-controls="mobile-nav-menu"
data-testid="nav-mobile-toggle"
className="flex h-11 w-11 items-center justify-center rounded-full border border-white/70 text-on-brand transition-colors hover:border-white hover:bg-white/15 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
>
<span className="sr-only">{isMenuOpen ? 'Sluit menu' : 'Open menu'}</span>
<span className="sr-only">{menuLabel}</span>
<svg
aria-hidden="true"
viewBox="0 0 24 24"