Adds the Over mij section to the homepage

Adds the introduction block with a framed photo of Andrea and a link to
the about page. Brings in FramedImage and an underline link variant for
the later blocks, and narrows the load margin of deferred photos so
nothing below the hero starts loading before the hero has painted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 00:31:10 +02:00
co-authored by Claude Opus 5.5
parent 3e530df0af
commit 0b54a67dc4
20 changed files with 403 additions and 14 deletions
@@ -31,4 +31,23 @@ describe('SectionHeading', () => {
).toBeInTheDocument();
expect(container.querySelectorAll('p')).toHaveLength(0);
});
it('supports a compact, start-aligned variant above running text', async () => {
await renderWithProviders(
<SectionHeading
id="about-title"
eyebrow="Over mij"
title="Lifestyle fotograaf"
align="start"
spacing="compact"
/>,
);
expect(
screen.getByRole('heading', {
level: 2,
name: 'Lifestyle fotograaf',
}),
).toHaveAttribute('id', 'about-title');
expect(screen.getByText('Over mij')).toBeInTheDocument();
});
});
@@ -7,6 +7,8 @@ type SectionHeadingProps = {
eyebrow?: string;
lead?: string;
align?: 'center' | 'start';
// compact: little space below, for a heading above running text
spacing?: 'default' | 'compact';
};
// Heading block of a homepage section (design .section__head): optional
@@ -17,6 +19,7 @@ export default function SectionHeading({
eyebrow,
lead,
align = 'center',
spacing = 'default',
}: SectionHeadingProps) {
const centered = align === 'center';
@@ -24,7 +27,7 @@ export default function SectionHeading({
<Box
maxW="620px"
mx={centered ? 'auto' : undefined}
mb="sectionHeadGap"
mb={spacing === 'compact' ? 6 : 'sectionHeadGap'}
textAlign={centered ? 'center' : 'start'}
>
{eyebrow && (