Scroll naar de eyebrow-label i.p.v. sectietop, met ruimte voor de nav
Continuous Integration / config (pull_request) Successful in 9s
Continuous Integration / prepare (pull_request) Successful in 1m14s
Continuous Integration / build-production (pull_request) Skipped
Continuous Integration / build (pull_request) Successful in 1m56s
Continuous Integration / test (pull_request) Successful in 1m50s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / deploy-production (pull_request) Skipped

id + scroll-mt-16 stonden op de <section>, die zelf al py-[88px]
padding heeft - scrollIntoView lijnde dus de sectierand (inclusief
die padding) uit met de viewport-top, waardoor het te ver leek door
te scrollen en de content alsnog achter de sticky nav kon vallen.
id + scroll-mt-16 staan nu direct op de eyebrow-span ("// over",
"// werkwijze", "// pakketten", "// contact"), zodat er precies
daarheen én met 64px ruimte voor de nav wordt gescrold.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-17 14:20:01 +02:00
co-authored by Claude Sonnet 5
parent 5c3d409191
commit 43132bb491
4 changed files with 20 additions and 11 deletions
@@ -2,11 +2,14 @@ import { aboutContent } from '../data/content';
export function AboutSection() { export function AboutSection() {
return ( return (
<section id="over" className="scroll-mt-16 py-[88px]"> <section className="py-[88px]">
<div className="mx-auto max-w-[1080px] px-6"> <div className="mx-auto max-w-[1080px] px-6">
<div className="grid grid-cols-1 items-start gap-6 sm:grid-cols-[1.2fr_0.8fr] sm:grid-rows-[auto_1fr] sm:gap-12"> <div className="grid grid-cols-1 items-start gap-6 sm:grid-cols-[1.2fr_0.8fr] sm:grid-rows-[auto_1fr] sm:gap-12">
<div className="order-1 mb-2 sm:col-start-1 sm:row-start-1 sm:mb-0"> <div className="order-1 mb-2 sm:col-start-1 sm:row-start-1 sm:mb-0">
<span className="font-mono block text-sm uppercase tracking-wider text-accent"> <span
id="over"
className="font-mono block scroll-mt-16 text-sm uppercase tracking-wider text-accent"
>
// over // over
</span> </span>
<h2 className="font-display mt-3.5 text-3xl font-bold sm:text-4xl"> <h2 className="font-display mt-3.5 text-3xl font-bold sm:text-4xl">
@@ -4,10 +4,13 @@ export function ContactSection() {
const mailtoHref = `mailto:${contactInfo.email}?subject=${encodeURIComponent(contactInfo.mailSubject)}`; const mailtoHref = `mailto:${contactInfo.email}?subject=${encodeURIComponent(contactInfo.mailSubject)}`;
return ( return (
<section id="contact" className="scroll-mt-16 pb-[110px]"> <section className="pb-[110px]">
<div className="mx-auto max-w-[1080px] px-6"> <div className="mx-auto max-w-[1080px] px-6">
<div className="rounded-[20px] border border-accent-line bg-gradient-to-br from-surface-2 to-surface px-10 py-14 text-center"> <div className="rounded-[20px] border border-accent-line bg-gradient-to-br from-surface-2 to-surface px-10 py-14 text-center">
<span className="font-mono block text-sm uppercase tracking-wider text-accent"> <span
id="contact"
className="font-mono block scroll-mt-16 text-sm uppercase tracking-wider text-accent"
>
// contact // contact
</span> </span>
<h2 className="font-display mt-3.5 text-3xl font-bold sm:text-4xl"> <h2 className="font-display mt-3.5 text-3xl font-bold sm:text-4xl">
@@ -10,13 +10,13 @@ export function PackagesSection() {
const { data: packages, isLoading, isError } = usePackagesQuery(); const { data: packages, isLoading, isError } = usePackagesQuery();
return ( return (
<section <section className="bg-gradient-to-b from-transparent via-surface/50 to-transparent py-[88px]">
id="pakketten"
className="scroll-mt-16 bg-gradient-to-b from-transparent via-surface/50 to-transparent py-[88px]"
>
<div className="mx-auto max-w-[1080px] px-6"> <div className="mx-auto max-w-[1080px] px-6">
<div className="mb-[52px]"> <div className="mb-[52px]">
<span className="font-mono block text-sm uppercase tracking-wider text-accent"> <span
id="pakketten"
className="font-mono block scroll-mt-16 text-sm uppercase tracking-wider text-accent"
>
// pakketten // pakketten
</span> </span>
<h2 className="font-display mt-3.5 text-3xl font-bold sm:text-4xl"> <h2 className="font-display mt-3.5 text-3xl font-bold sm:text-4xl">
@@ -3,10 +3,13 @@ import { ProcessStep } from './ProcessStep';
export function ProcessSection() { export function ProcessSection() {
return ( return (
<section id="werkwijze" className="scroll-mt-16 py-[88px]"> <section className="py-[88px]">
<div className="mx-auto max-w-[1080px] px-6"> <div className="mx-auto max-w-[1080px] px-6">
<div className="mb-[52px]"> <div className="mb-[52px]">
<span className="font-mono block text-sm uppercase tracking-wider text-accent"> <span
id="werkwijze"
className="font-mono block scroll-mt-16 text-sm uppercase tracking-wider text-accent"
>
// werkwijze // werkwijze
</span> </span>
<h2 className="font-display mt-3.5 text-3xl font-bold sm:text-4xl"> <h2 className="font-display mt-3.5 text-3xl font-bold sm:text-4xl">