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:
@@ -3,9 +3,8 @@ import type { RoutePath } from '../navigation.ts';
|
||||
import type { PageMeta } from '../sitePages.ts';
|
||||
import { visiblePackages } from './visiblePackages.ts';
|
||||
|
||||
// Where "Stuur een berichtje" goes: the homepage contact section, with the
|
||||
// shoot's package preselected when that package is shown (BR-SF-01..03).
|
||||
// Once /contact exists, only this function changes.
|
||||
// Where "Stuur een berichtje" goes: the contact page, with the shoot's
|
||||
// package preselected when that package is shown (BR-SF-01..03, FR-CP-09)
|
||||
export function shootContactLink(
|
||||
shoot: ShootType,
|
||||
packages: readonly PricingPackage[],
|
||||
@@ -14,12 +13,8 @@ export function shootContactLink(
|
||||
(pkg) => pkg.id === shoot.packageId,
|
||||
);
|
||||
return shown && shoot.packageId !== undefined
|
||||
? {
|
||||
to: '/' as const,
|
||||
search: { pakket: shoot.packageId },
|
||||
hash: 'contact',
|
||||
}
|
||||
: { to: '/' as const, hash: 'contact' };
|
||||
? { to: '/contact' as const, search: { pakket: shoot.packageId } }
|
||||
: { to: '/contact' as const };
|
||||
}
|
||||
|
||||
// "Bekijk meer …foto's": the portfolio filtered on this shoot type
|
||||
|
||||
Reference in New Issue
Block a user