Adds the Over mij page

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>
This commit is contained in:
2026-10-23 01:17:33 +02:00
co-authored by Claude Opus 5.5
parent 93993718c7
commit e15215393e
40 changed files with 1159 additions and 60 deletions
+38
View File
@@ -125,6 +125,44 @@ describe('app', () => {
);
});
it('shows the about page with its outline, links and structured data', async () => {
const { container } = await renderApp('/over-mij');
await screen.findByRole('heading', { level: 1, name: 'Over mij' });
// The page's own outline; the footer adds its own column headings
expect(
within(screen.getByRole('main'))
.getAllByRole('heading')
.map((h) => `${h.tagName} ${h.textContent}`),
).toEqual([
'H1 Over mij',
'H2 Hoi! Ik ben Andrea',
'H3 Hoe het begon',
'H3 Buiten de camera om',
]);
expect(
screen.getByRole('link', { name: 'mijn portfolio' }),
).toHaveAttribute('href', '/portfolio');
expect(
screen.getByRole('link', { name: 'neem contact op' }),
).toHaveAttribute('href', '/#contact');
expect(
screen.getByRole('link', { name: 'Boek je shoot' }),
).toHaveAttribute('href', '/#contact');
expect(
screen.getByRole('list', { name: "Foto's" }),
).toBeInTheDocument();
expect(document.title).toBe(
'Over mij – fotograaf in Huizen | Andrea Slop Fotografie',
);
expect(document.head.querySelector('meta[name="robots"]')).toBeNull();
const types = [
...document.querySelectorAll('script[type="application/ld+json"]'),
].map((script) => JSON.parse(script.textContent!)['@type']);
expect(types.sort()).toEqual(['AboutPage', 'ProfessionalService']);
expect(await axeResults(container)).toHaveNoViolations();
});
it('toont een onbekende URL als 404 binnen de shell', async () => {
const { container } = await renderApp('/bestaat-niet');
expect(