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:
@@ -0,0 +1,38 @@
|
||||
import fc from 'fast-check';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import shootTypes from '@/content/shootTypes';
|
||||
import { uniqueShootTypes } from '@/test/arbitraries';
|
||||
import { readMoreLabel } from './readMoreLabel';
|
||||
|
||||
describe('readMoreLabel', () => {
|
||||
it('names each of the five real shoots', () => {
|
||||
expect(shootTypes.map(readMoreLabel)).toEqual([
|
||||
'Lees meer over de newbornshoot',
|
||||
'Lees meer over de zwangerschapsshoot',
|
||||
'Lees meer over de gezinsshoot',
|
||||
'Lees meer over de loveshoot',
|
||||
'Lees meer over de portretshoot',
|
||||
]);
|
||||
expect(new Set(shootTypes.map(readMoreLabel)).size).toBe(5);
|
||||
});
|
||||
|
||||
it('starts with the fixed words and is unique for unique shoot labels (invariant)', () => {
|
||||
fc.assert(
|
||||
fc.property(uniqueShootTypes, (shoots) => {
|
||||
const unique = shoots.filter(
|
||||
(shoot, index) =>
|
||||
shoots.findIndex(
|
||||
(other) =>
|
||||
other.shootLabel.toLowerCase() ===
|
||||
shoot.shootLabel.toLowerCase(),
|
||||
) === index,
|
||||
);
|
||||
const labels = unique.map(readMoreLabel);
|
||||
for (const label of labels) {
|
||||
expect(label.startsWith('Lees meer over de ')).toBe(true);
|
||||
}
|
||||
expect(new Set(labels).size).toBe(labels.length);
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user