Aligns the page edges with the design and fixes the Contact anchor offset
Continuous Integration / check (pull_request) Successful in 9m57s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 3m46s
Continuous Integration / deploy-production (pull_request) Skipped

The content column now uses the design's gutter as side padding instead
of Chakra's 16/24/32px. The Lifestyle fotografie row on phones bled out by
the gutter, so the page was 4px too wide and Chrome zoomed out slightly.
The header drops its extra padding and the to-top button follows the
gutter, so logo, hero controls and content share one edge. Anchored
sections now scroll to the height of the shrunken header, so Contact
lands right below it instead of 24px lower.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 01:46:08 +02:00
co-authored by Claude Opus 5.5
parent 1905295a21
commit 8d8cbdb72c
12 changed files with 191 additions and 10 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export default function BackToTop() {
data-testid="back-to-top-button"
position="fixed"
bottom={EDGE}
right={`max(${EDGE}, calc((100vw - {sizes.content}) / 2 + {spacing.8}))`}
right={`max(${EDGE}, calc((100vw - {sizes.content}) / 2 + {spacing.gutter}))`}
zIndex="backToTop"
display="inline-flex"
alignItems="center"
@@ -32,8 +32,9 @@ export default function HomeSection({
aria-labelledby={labelledBy}
data-testid={testId}
bg={tone === 'alt' ? 'paper.alt' : 'paper'}
// An anchor target (#contact) lands below the fixed header
scrollMarginTop={id ? 'header' : undefined}
// An anchor target (#contact) lands right below the fixed header,
// which has shrunk to its sticky height by the time it gets there
scrollMarginTop={id ? 'header.sticky' : undefined}
py={spacing === 'tight' ? 'sectionYTight' : 'sectionY'}
>
{width === 'full' ? (
@@ -58,7 +58,6 @@ export default function NavigationBar() {
borderBottomColor={overlay('line', 'transparent')}
// Schaduw alleen na scrollen, zoals .header--sticky in het design
boxShadow={pastHero ? 'sm' : 'none'}
px={{ base: 4, md: 8 }}
transitionProperty="height, background-color, color, border-color, box-shadow"
transitionDuration="interaction"
transitionTimingFunction="smooth"
+5 -2
View File
@@ -1,10 +1,13 @@
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.
// Uitbreiding op Chakra's Container: de maximale breedte en de zijmarge komen
// uit tokens, zodat de to-top-knop, de hero-knoppen en de full-bleed fotorij
// met dezelfde rand kunnen uitlijnen. Zijmarge = gutter, zoals .container in
// het design (Chakra's eigen 16/24/32px week daarvan af).
const containerRecipe = defineRecipe({
base: {
maxWidth: 'content',
px: 'gutter',
},
});
+5 -1
View File
@@ -156,7 +156,11 @@ const config = defineConfig({
},
spacing: {
// Zelfde waarde voor content die onder de balk begint (pt="header")
header: { value: '{sizes.header}' },
header: {
DEFAULT: { value: '{sizes.header}' },
// Waar een anker onder de (dan al gekrompen) balk landt
sticky: { value: '{sizes.header.sticky}' },
},
// Begin van de inhoud op een gewone pagina: onder de balk, met lucht
pageTop: {
value: 'calc({sizes.header} + clamp(3rem, 7vw, 6rem))',