Adds the shoot page layout and the shoot-type submenu

Shoot pages follow design E: breadcrumb, story blocks, process
timeline with icons, photo mosaic, FAQ, package block and booking
call to action, with per-shoot OG images. The navigation gets a
"Soorten fotoshoots" submenu (desktop panel, mobile group) built from
shootTypes, with exact current-page matching in menu, footer and
breadcrumb. A 404 under /soorten-fotoshoots/ also offers a link back
to the overview.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 14:43:43 +01:00
co-authored by Claude Opus 5.5
parent e5f4348178
commit 7af2069959
84 changed files with 6090 additions and 128 deletions
@@ -167,4 +167,23 @@ describe('MediaText', () => {
);
expect(await axeResults(container)).toHaveNoViolations();
});
it('keeps a medium photo at most 30rem wide and lays out like small', async () => {
await renderWithProviders(
<MediaText image={image} aspectRatio="4 / 5" mediaSize="medium">
<h2>Newborn</h2>
</MediaText>,
);
expect(gridRules()).toMatch(
/grid-template-columns: minmax\(0, ?30rem\) minmax\(0, ?1fr\)/,
);
expect(cssRulesFor(photoColumnElement()).join()).toContain(
'max-width: 30rem',
);
const textRules = cssRulesFor(
screen.getByRole('heading').closest('[data-reveal]')!,
).join();
expect(textRules).toContain('max-width: 36rem');
expect(textRules).toMatch(/min-width: 64rem.*margin-inline: auto/s);
});
});
+13 -4
View File
@@ -9,6 +9,8 @@ import type { ContentImage, FrameColor } from '@/content/types';
// alone, or the photo with a detail photo overlapping it
const SMALL_MEDIA = '20rem';
const SMALL_MEDIA_WITH_DETAIL = '28rem';
// Widest a medium photo column gets (a portrait photo on a shoot page)
const MEDIUM_MEDIA = '30rem';
// Widest the text next to a small photo gets: about 70 characters a line
const SMALL_TEXT = '36rem';
@@ -23,8 +25,9 @@ type MediaTextProps = {
reverse?: boolean;
// half: photo and text share the width equally (design .about);
// small: the photo column stays narrow (20rem, 28rem with a detail
// photo); the text, at most 36rem, is centred in the rest
mediaSize?: 'half' | 'small';
// photo); the text, at most 36rem, is centred in the rest;
// medium: laid out like small, with a photo column up to 30rem
mediaSize?: 'half' | 'small' | 'medium';
// A smaller square photo overlapping the main one's lower right corner
detailImage?: ContentImage;
// Colour of the block behind the photo (FramedImage)
@@ -48,8 +51,14 @@ export default function MediaText({
'data-testid': testId,
children,
}: MediaTextProps) {
const small = mediaSize === 'small';
const mediaWidth = detailImage ? SMALL_MEDIA_WITH_DETAIL : SMALL_MEDIA;
// medium shares the layout of small, with a wider photo column
const small = mediaSize !== 'half';
const mediaWidth =
mediaSize === 'medium'
? MEDIUM_MEDIA
: detailImage
? SMALL_MEDIA_WITH_DETAIL
: SMALL_MEDIA;
const media = `minmax(0, ${mediaWidth})`;
const columns = small
? reverse