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
+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(