Replaces the placeholder with the page from the design and the texts from the live site: Andrea's introduction with her portrait, how it started, two photos, life outside photography and a booking button. The page is now indexed, with its own title, description, preview image and AboutPage data about Andrea. The portrait loads straight away instead of after the page, since on phones it is the largest paint. Lighthouse no longer lets every indexed page use the homepage's lower mobile performance target; it now only applies to the homepage itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
64 lines
2.2 KiB
TypeScript
64 lines
2.2 KiB
TypeScript
import { createFileRoute } from '@tanstack/react-router';
|
|
import AboutIntro from '../components/about/AboutIntro/AboutIntro';
|
|
import StorySection from '../components/about/StorySection/StorySection';
|
|
import LinkButton from '../components/LinkButton';
|
|
import PageIntro from '../components/PageIntro/PageIntro';
|
|
import PageSection from '../components/PageSection/PageSection';
|
|
import PhotoDuo from '../components/PhotoDuo/PhotoDuo';
|
|
import aboutContent from '../content/aboutContent';
|
|
import siteContent from '../content/siteContent';
|
|
import { aboutPage, pageHead, structuredDataScript } from '../seo';
|
|
|
|
export const Route = createFileRoute('/over-mij')({
|
|
head: () => ({
|
|
...pageHead('/over-mij'),
|
|
scripts: [
|
|
structuredDataScript(
|
|
aboutPage('/over-mij', aboutContent.person, siteContent),
|
|
),
|
|
],
|
|
}),
|
|
component: About,
|
|
});
|
|
|
|
// The about page: who Andrea is, how it started, two photos and what she
|
|
// does besides photography, in the order of LAYOUT.md
|
|
function About() {
|
|
const { head, intro, background, photos, personal, booking } = aboutContent;
|
|
return (
|
|
<>
|
|
<PageIntro eyebrow={head.eyebrow} title={head.title} />
|
|
<AboutIntro content={intro} />
|
|
<StorySection
|
|
content={background}
|
|
titleId="about-background-title"
|
|
tone="alt"
|
|
data-testid="about-background"
|
|
/>
|
|
{/* No heading in the design, so no named region (BR-OM-11) */}
|
|
<PageSection>
|
|
<PhotoDuo
|
|
photos={photos}
|
|
label="Foto's"
|
|
data-testid="about-photos"
|
|
/>
|
|
</PageSection>
|
|
<StorySection
|
|
content={personal}
|
|
titleId="about-personal-title"
|
|
spacing="flushTop"
|
|
data-testid="about-personal"
|
|
>
|
|
<LinkButton
|
|
variant="accent"
|
|
to={booking.to}
|
|
hash={booking.hash}
|
|
data-testid="about-booking-link"
|
|
>
|
|
{booking.label}
|
|
</LinkButton>
|
|
</StorySection>
|
|
</>
|
|
);
|
|
}
|