Fixes the scroll to Contact from the price cards

Removing ?pakket= from the URL replaced the click's navigation before the
router scrolled to #contact, and told it not to scroll, so nothing
happened. The clean-up now asks the router to scroll there, below the
fixed header. The review carousel's placeholder is now the longest review
itself, so it matches the carousel's height at every width and no longer
shifts the target while the page scrolls past it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 00:59:20 +02:00
co-authored by Claude Opus 5.5
parent 0fce403ebc
commit 0b00b781b9
7 changed files with 87 additions and 17 deletions
@@ -30,6 +30,8 @@ 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}
py={spacing === 'tight' ? 'sectionYTight' : 'sectionY'}
>
<Container maxW={width === 'narrow' ? 'contentNarrow' : 'content'}>