Adds the Contact page

The contact page in the approved layout: the form next to a photo with
the contact card on wide screens, and the card with a small portrait
above the form on phones, where the large photo is never downloaded.
/contact?pakket= preselects a package. The page is indexed, with its
own title, description, preview image and ContactPage structured data.
Over mij and Soorten fotoshoots now link to /contact. The green button
gets a darker background, so its white text meets the contrast minimum.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 19:27:18 +01:00
co-authored by Claude Opus 5.5
parent ad85e3fe5b
commit e92b652061
25 changed files with 485 additions and 53 deletions
+5 -8
View File
@@ -16,16 +16,14 @@ const shoot = (id: string) => shootTypes.find((item) => item.id === id)!;
describe('shootContactLink', () => {
it('preselects the package of a shoot that has one', () => {
expect(shootContactLink(shoot('newborn'), packages)).toEqual({
to: '/',
to: '/contact',
search: { pakket: 'newborn' },
hash: 'contact',
});
});
it('links without a package for a shoot that has none', () => {
expect(shootContactLink(shoot('loveshoot'), packages)).toEqual({
to: '/',
hash: 'contact',
to: '/contact',
});
});
@@ -35,14 +33,13 @@ describe('shootContactLink', () => {
shoot('gezin'),
packages.filter((pkg) => pkg.id !== 'gezin'),
),
).toEqual({ to: '/', hash: 'contact' });
).toEqual({ to: '/contact' });
});
it('always goes to the contact section (invariant)', () => {
it('always goes to the contact page (invariant)', () => {
fc.assert(
fc.property(shootType, fc.array(anyPackage), (item, list) => {
const link = shootContactLink(item, list);
return link.to === '/' && link.hash === 'contact';
return shootContactLink(item, list).to === '/contact';
}),
);
});