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>
71 lines
2.9 KiB
TypeScript
71 lines
2.9 KiB
TypeScript
import { createFileRoute } from '@tanstack/react-router';
|
|
import CallToAction from '../../components/CallToAction/CallToAction';
|
|
import LinkButton from '../../components/LinkButton';
|
|
import PageIntro from '../../components/PageIntro/PageIntro';
|
|
import RichParagraph from '../../components/RichParagraph/RichParagraph';
|
|
import ShootList from '../../components/shoots/ShootList/ShootList';
|
|
import StructuredData from '../../components/StructuredData/StructuredData';
|
|
import packages from '../../content/packages';
|
|
import portfolioContent from '../../content/portfolioContent';
|
|
import shootTypes from '../../content/shootTypes';
|
|
import shootTypesPageContent from '../../content/shootTypesPageContent';
|
|
import siteContent from '../../content/siteContent';
|
|
import { shootTypesWithPhotos } from '../../lib/portfolioFilters';
|
|
import { isPortfolioLive } from '../../lib/shootLinks';
|
|
import { pageHead, shootServices, webPage } from '../../seo';
|
|
import sitePages from '../../sitePages';
|
|
|
|
export const Route = createFileRoute('/soorten-fotoshoots/')({
|
|
head: () => pageHead('/soorten-fotoshoots'),
|
|
component: PhotoshootTypes,
|
|
});
|
|
|
|
// The shoot types page: the page head, the shoots one by one and a closing
|
|
// call to action, in the order of LAYOUT.md
|
|
function PhotoshootTypes() {
|
|
const { head, closing } = shootTypesPageContent;
|
|
return (
|
|
<>
|
|
{/* The structured data lives here, not in head(): head() is part
|
|
of the main bundle, the component is split off, so the shoot
|
|
texts only load with this page. Google reads JSON-LD anywhere
|
|
in the page; StructuredData escapes <, > and &. */}
|
|
<StructuredData
|
|
data={webPage('WebPage', '/soorten-fotoshoots', {
|
|
mainEntity: shootServices(shootTypes, siteContent),
|
|
})}
|
|
/>
|
|
<PageIntro eyebrow={head.eyebrow} title={head.title}>
|
|
{head.intro}
|
|
</PageIntro>
|
|
<ShootList
|
|
shoots={shootTypes}
|
|
packages={packages}
|
|
portfolioShoots={
|
|
isPortfolioLive(sitePages)
|
|
? shootTypesWithPhotos(
|
|
shootTypes,
|
|
portfolioContent.photos,
|
|
).map((type) => type.id)
|
|
: []
|
|
}
|
|
/>
|
|
<CallToAction
|
|
title={closing.title}
|
|
titleId="shoot-types-cta-title"
|
|
lead={<RichParagraph paragraph={closing.lead} />}
|
|
data-testid="shoot-types-cta"
|
|
>
|
|
<LinkButton
|
|
variant="accent"
|
|
to={closing.booking.to}
|
|
hash={closing.booking.hash}
|
|
data-testid="shoot-types-booking-link"
|
|
>
|
|
{closing.booking.label}
|
|
</LinkButton>
|
|
</CallToAction>
|
|
</>
|
|
);
|
|
}
|