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
+10
View File
@@ -6,6 +6,8 @@ import intro2 from '../assets/home/intro-2.jpg';
import intro3 from '../assets/home/intro-3.jpg';
import intro4 from '../assets/home/intro-4.jpg';
import andrea from '../assets/home/andrea.jpg';
import deco1 from '../assets/home/deco-1.png';
import deco2 from '../assets/home/deco-2.png';
// Static content of the homepage sections until the CMS API exists; the API
// will then deliver this object.
@@ -56,6 +58,14 @@ const homeContent: HomeContent = {
},
link: { label: 'Lees mijn verhaal', to: '/over-mij' },
},
pricing: {
title: 'Prijzen',
lead: 'Pakketten',
decorations: [
{ src: deco1, alt: '', width: 143, height: 112 },
{ src: deco2, alt: '', width: 239, height: 224 },
],
},
};
export default homeContent;
+38
View File
@@ -0,0 +1,38 @@
import type { PricingPackage } from './types';
// The shoot packages until the CMS API exists (live site, October 2026), in
// display order. Andrea uses the small business scheme (KOR): no VAT.
const packages: PricingPackage[] = [
{
id: 'zwangerschap',
name: 'Zwangerschap',
price: 175,
features: [
'1 uur fotografie',
"Minstens 30 zorgvuldig nabewerkte foto's",
'Persoonlijke online fotogalerij',
],
},
{
id: 'newborn',
name: 'Newborn',
price: 185,
features: [
'1-2 uur fotografie',
"Minstens 40 zorgvuldig nabewerkte foto's",
'Persoonlijke online fotogalerij',
],
},
{
id: 'gezin',
name: 'Gezin',
price: 175,
features: [
'1 uur fotografie',
"Minstens 30 zorgvuldig nabewerkte foto's",
'Persoonlijke online fotogalerij',
],
},
];
export default packages;
+15
View File
@@ -31,6 +31,15 @@ export interface ContentImage {
height: number;
}
// A priced shoot offer. id is a stable slug: it goes into ?pakket= and is
// the shoot value the contact form sends.
export interface PricingPackage {
id: string;
name: string;
price: number; // whole euros
features: string[];
}
// Content of the homepage sections below the hero
export interface HomeContent {
intro: {
@@ -46,6 +55,12 @@ export interface HomeContent {
// A route, so a wrong link is a type error
link: { label: string; to: RoutePath };
};
pricing: {
title: string;
lead: string;
// Purely decorative illustrations, alt=""
decorations: ContentImage[];
};
}
export interface HeroSlide {