B-secties: nav, hero, Over, Werkwijze, contactblok en footer volgens ontwerp B

Nieuwe tokens (brand, inv, panel, field, prog, body), Archivo als lettertype
(Sora en Instrument Sans verwijderd), witte toggles op het rode kopblok, en tests
voor structuur, landmarks en contrast in alle vier de thema's.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-10 00:10:27 +01:00
co-authored by Claude Sonnet 5.5
parent 0854e3a096
commit e1d950cd33
25 changed files with 715 additions and 170 deletions
+18 -13
View File
@@ -4,6 +4,10 @@ import { ModeToggle } from '../ui/ModeToggle';
import { VariantToggle } from '../ui/VariantToggle';
import { handleAnchorClick } from '../../utils/scrollToHash';
/**
* Navigation of design B: part of the brand-red header (not sticky), white text, the CTA as a
* white block. The mobile menu (hamburger) is kept for small screens; years are not in the menu.
*/
export function Nav() {
const [isMenuOpen, setIsMenuOpen] = useState(false);
@@ -13,23 +17,24 @@ export function Nav() {
}
return (
<nav className="sticky top-0 z-50 border-b border-line bg-bg/80 backdrop-blur-md">
<div className="mx-auto flex h-16 max-w-[1080px] items-center justify-between px-6">
<nav aria-label="Hoofdnavigatie" className="bg-brand text-on-brand">
<div className="mx-auto flex min-h-[84px] max-w-[1280px] items-center justify-between gap-6 px-6 sm:px-8">
<a
href="#top"
onClick={(event) => handleAnchorClick(event, '#top')}
className="font-mono text-base font-bold tracking-wide text-text"
className="flex items-baseline gap-2 py-2.5 no-underline"
>
SLP<span className="text-accent">.</span>Software
<span className="text-2xl font-black tracking-tight [font-stretch:125%]">SLP</span>
<span className="text-base font-normal">Software</span>
</a>
<ul className="flex items-center gap-3 sm:gap-7">
<ul className="flex items-center gap-3 sm:gap-8">
{navLinks.map((link) =>
link.isCta ? (
<li key={link.href} className="hidden sm:block">
<a
href={link.href}
onClick={(event) => handleAnchorClick(event, link.href)}
className="font-mono rounded-lg border border-accent-line bg-accent-soft px-4 py-2 text-sm font-medium text-text"
className="inline-block bg-white px-[18px] py-[11px] text-[15px] font-bold text-brand no-underline hover:opacity-90"
data-testid="nav-cta-link"
>
{link.label}
@@ -40,7 +45,7 @@ export function Nav() {
<a
href={link.href}
onClick={(event) => handleAnchorClick(event, link.href)}
className="text-sm font-medium text-muted transition-colors hover:text-text"
className="inline-block py-3 text-[15px] font-medium no-underline hover:opacity-85"
>
{link.label}
</a>
@@ -48,10 +53,10 @@ export function Nav() {
),
)}
<li>
<ModeToggle />
<ModeToggle tone="onBrand" />
</li>
<li>
<VariantToggle />
<VariantToggle tone="onBrand" />
</li>
<li className="sm:hidden">
<button
@@ -61,7 +66,7 @@ export function Nav() {
aria-expanded={isMenuOpen}
aria-controls="mobile-nav-menu"
data-testid="nav-mobile-toggle"
className="flex h-8 w-8 items-center justify-center rounded-full border border-line text-text transition-colors hover:border-accent-line"
className="flex h-11 w-11 items-center justify-center rounded-full border border-white/70 text-on-brand transition-colors hover:border-white 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>
<svg
@@ -88,7 +93,7 @@ export function Nav() {
<ul
id="mobile-nav-menu"
data-testid="nav-mobile-menu"
className="flex flex-col gap-1 border-t border-line bg-bg px-6 py-3 sm:hidden"
className="flex flex-col gap-1 border-t border-white/30 px-6 py-3 sm:hidden"
>
{navLinks.map((link) => (
<li key={link.href}>
@@ -97,8 +102,8 @@ export function Nav() {
onClick={(event) => handleMobileLinkClick(event, link.href)}
className={
link.isCta
? 'font-mono block rounded-lg border border-accent-line bg-accent-soft px-4 py-2 text-sm font-medium text-text'
: 'block px-1 py-2 text-sm font-medium text-muted transition-colors hover:text-text'
? 'mt-1 block bg-white px-4 py-3 text-[15px] font-bold text-brand no-underline'
: 'block px-1 py-3 text-[15px] font-medium no-underline hover:opacity-85'
}
>
{link.label}