Files
AndreaSlopFotografie/web/src/lib/shootLinks.ts
T
SluijsensandClaude Opus 5.5 e5f4348178 Adds the shoot-type pages content and SEO foundation
Five pages under /soorten-fotoshoots/<id> with draft copy awaiting
Andrea's approval (DRAFT markers), structured data (Service,
BreadcrumbList, FAQPage), sitemap and Lighthouse entries. The overview
route moves to soorten-fotoshoots/index.tsx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 13:31:46 +01:00

28 lines
1.1 KiB
TypeScript

import type { PricingPackage, ShootType } from '../content/types.ts';
import type { RoutePath } from '../navigation.ts';
import type { PageMeta } from '../sitePages.ts';
import { shootPackage } from './shootPackage.ts';
// 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[],
) {
const pkg = shootPackage(shoot, packages);
return pkg !== undefined
? { to: '/contact' as const, search: { pakket: pkg.id } }
: { to: '/contact' as const };
}
// "Bekijk meer …foto's": the portfolio filtered on this shoot type
export function shootPortfolioLink(shoot: ShootType) {
return { to: '/portfolio' as const, search: { shoot: shoot.id } };
}
// The portfolio links only show once the portfolio page is live, so no
// visitor lands on the placeholder (BR-SF-04)
export function isPortfolioLive(pages: Record<RoutePath, PageMeta>): boolean {
return pages['/portfolio'].indexed;
}