Adds the Prijzen section to the homepage

Shows the three live packages as cards with their price and what is
included. Each card links to the contact section with ?pakket=<id>, so
the contact form can preselect it. Invalid packages from the CMS are
skipped and the pakket value is only accepted when it names a package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 01:07:36 +02:00
co-authored by Claude Opus 5.5
parent 0b54a67dc4
commit 30dab1af42
32 changed files with 1250 additions and 6 deletions
+9
View File
@@ -1,13 +1,21 @@
import { createFileRoute } from '@tanstack/react-router';
import Hero from '../components/Hero/Hero';
import AboutBlock from '../components/home/AboutBlock/AboutBlock';
import Pricing from '../components/home/Pricing/Pricing';
import IntroGallery from '../components/home/IntroGallery/IntroGallery';
import heroContent from '../content/heroContent';
import homeContent from '../content/homeContent';
import packages from '../content/packages';
import siteContent from '../content/siteContent';
import { pageHead } from '../seo';
// ?pakket= from a "Boek" link on a price card. Only text is kept; whether it
// names a real package is checked against the shown packages (BR-PARAM-01).
type HomeSearch = { pakket?: string };
export const Route = createFileRoute('/')({
validateSearch: (search: Record<string, unknown>): HomeSearch =>
typeof search.pakket === 'string' ? { pakket: search.pakket } : {},
head: () => pageHead('/'),
component: Index,
});
@@ -19,6 +27,7 @@ function Index() {
<Hero content={heroContent} socials={siteContent.socials} />
<IntroGallery content={homeContent.intro} />
<AboutBlock content={homeContent.about} />
<Pricing content={homeContent.pricing} packages={packages} />
</>
);
}