Files
AndreaSlopFotografie/web/src/routes/over-mij.tsx

65 lines
2.3 KiB
TypeScript

import { createFileRoute } from '@tanstack/react-router';
import { t } from '@/i18n';
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={t('about.photos.label')}
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>
</>
);
}