Adds the shoot-type pages content and SEO foundation

Five pages under /soorten-fotoshoots/<id> with draft copy awaiting
Andrea's approval (DRAFT markers), structured data (Service,
BreadcrumbList, FAQPage), sitemap and Lighthouse entries. The overview
route moves to soorten-fotoshoots/index.tsx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 13:31:46 +01:00
co-authored by Claude Opus 5.5
parent 14164971f3
commit e5f4348178
78 changed files with 8729 additions and 110 deletions
+123
View File
@@ -0,0 +1,123 @@
import type { FaqItem, ShootPageShared } from './types';
// The general questions every shoot page may include in its own FAQ list
// (D7). The placeholders are filled in per shoot, see ShootPageShared.
// "Wanneer krijg ik de foto's?"
// DRAFT(CON-ST-03): awaiting Andrea's approval
export const deliveryFaq: FaqItem = {
id: 'fotos-ontvangen',
question: "Wanneer krijg ik de foto's?",
answer: [
"Reken op {opleverduur} na de shoot. In die tijd selecteer en bewerk ik de mooiste foto's.",
],
};
// "Hoe leg ik de datum vast?"
// DRAFT(CON-ST-03): awaiting Andrea's approval
// OPEN(CON-ST-04): does the deposit also apply to Loveshoot and Portret, and when exactly is the remainder paid after the shoot (before delivery)?
export const bookingFaq: FaqItem = {
id: 'datum-vastleggen',
question: 'Hoe leg ik de datum vast?',
answer: [
{ text: 'Stuur een berichtje', to: '/contact' },
', dan kiezen we samen een moment. Met een aanbetaling van {aanbetaling} staat je datum vast. De aanbetaling wordt verrekend met het totaalbedrag; het restbedrag betaal je na de shoot.',
],
};
// "Hoe snel hoor ik iets van je?"
// DRAFT(CON-ST-03): awaiting Andrea's approval
export const replyFaq: FaqItem = {
id: 'reactie',
question: 'Hoe snel hoor ik iets van je?',
answer: ['Ik reageer binnen {reactietermijn} op je berichtje.'],
};
// The texts that are the same on every shoot page, until the CMS API exists.
// Step titles, the deposit amount and the breadcrumb labels are fixed by the
// requirements (FR-ST-02, FR-ST-04, CON-ST-01); the other texts are drafts.
const shootPageShared: ShootPageShared = {
breadcrumb: {
label: 'Kruimelpad',
home: 'Home',
overview: 'Soorten fotoshoots',
},
process: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
eyebrow: 'Zo werkt het',
// DRAFT(CON-ST-03): awaiting Andrea's approval
title: 'Van aanvraag tot online galerij',
// DRAFT(CON-ST-03): awaiting Andrea's approval
lead: 'Elke shoot volgt dezelfde zes stappen, zodat je precies weet waar je aan toe bent.',
steps: {
aanvragen: {
title: 'Aanvragen',
// DRAFT(CON-ST-03): awaiting Andrea's approval
text: 'Stuur een berichtje. Ik reageer binnen {reactietermijn}.',
},
datum: {
title: 'Datum & locatie kiezen',
// DRAFT(CON-ST-03): awaiting Andrea's approval
text: 'We kiezen samen een moment. {locatie}',
},
aanbetaling: {
title: 'Aanbetaling',
// DRAFT(CON-ST-03): awaiting Andrea's approval
text: 'Met een aanbetaling van {aanbetaling} staat je datum vast.',
},
shoot: {
title: 'De shoot',
// DRAFT(CON-ST-03): awaiting Andrea's approval
text: '{duur}',
},
bewerking: {
title: 'Bewerking',
// DRAFT(CON-ST-03): awaiting Andrea's approval
text: "Ik selecteer en bewerk de mooiste foto's. Opleverduur: {opleverduur}.",
},
oplevering: {
title: 'Oplevering',
// DRAFT(CON-ST-03): awaiting Andrea's approval
// OPEN(CON-ST-04): is there an online gallery for Loveshoot and Portret too (confirmed only for the three packages)?
text: "Je foto's staan klaar in je persoonlijke online fotogalerij.",
},
},
},
deposit: {
// Whole euros, settled against the total (CON-ST-01)
amount: 50,
// DRAFT(CON-ST-03): awaiting Andrea's approval
// OPEN(CON-ST-04): does the deposit also apply to Loveshoot and Portret, and when exactly is the remainder paid after the shoot (before delivery)?
note: 'Aanbetaling {aanbetaling}, restbedrag na de shoot.',
},
photos: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
eyebrow: 'Impressie',
},
faq: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
eyebrow: 'Veelgestelde vragen',
// DRAFT(CON-ST-03): awaiting Andrea's approval
lead: [
'Staat je vraag er niet tussen? ',
{ text: 'Stuur gerust een berichtje', to: '/contact' },
'.',
],
},
offer: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
bookLabel: 'Boek dit pakket',
// DRAFT(CON-ST-03): awaiting Andrea's approval
askLabel: 'Eerst een vraag stellen',
// Shown for a shoot without a visible package; no figures, the
// variant is decided by the data (FR-ST-07)
// DRAFT(CON-ST-03): awaiting Andrea's approval
onRequest: {
price: 'Prijs op aanvraag',
text: 'Stuur me een berichtje met wat je in gedachten hebt, dan vertel ik je graag meer over de mogelijkheden en de prijs.',
linkLabel: 'Vraag naar de mogelijkheden',
},
},
};
export default shootPageShared;
+147
View File
@@ -0,0 +1,147 @@
import type { ShootPageContent } from '../types';
import { bookingFaq, deliveryFaq } from '../shootPageShared';
// Images: the shoot's main photo and the family photos from the portfolio,
// with the descriptions they have there. Provisional selection per slot;
// unit 2 finalises it in its functional design. Note: the shoots/gezin*
// photos show newborn families (CON-ST-05). The detail photo is shown by
// the package block, so it is not used here.
import gezin from '../../assets/shoots/gezin.jpg';
import f41a1579 from '../../assets/portfolio/f41a1579.jpg';
import f41a7138 from '../../assets/portfolio/f41a7138.jpg';
const bigBrother = {
src: f41a1579,
alt: 'Grote broer kust zijn pasgeboren broertje of zusje op een wit bed',
width: 800,
height: 534,
};
const parents = {
src: f41a7138,
alt: 'Jonge ouders kijken samen naar hun slapende pasgeboren baby',
width: 800,
height: 1200,
};
// The family page (/soorten-fotoshoots/gezin) until the CMS API exists.
// Drafted from the texts in shootTypes.ts and packages.ts; no facts beyond
// them (CON-ST-04).
const gezinPage: ShootPageContent = {
id: 'gezin',
// DRAFT(CON-ST-03): awaiting Andrea's approval
intro: {
eyebrow: 'Gezinsfotograaf in Huizen',
title: 'Gezinsshoot vol echte momenten',
text: 'Met een gezinsshoot leggen we vast hoe jullie nu samen zijn. Ik fotografeer in Huizen, Bussum, Hilversum en omgeving, bij jullie thuis of buiten in de natuur.',
},
stories: [
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'verwachten',
eyebrow: 'Wat kun je verwachten',
title: 'Spelen, knuffelen en lachen',
paragraphs: [
[
'Met een gezinsshoot leggen we vast hoe jullie nu samen zijn: spelen, knuffelen en lachen. Geen stijve poses, maar echte momenten die je later met plezier terugkijkt.',
],
],
image: {
src: gezin,
alt: 'Vader en moeder kijken samen naar hun pasgeboren baby in de armen van de vader',
width: 848,
height: 1060,
},
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'samen',
eyebrow: 'Het hele gezin',
title: 'Iedereen hoort erbij',
paragraphs: [
[
'Papa, mama, broertjes en zusjes: op een gezinsshoot hoort iedereen erbij. Ook als jullie gezin net een kleintje rijker is.',
],
],
image: bigBrother,
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'locatie',
eyebrow: 'Thuis of buiten',
title: 'Een plek die bij jullie past',
paragraphs: [
[
'We kiezen samen een plek die bij jullie past, bij jullie thuis of buiten in de natuur.',
],
],
image: parents,
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'duur',
eyebrow: 'Hoe lang duurt het',
title: 'Rustig de tijd',
paragraphs: [
[
'We nemen de tijd, zodat iedereen zich op zijn gemak voelt. Ook de kleinsten: is er even een pauze nodig, dan is daar gewoon ruimte voor.',
],
],
},
],
process: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
location:
'En een plek die bij jullie past: bij jullie thuis of buiten in de natuur.',
// DRAFT(CON-ST-03): awaiting Andrea's approval
duration: '1 uur fotografie, zonder haast.',
// The same for every shoot (CON-ST-01)
deliveryTime: '2–3 weken',
},
photos: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
title: 'Uit eerdere gezinsshoots',
// Both photos are used by the story blocks, so the page view leaves
// the mosaic out (D14, D15) until Andrea delivers more photos; adding
// them here is then a data-only change
images: [bigBrother, parents],
},
faq: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
title: 'Vragen over de gezinsshoot',
items: [
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'wie',
question: 'Wie mogen er op de foto?',
answer: [
'Het hele gezin: papa, mama, broertjes en zusjes. Geen stijve poses, maar echte momenten met elkaar.',
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'locatie',
question: 'Fotograferen we bij ons thuis of buiten?',
answer: [
'Allebei kan. We kiezen samen een plek die bij jullie past, bij jullie thuis of buiten in de natuur.',
],
},
bookingFaq,
deliveryFaq,
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
offer: {
eyebrow: 'Pakket gezin',
title: 'Wat zit er in een gezinsshoot',
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
closing: {
title: 'Op zoek naar een gezinsfotograaf in Huizen?',
lead: [
'Stuur gerust een berichtje voor de mogelijkheden. Ik denk graag mee over een plek die bij jullie past.',
],
buttonLabel: 'Boek je gezinsshoot',
},
};
export default gezinPage;
+140
View File
@@ -0,0 +1,140 @@
import type { ShootPageContent } from '../types';
import { bookingFaq, deliveryFaq } from '../shootPageShared';
// Images: for now only the shoot's main photo and detail photo exist, with
// the descriptions they have in shootTypes.ts (CON-ST-05)
import loveshoot from '../../assets/shoots/loveshoot.jpg';
import loveshootDetail from '../../assets/shoots/loveshoot-detail.jpg';
const mainPhoto = {
src: loveshoot,
alt: 'Een stel ligt in de zon op een plaid in het gras, met de hoofden tegen elkaar',
width: 848,
height: 1060,
};
// The loveshoot page (/soorten-fotoshoots/loveshoot) until the CMS API
// exists. Drafted from the text in shootTypes.ts. Duration, number of
// photos, best period and locations are not known, so the texts do not
// name them (CON-ST-04). No package, so no price: the page shows "Prijs op
// aanvraag", decided by the data (FR-ST-07).
const loveshootPage: ShootPageContent = {
id: 'loveshoot',
// DRAFT(CON-ST-03): awaiting Andrea's approval
intro: {
eyebrow: 'Loveshoot in Huizen',
title: 'Loveshoot voor jullie twee',
text: 'Een loveshoot is een prachtige manier om jullie liefde vast te leggen. Ik fotografeer in Huizen, Bussum, Hilversum en omgeving.',
},
stories: [
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'verwachten',
eyebrow: 'Wat kun je verwachten',
title: 'Jullie liefde, vastgelegd',
paragraphs: [
[
'Een loveshoot is een prachtige manier om jullie liefde vast te leggen. Mijn stijl is natuurlijk en ongedwongen: geen ongemakkelijke poses, maar spontane momenten van jullie samen.',
],
],
image: mainPhoto,
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'trouwkaart',
eyebrow: 'Verloofd?',
title: 'Voor jullie trouwkaart',
paragraphs: [
[
"Zijn jullie verloofd? Dan kan je de foto's gebruiken voor de trouwkaart. Vertel het me gerust bij je aanvraag, dan houden we daar rekening mee.",
],
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'locatie',
eyebrow: 'De locatie',
title: 'Samen een plek kiezen',
paragraphs: [
[
'We kiezen samen een plek die bij jullie past. Vertel me gerust wat jullie mooi vinden of waar jullie graag samen komen.',
],
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'ontspannen',
eyebrow: 'Gewoon jullie zelf',
title: 'Ontspannen voor de camera',
paragraphs: [
[
'Spannend om samen voor de camera te staan? Dat hoeft niet. We nemen de tijd, zodat jullie je op je gemak voelen en ik jullie kan vastleggen zoals jullie zijn.',
],
],
},
],
process: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
location: 'En een plek die bij jullie past.',
// DRAFT(CON-ST-03): awaiting Andrea's approval
// OPEN(CON-ST-04): shoot duration for the loveshoot
duration: 'We stemmen de duur samen af.',
// The same for every shoot (CON-ST-01)
deliveryTime: '2–3 weken',
},
photos: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
title: 'Uit eerdere loveshoots',
// Only the main and the detail photo for now. Story 1 and the package
// block use them, so the page view leaves the mosaic out (D14, D15);
// they are listed so that adding photos later is a data-only change.
images: [
mainPhoto,
{
src: loveshootDetail,
alt: 'Een man schuift een ring om de vinger van zijn partner, met paarse heide op de achtergrond',
width: 480,
height: 480,
},
],
},
faq: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
title: 'Vragen over de loveshoot',
items: [
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'trouwkaart',
question: "Kunnen we de foto's gebruiken voor onze trouwkaart?",
answer: [
"Ja, zeker. Zijn jullie verloofd? Dan kan je de foto's van jullie loveshoot gebruiken voor de trouwkaart.",
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'ontspannen',
question: 'We staan niet graag op de foto. Is dat erg?',
answer: [
'Helemaal niet. We nemen de tijd, zodat jullie je op je gemak voelen. Geen ongemakkelijke poses, maar spontane momenten van jullie samen.',
],
},
bookingFaq,
deliveryFaq,
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
offer: {
eyebrow: 'Loveshoot boeken',
title: 'Benieuwd naar de mogelijkheden?',
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
closing: {
title: 'Op zoek naar een fotograaf voor jullie loveshoot?',
lead: [
'Stuur gerust een berichtje voor de mogelijkheden. Ik denk graag mee over een plek die bij jullie past.',
],
buttonLabel: 'Boek je loveshoot',
},
};
export default loveshootPage;
+195
View File
@@ -0,0 +1,195 @@
import type { ShootPageContent } from '../types';
import { deliveryFaq } from '../shootPageShared';
// Images: the shoot's main photo and newborn photos from the portfolio, with
// the descriptions they have there. Provisional selection per slot; unit 2
// finalises it in its functional design (CON-ST-05).
import newborn from '../../assets/shoots/newborn.jpg';
import f41a1916 from '../../assets/portfolio/f41a1916.jpg';
import f41a1922 from '../../assets/portfolio/f41a1922.jpg';
import f41a4650 from '../../assets/portfolio/f41a4650.jpg';
import f41a7176 from '../../assets/portfolio/f41a7176.jpg';
import f41a7284 from '../../assets/portfolio/f41a7284.jpg';
import f41a8700 from '../../assets/portfolio/f41a8700.jpg';
const sleepingBaby = {
src: f41a8700,
alt: 'Slapende pasgeboren baby in een bruin-wit gestreept pakje',
width: 800,
height: 534,
};
// The newborn page (/soorten-fotoshoots/newborn) until the CMS API exists.
// Texts from design E, without its bracketed placeholders and without facts
// that are not confirmed (CON-ST-04).
const newbornPage: ShootPageContent = {
id: 'newborn',
// DRAFT(CON-ST-03): awaiting Andrea's approval
intro: {
eyebrow: 'Newbornfotograaf in Huizen',
title: 'Newbornshoot bij jou thuis',
text: "Ben je in verwachting? Boek een newbornshoot om de 'kleinste' momenten voor altijd te bewaren. Ik fotografeer bij jou thuis in Huizen, Bussum, Hilversum en omgeving, in het rustige ritme van jullie baby.",
},
stories: [
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'verwachten',
eyebrow: 'Wat kun je verwachten',
title: 'De kleinste momenten, voor altijd bewaard',
paragraphs: [
[
'Een newbornshoot is rustig en ontspannen. Ik fotografeer jullie baby in de eerste weken, slapend en wakker, alleen en in jullie armen. Geen haast en geen ingewikkelde opstellingen: de kleine details en de warmte van jullie eerste weken staan centraal.',
],
],
image: {
src: newborn,
alt: 'Een pasgeboren baby in een gestreept pakje slaapt met het hoofdje opzij',
width: 848,
height: 1060,
},
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'periode',
eyebrow: 'De beste periode',
title: 'Tot 12 weken na de geboorte',
paragraphs: [
[
"De ideale periode voor een newbornshoot is tot 12 weken na de geboorte van je baby. In die eerste weken slapen baby's veel en zijn ze nog heerlijk klein.",
],
// Newborn only: the date depends on the birth (CON-ST-01)
[
'Boek je shoot het liefst al tijdens je zwangerschap. Dan zetten we een voorlopige datum rond je uitgerekende datum en schuiven we mee als jullie baby eerder of later komt.',
],
],
image: sleepingBaby,
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'locatie',
eyebrow: 'Bij jou thuis',
title: 'In jullie eigen vertrouwde omgeving',
paragraphs: [
[
"De fotoshoot vindt bij jou thuis plaats. Je hoeft nergens heen met een baby van een paar weken oud, en jullie huis maakt de foto's persoonlijk.",
],
[
'Je kunt tussendoor gewoon je baby voeden en verschonen als dat nodig is.',
],
],
image: {
src: f41a7176,
alt: 'Moeder drukt haar gezicht tegen het hoofdje van haar pasgeboren baby',
width: 800,
height: 1200,
},
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'duur',
eyebrow: 'Hoe lang duurt het',
title: '1 tot 2 uur, op het ritme van je baby',
paragraphs: [
[
'We nemen alle tijd en volgen het ritme van jullie baby. Reken op 1 tot 2 uur fotografie, inclusief pauzes om te voeden, te troosten of even te knuffelen.',
],
[
'Wil je broertjes, zusjes of jezelf ook op de foto? Dat plannen we gewoon in.',
],
],
image: {
src: f41a1916,
alt: 'Pasgeboren baby in een wit pakje ligt op de onderarm van een ouder en kijkt in de camera',
width: 800,
height: 1200,
},
},
],
process: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
location: 'Een newbornshoot is bij jou thuis.',
// DRAFT(CON-ST-03): awaiting Andrea's approval
duration: '1-2 uur fotografie, in het tempo van jullie baby.',
// The same for every shoot (CON-ST-01)
deliveryTime: '2–3 weken',
},
photos: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
title: 'Uit eerdere newbornshoots',
// The sleeping baby is also in story 2, as in design E; the page view
// leaves it out of the mosaic (D14)
images: [
{
src: f41a1922,
alt: 'Vader kust zijn pasgeboren baby op het hoofd',
width: 800,
height: 1200,
},
{
src: f41a4650,
alt: 'Babyvuistje tussen een gebreide deken en een geruite doek',
width: 800,
height: 533,
},
{
src: f41a7284,
alt: 'Blote babyvoetjes in een gestreept gebreid broekje',
width: 800,
height: 1200,
},
sleepingBaby,
],
},
faq: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
title: 'Vragen over de newbornshoot',
items: [
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'boeken',
question: 'Wanneer boek ik de newbornshoot het beste?',
answer: [
'Het liefst al tijdens je zwangerschap. We zetten een voorlopige datum rond je uitgerekende datum en schuiven mee als jullie baby eerder of later komt. De shoot vindt plaats binnen 12 weken na de geboorte.',
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'slapen',
question: 'Wat als mijn baby niet wil slapen?',
answer: [
"Geen probleem. We volgen het ritme van jullie baby en nemen pauzes om te voeden, te verschonen of te troosten. Wakkere momenten leveren ook prachtige foto's op.",
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'familie',
question: 'Mogen wij en broertjes of zusjes ook op de foto?',
answer: [
"Ja, heel graag. Foto's met papa, mama en broertjes of zusjes horen er wat mij betreft gewoon bij.",
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'voorbereiden',
question: 'Wat moet ik thuis voorbereiden?',
answer: ['Weinig. Een warme kamer met wat daglicht is fijn.'],
},
deliveryFaq,
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
offer: {
eyebrow: 'Pakket newborn',
title: 'Wat zit er in een newbornshoot',
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
closing: {
title: 'Op zoek naar een newbornfotograaf in Huizen?',
lead: [
'Stuur gerust een berichtje voor de mogelijkheden. Ik denk graag mee over een datum rond je uitgerekende datum.',
],
buttonLabel: 'Boek je newbornshoot',
},
};
export default newbornPage;
+142
View File
@@ -0,0 +1,142 @@
import type { ShootPageContent } from '../types';
import { bookingFaq, deliveryFaq } from '../shootPageShared';
// Images: for now only the shoot's main photo and detail photo exist, with
// the descriptions they have in shootTypes.ts (CON-ST-05)
import portret from '../../assets/shoots/portret.jpg';
import portretDetail from '../../assets/shoots/portret-detail.jpg';
const mainPhoto = {
src: portret,
alt: 'Een vrouw met lang bruin haar in een witte blouse kijkt glimlachend omlaag, met bomen op de achtergrond',
width: 848,
height: 1060,
};
// The portrait page (/soorten-fotoshoots/portret) until the CMS API exists.
// Drafted from the text in shootTypes.ts. Duration, number of photos, best
// period and locations are not known, so the texts do not name them
// (CON-ST-04). No package, so no price: the page shows "Prijs op aanvraag",
// decided by the data (FR-ST-07).
const portretPage: ShootPageContent = {
id: 'portret',
// DRAFT(CON-ST-03): awaiting Andrea's approval
intro: {
eyebrow: 'Portretfotograaf in Huizen',
title: 'Portretshoot in de natuur of zakelijk',
text: 'Van portretshoots in de natuur tot zakelijke shoots voor de branding van je bedrijf. Ik fotografeer in Huizen, Bussum, Hilversum en omgeving.',
},
stories: [
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'verwachten',
eyebrow: 'Wat kun je verwachten',
title: 'Jij, zoals je bent',
paragraphs: [
[
"Mijn stijl is natuurlijk en ongedwongen. Geen ongemakkelijke poses, maar foto's waarop je jezelf herkent.",
],
],
image: mainPhoto,
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'natuur-zakelijk',
eyebrow: 'Natuur of zakelijk',
title: 'Persoonlijk of voor je bedrijf',
paragraphs: [
[
"Van portretshoots in de natuur tot zakelijke shoots voor de branding van je bedrijf. Vertel me waarvoor je de foto's wilt gebruiken, dan stemmen we de shoot daarop af.",
],
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
// OPEN(CON-ST-04): locations for the portrait shoot (natuur / zakelijk)
{
id: 'locatie',
eyebrow: 'De locatie',
title: 'Samen een plek kiezen',
paragraphs: [
[
'We kiezen samen een plek die past bij jou of bij je bedrijf.',
],
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'ontspannen',
eyebrow: 'Gewoon jezelf',
title: 'Op je gemak voor de camera',
paragraphs: [
[
'Niet gewend om op de foto te gaan? Geen zorgen. We nemen de tijd, zodat je je op je gemak voelt.',
],
],
},
],
process: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
// OPEN(CON-ST-04): locations for the portrait shoot (natuur / zakelijk)
location: 'En een plek die bij jou past.',
// DRAFT(CON-ST-03): awaiting Andrea's approval
// OPEN(CON-ST-04): shoot duration for the portrait shoot
duration: 'We stemmen de duur samen af.',
// The same for every shoot (CON-ST-01)
deliveryTime: '2–3 weken',
},
photos: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
title: 'Uit eerdere portretshoots',
// Only the main and the detail photo for now. Story 1 and the package
// block use them, so the page view leaves the mosaic out (D14, D15);
// they are listed so that adding photos later is a data-only change.
images: [
mainPhoto,
{
src: portretDetail,
alt: 'Een vrouw met lang blond haar in een jurk met bloemenprint houdt een takje heide vast op de heide',
width: 480,
height: 480,
},
],
},
faq: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
title: 'Vragen over de portretshoot',
items: [
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'zakelijk',
question: "Kan ik ook zakelijke foto's laten maken?",
answer: [
'Ja. Naast portretshoots in de natuur doe ik ook zakelijke shoots voor de branding van je bedrijf.',
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'ontspannen',
question: 'Ik sta niet graag op de foto. Is dat erg?',
answer: [
"Helemaal niet. We nemen de tijd, zodat je je op je gemak voelt. Geen ongemakkelijke poses, maar foto's waarop je jezelf herkent.",
],
},
bookingFaq,
deliveryFaq,
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
offer: {
eyebrow: 'Portretshoot boeken',
title: 'Benieuwd naar de mogelijkheden?',
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
closing: {
title: 'Op zoek naar een portretfotograaf in Huizen?',
lead: [
"Stuur gerust een berichtje voor de mogelijkheden. Vertel me waarvoor je de foto's wilt gebruiken.",
],
buttonLabel: 'Boek je portretshoot',
},
};
export default portretPage;
@@ -0,0 +1,206 @@
import { describe, expect, it } from 'vitest';
import { shootPackage } from '../../lib/shootPackage';
import { shootPageView, type ShootPageSources } from '../../lib/shootPageView';
import packages from '../packages';
import portfolioContent from '../portfolioContent';
import siteContent from '../siteContent';
import shootPageShared from '../shootPageShared';
import shootTypes from '../shootTypes';
import type { ContentImage, ShootPageContent, ShootTypeId } from '../types';
import gezinPage from './gezin';
import loveshootPage from './loveshoot';
import newbornPage from './newborn';
import portretPage from './portret';
import zwangerschapPage from './zwangerschap';
// One entry per shoot type, so a missing page file is a type error
const pages: Record<ShootTypeId, ShootPageContent> = {
newborn: newbornPage,
zwangerschap: zwangerschapPage,
gezin: gezinPage,
loveshoot: loveshootPage,
portret: portretPage,
};
const entries = Object.entries(pages) as [ShootTypeId, ShootPageContent][];
// The real sources, as the routes pass them
const sources: ShootPageSources = {
shootTypes,
packages,
shared: shootPageShared,
site: siteContent,
portfolioShoots: [],
};
// The placeholders the page view fills in (see ShootPageShared)
const knownPlaceholders = [
'reactietermijn',
'aanbetaling',
'locatie',
'duur',
'opleverduur',
];
// Every visitor-facing string in a content object: all strings except
// image file paths
function texts(value: unknown): string[] {
if (typeof value === 'string') return [value];
if (Array.isArray(value)) return value.flatMap(texts);
if (typeof value === 'object' && value !== null) {
return Object.entries(value).flatMap(([key, item]) =>
key === 'src' ? [] : texts(item),
);
}
return [];
}
function images(page: ShootPageContent): ContentImage[] {
return [
...page.stories.flatMap((story) =>
story.image === undefined ? [] : [story.image],
),
...page.photos.images,
];
}
// The photos as they are described elsewhere on the site, by file
const knownImages = new Map<string, ContentImage>(
[
...shootTypes.flatMap((shoot) =>
shoot.detailImage === undefined
? [shoot.image]
: [shoot.image, shoot.detailImage],
),
...portfolioContent.photos.map((photo) => photo.thumb),
].map((image) => [image.src, image]),
);
describe('shoot page content', () => {
it('has a page for every shoot type, with its own id', () => {
expect(Object.keys(pages).sort()).toEqual(
shootTypes.map((shoot) => shoot.id).sort(),
);
for (const [id, page] of entries) {
expect(page.id).toBe(id);
}
});
it.each(entries)(
'%s has exactly four stories with unique ids',
(_, page) => {
expect(page.stories).toHaveLength(4);
const ids = page.stories.map((story) => story.id);
expect(new Set(ids).size).toBe(ids.length);
for (const story of page.stories) {
expect(story.paragraphs.length).toBeGreaterThan(0);
}
},
);
it.each(entries)('%s has 3 to 5 FAQ items with unique ids', (_, page) => {
const ids = page.faq.items.map((item) => item.id);
expect(ids.length).toBeGreaterThanOrEqual(3);
expect(ids.length).toBeLessThanOrEqual(5);
expect(new Set(ids).size).toBe(ids.length);
});
it.each(entries)(
'%s describes every photo and gives it a size',
(_, page) => {
for (const image of images(page)) {
expect(image.alt.trim()).not.toBe('');
expect(image.width).toBeGreaterThan(0);
expect(image.height).toBeGreaterThan(0);
}
},
);
it.each(entries)(
'%s reuses the description and size a photo has elsewhere',
(_, page) => {
const reused = images(page).filter((image) =>
knownImages.has(image.src),
);
// At least the shoot's main photo
expect(reused.length).toBeGreaterThan(0);
for (const image of reused) {
expect(image).toEqual(knownImages.get(image.src));
}
},
);
it.each(entries)('%s has a page view', (id, page) => {
expect(shootPageView(id, page, sources)).toBeDefined();
});
// D14: every photo once on the rendered page
it.each(entries)('%s shows no photo twice on the page', (id, page) => {
const view = shootPageView(id, page, sources);
expect(view).toBeDefined();
const shown = [
...(view?.stories.flatMap((story) =>
story.image === undefined ? [] : [story.image],
) ?? []),
...(view === undefined ? [] : [view.offer.image]),
...(view?.photos?.images ?? []),
];
const shownSources = shown.map((image) => image.src);
expect(new Set(shownSources).size).toBe(shownSources.length);
});
// D6: one duration, the same as in the package
it.each(entries)(
'%s names the duration of its package, if it has one',
(_, page) => {
const shoot = shootTypes.find((item) => item.id === page.id);
expect(shoot).toBeDefined();
const pkg = shoot && shootPackage(shoot, packages);
if (pkg === undefined) return;
const duration = pkg.features.find((feature) =>
feature.endsWith('uur fotografie'),
);
expect(duration).toBeDefined();
expect(page.process.duration.startsWith(duration ?? '')).toBe(true);
},
);
it.each(entries)('%s is delivered in 2–3 weken (CON-ST-01)', (_, page) => {
expect(page.process.deliveryTime).toBe('2–3 weken');
});
describe.each([...entries, ['shared', shootPageShared] as const])(
'the texts of %s',
(_, content) => {
const all = texts(content);
it('contain no design placeholders in brackets', () => {
for (const text of all) {
expect(text).not.toMatch(/[[\]]/);
}
});
it('only use known placeholders', () => {
for (const text of all) {
for (const [, name] of text.matchAll(/\{([^}]*)\}/g)) {
expect(knownPlaceholders).toContain(name);
}
// No stray brace outside a placeholder
expect(text.replace(/\{[^{}]*\}/g, '')).not.toMatch(/[{}]/);
}
});
it('contain no e-mail address', () => {
for (const text of all) {
expect(text).not.toContain('@');
}
});
// Clarification 2 = B: no cancellation or rescheduling terms
it('say nothing about cancelling or rescheduling', () => {
for (const text of all) {
expect(text.toLowerCase()).not.toMatch(/annuler|verzet/);
}
});
},
);
});
+154
View File
@@ -0,0 +1,154 @@
import type { ShootPageContent } from '../types';
import { bookingFaq, deliveryFaq } from '../shootPageShared';
// Images: the shoot's main photo and the maternity photos from the
// portfolio, with the descriptions they have there. Provisional selection
// per slot; unit 2 finalises it in its functional design (CON-ST-05). The
// detail photo is shown by the package block, so it is not used here.
import zwangerschap from '../../assets/shoots/zwangerschap.jpg';
import f41a7883 from '../../assets/portfolio/f41a7883.jpg';
import f41a8206 from '../../assets/portfolio/f41a8206.jpg';
const belly = {
src: f41a8206,
alt: 'Zwangere buik in een zwarte jurk, omarmd door twee handen',
width: 800,
height: 534,
};
const dunes = {
src: f41a7883,
alt: 'Aanstaande vader omarmt zijn zwangere partner op een zandvlakte in de avondzon',
width: 800,
height: 1200,
};
// The maternity page (/soorten-fotoshoots/zwangerschap) until the CMS API
// exists. Drafted from the texts in shootTypes.ts and packages.ts; no facts
// beyond them (CON-ST-04).
const zwangerschapPage: ShootPageContent = {
id: 'zwangerschap',
// DRAFT(CON-ST-03): awaiting Andrea's approval
intro: {
eyebrow: 'Zwangerschapsfotograaf in Huizen',
title: 'Je zwangerschap, voor altijd vastgelegd',
text: 'Met een zwangerschapsshoot leg je deze bijzondere periode vast voor altijd. Ik fotografeer in Huizen, Bussum, Hilversum en omgeving, op een plek die bij jullie past.',
},
stories: [
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'verwachten',
eyebrow: 'Wat kun je verwachten',
title: 'Deze bijzondere periode, voor altijd bewaard',
paragraphs: [
[
'Een zwangerschapsshoot is ontspannen en ongedwongen. Ik leg jullie vast zoals jullie zijn: geen ongemakkelijke poses, maar spontane momenten van jou, je buik en, als je wilt, je partner.',
],
],
image: {
src: zwangerschap,
alt: 'Een zwangere vrouw en haar partner kijken elkaar lachend aan op een zandvlakte, zijn hand op haar buik',
width: 848,
height: 1060,
},
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'periode',
eyebrow: 'De beste periode',
title: 'Tussen 30 en 34 weken',
paragraphs: [
[
'De mooiste periode voor een zwangerschapsshoot is tussen de 30 en 34 weken. Stuur gerust op tijd een berichtje, dan plannen we de shoot samen in die weken.',
],
],
image: belly,
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'locatie',
eyebrow: 'De locatie',
title: 'Op een plek die bij jullie past',
paragraphs: [
[
'We kiezen samen een locatie uit die bij jullie past, denk aan de Soesterduinen of de heide.',
],
],
image: dunes,
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'duur',
eyebrow: 'Hoe lang duurt het',
title: 'Rustig de tijd',
paragraphs: [
[
'We nemen de tijd, zodat jullie je op je gemak voelen. Zo ontstaan de mooiste, spontane momenten.',
],
],
},
],
process: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
location:
'En een plek die bij jullie past, zoals de Soesterduinen of de heide.',
// DRAFT(CON-ST-03): awaiting Andrea's approval
duration: '1 uur fotografie, zonder haast.',
// The same for every shoot (CON-ST-01)
deliveryTime: '2–3 weken',
},
photos: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
title: 'Uit eerdere zwangerschapsshoots',
// Both photos are used by the story blocks, so the page view leaves
// the mosaic out (D14, D15) until Andrea delivers more photos; adding
// them here is then a data-only change
images: [dunes, belly],
},
faq: {
// DRAFT(CON-ST-03): awaiting Andrea's approval
title: 'Vragen over de zwangerschapsshoot',
items: [
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'periode',
question: 'Wanneer plan ik de zwangerschapsshoot?',
answer: [
'De mooiste periode is tussen de 30 en 34 weken. Stuur gerust al eerder een berichtje, dan zoeken we samen een moment in die weken.',
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'partner',
question: 'Mag mijn partner ook op de foto?',
answer: [
'Ja, heel graag. Samen op de foto of alleen jij: we doen wat bij jullie past.',
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
{
id: 'locatie',
question: 'Waar vindt de zwangerschapsshoot plaats?',
answer: [
'We kiezen samen een locatie uit die bij jullie past, denk aan de Soesterduinen of de heide.',
],
},
bookingFaq,
deliveryFaq,
],
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
offer: {
eyebrow: 'Pakket zwangerschap',
title: 'Wat zit er in een zwangerschapsshoot',
},
// DRAFT(CON-ST-03): awaiting Andrea's approval
closing: {
title: 'Op zoek naar een zwangerschapsfotograaf in Huizen?',
lead: [
'Stuur gerust een berichtje voor de mogelijkheden. Ik denk graag mee over een plek die bij jullie past.',
],
buttonLabel: 'Boek je zwangerschapsshoot',
},
};
export default zwangerschapPage;
+1 -1
View File
@@ -67,7 +67,7 @@ const shootTypes: ShootType[] = [
name: 'Gezin',
shootLabel: 'Gezinsshoot',
photosLabel: "gezinsfoto's",
// Draft text, still to be approved by Andrea (FR-SF-02)
// DRAFT(CON-ST-03): awaiting Andrea's approval
paragraphs: [
'Met een gezinsshoot leggen we vast hoe jullie nu samen zijn: spelen, knuffelen en lachen. Geen stijve poses, maar echte momenten die je later met plezier terugkijkt. We kiezen samen een plek die bij jullie past, bij jullie thuis of buiten in de natuur.',
],
+103
View File
@@ -232,6 +232,109 @@ export interface ShootTypesPageContent {
};
}
// One block of the story on a shoot page (FR-ST-03)
export interface StoryBlock {
// Stable slug, e.g. 'verwachten'; used in the heading id
id: string;
eyebrow: string;
title: string;
// One or more; RichText so a block can link inline
paragraphs: RichText[];
// Without one the block is text only
image?: ContentImage;
}
// One question of the FAQ on a shoot page (FR-ST-06). The answer may contain
// placeholders, see ShootPageShared.
export interface FaqItem {
// Stable slug, unique per page
id: string;
question: string;
answer: RichText;
}
// The six fixed steps of the process timeline, in this order (FR-ST-04)
export type ProcessStepId =
| 'aanvragen'
| 'datum'
| 'aanbetaling'
| 'shoot'
| 'bewerking'
| 'oplevering';
// Title and text of one process step (FR-ST-04)
export interface ProcessStepContent {
title: string;
// May contain placeholders, see ShootPageShared
text: string;
}
// The deposit that fixes the date (FR-ST-04, FR-ST-07)
export interface DepositInfo {
// Whole euros
amount: number;
// E.g. 'Aanbetaling {aanbetaling}, restbedrag na de shoot.'
note: string;
}
// The text that is the same on every shoot page (FR-ST-11, shared part).
// Some texts contain placeholders, filled in per shoot when the page view is
// built. There are five, and they may appear in the step texts, the deposit
// note and the FAQ answers:
// {reactietermijn} siteContent.contactForm.replyTime
// {aanbetaling} the deposit amount as a price
// {locatie} ShootPageContent.process.location
// {duur} ShootPageContent.process.duration
// {opleverduur} ShootPageContent.process.deliveryTime
export interface ShootPageShared {
// E.g. 'Kruimelpad', 'Home', 'Soorten fotoshoots'
breadcrumb: { label: string; home: string; overview: string };
process: {
// E.g. 'Zo werkt het'
eyebrow: string;
// E.g. 'Van aanvraag tot online galerij'
title: string;
lead: string;
steps: Record<ProcessStepId, ProcessStepContent>;
};
deposit: DepositInfo;
// E.g. 'Impressie'
photos: { eyebrow: string };
faq: { eyebrow: string; lead: RichText };
offer: {
// E.g. 'Boek dit pakket'
bookLabel: string;
// E.g. 'Eerst een vraag stellen'
askLabel: string;
// Shown when the shoot has no visible package, e.g. 'Prijs op aanvraag'
onRequest: { price: string; text: string; linkLabel: string };
};
}
// The content of one shoot page (FR-ST-11, per-shoot part); one file per shoot
export interface ShootPageContent {
// Must match the route that imports it (checked by a test)
id: ShootTypeId;
intro: { eyebrow: string; title: string; text: string };
// Four per shoot (checked by a test)
stories: StoryBlock[];
process: {
// Step 2, e.g. 'Een newbornshoot is bij jou thuis.'
location: string;
// Step 4, e.g. '1-2 uur fotografie, in het tempo van jullie baby.'
duration: string;
// Step 5 and the shared FAQ, e.g. '2–3 weken'
deliveryTime: string;
};
// Ordered; adding a photo is a data-only change
photos: { title: string; images: ContentImage[] };
// 3-5 items, shared ones mixed in
faq: { title: string; items: FaqItem[] };
// E.g. 'Pakket newborn', 'Wat zit er in een newbornshoot'
offer: { eyebrow: string; title: string };
closing: { title: string; lead: RichText; buttonLabel: string };
}
export interface HeroSlide {
id: string;
src: string;