Adds the shoot types and their photos

The five shoot types of the Soorten fotoshoots page as one content list,
with stable ids the portfolio page also uses for its filters. Each type
has its texts, a 4:5 crop of the live photo, the colour of the block
behind it (new frame tokens in the theme) and its price package if any.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 23:38:34 +02:00
co-authored by Claude Opus 5.5
parent 11a52244ad
commit eb235368bf
10 changed files with 239 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

+51
View File
@@ -0,0 +1,51 @@
import { describe, expect, it } from 'vitest';
import system from '../theme';
import packages from './packages';
import shootTypes from './shootTypes';
describe('shootTypes', () => {
it('lists the five shoot types in page order', () => {
// The ids are shared with the portfolio page and go into URLs
expect(shootTypes.map((shoot) => shoot.id)).toEqual([
'newborn',
'zwangerschap',
'gezin',
'loveshoot',
'portret',
]);
});
it('only refers to packages that exist', () => {
const ids = packages.map((pkg) => pkg.id);
for (const shoot of shootTypes) {
if (shoot.packageId !== undefined) {
expect(ids).toContain(shoot.packageId);
}
}
});
it('gives every shoot with a matching package its package', () => {
expect(
shootTypes
.filter((shoot) => shoot.packageId !== undefined)
.map((shoot) => shoot.id),
).toEqual(['newborn', 'zwangerschap', 'gezin']);
});
it('only uses frame colours the theme defines', () => {
for (const shoot of shootTypes) {
expect(
system.tokens.getByName(`colors.${shoot.frameColor}`),
).toBeDefined();
}
});
it('has a description and photo for every shoot', () => {
for (const shoot of shootTypes) {
expect(shoot.paragraphs.length).toBeGreaterThan(0);
expect(shoot.image.alt.trim()).not.toBe('');
// Cropped to 4:5
expect(shoot.image.width / shoot.image.height).toBe(4 / 5);
}
});
});
+97
View File
@@ -0,0 +1,97 @@
import type { ShootType } from './types';
// Images, cropped to 4:5 (960×1200) from the live photos
import newborn from '../assets/shoots/newborn.jpg';
import zwangerschap from '../assets/shoots/zwangerschap.jpg';
import gezin from '../assets/shoots/gezin.jpg';
import loveshoot from '../assets/shoots/loveshoot.jpg';
import portret from '../assets/shoots/portret.jpg';
const size = { width: 960, height: 1200 };
// The shoot types until the CMS API exists, in page order. Texts from the
// live site (FR-SF-02); also used by the portfolio page for its filters.
const shootTypes: ShootType[] = [
{
id: 'newborn',
name: 'Newborn',
shootLabel: 'Newbornshoot',
photosLabel: "newbornfoto's",
paragraphs: [
"Ben je in verwachting? Boek een newbornshoot om de 'kleinste' momenten voor altijd te bewaren. De ideale periode voor een newbornshoot is tot 12 weken na de geboorte van je baby. De fotoshoot vindt bij jou thuis plaats. We nemen alle tijd en volgen het ritme van jullie baby. Je kunt tussendoor gewoon je baby voeden en verschonen als dat nodig is.",
'Ben je op zoek naar een newbornfotograaf in Huizen en omgeving? Stuur gerust een berichtje voor de mogelijkheden.',
],
image: {
src: newborn,
alt: 'Een pasgeboren baby in een gestreept pakje slaapt met het hoofdje opzij',
...size,
},
frameColor: 'frame.stone',
packageId: 'newborn',
},
{
id: 'zwangerschap',
name: 'Zwangerschap',
shootLabel: 'Zwangerschapsshoot',
photosLabel: "zwangerschapsfoto's",
paragraphs: [
'Met een zwangerschapsshoot leg je deze bijzondere periode vast voor altijd. De mooiste periode voor een zwangerschapsshoot is tussen de 30 en 34 weken. We kiezen samen een locatie uit die bij jullie past, denk aan de Soesterduinen of de heide.',
],
image: {
src: zwangerschap,
alt: 'Een zwangere vrouw en haar partner kijken elkaar lachend aan op een zandvlakte, zijn hand op haar buik',
...size,
},
frameColor: 'frame.rust',
packageId: 'zwangerschap',
},
{
id: 'gezin',
name: 'Gezin',
shootLabel: 'Gezinsshoot',
photosLabel: "gezinsfoto's",
// Draft text, still to be approved by Andrea (FR-SF-02)
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.',
],
image: {
src: gezin,
alt: 'Vader en moeder kijken samen naar hun pasgeboren baby in de armen van de vader',
...size,
},
frameColor: 'accent',
packageId: 'gezin',
},
{
id: 'loveshoot',
name: 'Loveshoot',
shootLabel: 'Loveshoot',
photosLabel: "loveshootfoto's",
paragraphs: [
"Een loveshoot is een prachtige manier om jullie liefde vast te leggen. Zijn jullie verloofd? Dan kan je de foto's gebruiken voor de trouwkaart.",
],
image: {
src: loveshoot,
alt: 'Een stel ligt in de zon op een plaid in het gras, met de hoofden tegen elkaar',
...size,
},
frameColor: 'frame.taupe',
},
{
id: 'portret',
name: 'Portretten',
shootLabel: 'Portretshoot',
photosLabel: "portretfoto's",
paragraphs: [
'Van portretshoots in de natuur tot zakelijke shoots voor de branding van je bedrijf.',
],
image: {
src: portret,
alt: 'Een vrouw met lang bruin haar in een witte blouse kijkt glimlachend omlaag, met bomen op de achtergrond',
...size,
},
frameColor: 'frame.olive',
},
];
export default shootTypes;
+31
View File
@@ -42,6 +42,37 @@ export interface PricingPackage {
features: string[];
}
// The kinds of shoot Andrea offers. The ids are stable: they go into URLs
// (/portfolio?shoot=) and the portfolio page tags its photos with them.
export type ShootTypeId =
'newborn' | 'zwangerschap' | 'gezin' | 'loveshoot' | 'portret';
// Colour tokens allowed for the block behind a framed photo
export type FrameColor =
| 'sand'
| 'accent'
| 'frame.stone'
| 'frame.rust'
| 'frame.taupe'
| 'frame.olive';
// One kind of shoot as presented on /soorten-fotoshoots
export interface ShootType {
id: ShootTypeId;
// Short name, the heading on the page: 'Newborn'
name: string;
// Full name: 'Newbornshoot'
shootLabel: string;
// For "Bekijk meer newbornfoto's"
photosLabel: string;
paragraphs: string[];
// Cropped to 4:5
image: ContentImage;
frameColor: FrameColor;
// The matching price package, if there is one
packageId?: PricingPackage['id'];
}
// A review from a client ("Lieve woorden"). quote is plain text without
// quotation marks; the design adds a decorative one.
export interface Testimonial {
+52
View File
@@ -3,7 +3,10 @@ import type { ContactField, ContactValues } from '../contact/types';
import type { ContactFormEvent } from '../lib/contactFormReducer';
import type {
EmailAddress,
FrameColor,
PricingPackage,
ShootType,
ShootTypeId,
SiteContent,
SocialLink,
Testimonial,
@@ -132,6 +135,55 @@ const image = fc.record({
height: fc.integer({ min: 1, max: 4000 }),
});
export const shootTypeId = fc.constantFrom<ShootTypeId[]>(
'newborn',
'zwangerschap',
'gezin',
'loveshoot',
'portret',
);
const frameColor = fc.constantFrom<FrameColor[]>(
'sand',
'accent',
'frame.stone',
'frame.rust',
'frame.taupe',
'frame.olive',
);
// A shoot type as the CMS would deliver it; packageId may name a package
// that does not exist
export const shootType: fc.Arbitrary<ShootType> = fc.record(
{
id: shootTypeId,
name: nonBlank,
shootLabel: nonBlank,
photosLabel: nonBlank,
paragraphs: fc.array(nonBlank, { minLength: 1, maxLength: 3 }),
image,
frameColor,
packageId: packageId,
},
{
requiredKeys: [
'id',
'name',
'shootLabel',
'photosLabel',
'paragraphs',
'image',
'frameColor',
],
},
);
// Shoot types with unique ids, in any order
export const uniqueShootTypes = fc.uniqueArray(shootType, {
selector: (shoot) => shoot.id,
maxLength: 5,
});
// A review that meets every invariant
export const testimonial: fc.Arbitrary<Testimonial> = fc.record({
id: fc.oneof(
+8
View File
@@ -56,6 +56,14 @@ const config = defineConfig({
deep: { value: '#5f6a58' }, // accent hover
},
sand: { value: '#d9cdbc' }, // zachte vlakken en decoratie
// Blocks behind the shoot photos, one per shoot type, taken
// from the live page. Decoration only, never behind text.
frame: {
stone: { value: '#aba699' },
rust: { value: '#975030' },
taupe: { value: '#a18679' },
olive: { value: '#84847c' },
},
// Form errors: the design's #a4443a, 5.7:1 on paper, 6.1:1 on white
error: { value: '#a4443a' },
},