Files
AndreaSlopFotografie/web/src/routes/soorten-fotoshoots.tsx
T
SluijsensandClaude Opus 5.5 4521539baa Adds the Soorten fotoshoots page
Replaces the placeholder with the five shoot types (Newborn,
Zwangerschap, Gezin, Loveshoot, Portretten), each an article with its
own anchor, photo, text and a link to the contact form that preselects
the matching package. A portfolio link per shoot shows once the
portfolio page is live. A closing call to action links to the prices
and the contact form.

The page is indexed with its own description and preview image, and
describes the shoots as services of the business in structured data.
That data is rendered in the page component, so the shoot texts stay
out of the main bundle. The shoot photos are cropped at 848x1060, no
longer upscaled. Photo pages get a mobile Lighthouse performance target
of 0.85: their largest paint is a photo that the simulated slow
connection only requests after the scripts have run.

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

66 lines
2.6 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 packages from '../content/packages';
import shootTypes from '../content/shootTypes';
import shootTypesPageContent from '../content/shootTypesPageContent';
import siteContent from '../content/siteContent';
import { isPortfolioLive } from '../lib/shootLinks';
import { jsonLdScript, 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; jsonLdScript escapes <, > and &. */}
<script
type="application/ld+json"
dangerouslySetInnerHTML={{
__html: jsonLdScript(
webPage('WebPage', '/soorten-fotoshoots', {
mainEntity: shootServices(shootTypes, siteContent),
}),
),
}}
/>
<PageIntro eyebrow={head.eyebrow} title={head.title}>
{head.intro}
</PageIntro>
<ShootList
shoots={shootTypes}
packages={packages}
portfolioLive={isPortfolioLive(sitePages)}
/>
<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>
</>
);
}