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:
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -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;
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user