From 0d7be249f580855d1d161e4a9fa3092f6f3eb318 Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Tue, 10 Nov 2026 16:37:28 +0100 Subject: [PATCH] Duidelijkere hovers, geen zichtbare pakkettenteller, nav schakelt op md met animatie en zonder CTA in mobiel menu Co-Authored-By: Claude Sonnet 5.5 --- src/components/layout/Nav.tsx | 73 ++++++++++--------- src/components/layout/__tests__/Nav.test.tsx | 56 ++++++++++---- .../shared/__tests__/ErrorBoundary.test.tsx | 8 +- src/components/ui/toggleTone.ts | 5 +- .../landing/components/ContactFormView.tsx | 4 +- .../landing/components/FilterChips.tsx | 4 +- src/features/landing/components/Hero.tsx | 4 +- .../landing/components/MailtoPanel.tsx | 2 +- .../landing/components/PackageBanner.tsx | 2 +- .../landing/components/PackageCard.tsx | 6 +- .../landing/components/PackagesSection.tsx | 33 ++++----- 11 files changed, 116 insertions(+), 81 deletions(-) diff --git a/src/components/layout/Nav.tsx b/src/components/layout/Nav.tsx index 4174c2f..b75701a 100644 --- a/src/components/layout/Nav.tsx +++ b/src/components/layout/Nav.tsx @@ -5,11 +5,13 @@ 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. + * Navigation of design B: part of the brand-red header, white text, the CTA as a white block + * (desktop only). Below the `md` breakpoint a hamburger opens an animated overlay menu with the + * section links; the "Start project" CTA is not repeated there (the hero has its own buttons). */ export function Nav() { const [isMenuOpen, setIsMenuOpen] = useState(false); + const sectionLinks = navLinks.filter((link) => !link.isCta); // Escape closes the mobile menu (keyboard users). useEffect(() => { @@ -27,35 +29,35 @@ export function Nav() { } return ( -