Adds the Lifestyle fotografie section to the homepage

Adds the first block below the hero: heading, intro and a staggered
gallery of four live photos. Brings in the shared section building
blocks (HomeSection, SectionHeading, Reveal) and DeferredImage, which
holds back below-the-fold photos until the page has loaded so they do
not compete with the hero for bandwidth.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 00:01:44 +02:00
co-authored by Claude Opus 5.5
parent c81dcd3979
commit b2717df049
29 changed files with 903 additions and 23 deletions
@@ -0,0 +1,40 @@
import type { ReactNode } from 'react';
import { Box, Container } from '@chakra-ui/react';
type HomeSectionProps = {
// Id of the heading that names this section for assistive technology
labelledBy: string;
id?: string;
tone?: 'paper' | 'alt';
width?: 'default' | 'narrow';
spacing?: 'default' | 'tight';
'data-testid'?: string;
children: ReactNode;
};
// Frame of a homepage section (design .section): vertical rhythm, an
// optional alternate background and the content column.
export default function HomeSection({
labelledBy,
id,
tone = 'paper',
width = 'default',
spacing = 'default',
'data-testid': testId,
children,
}: HomeSectionProps) {
return (
<Box
as="section"
id={id}
aria-labelledby={labelledBy}
data-testid={testId}
bg={tone === 'alt' ? 'paper.alt' : 'paper'}
py={spacing === 'tight' ? 'sectionYTight' : 'sectionY'}
>
<Container maxW={width === 'narrow' ? 'contentNarrow' : 'content'}>
{children}
</Container>
</Box>
);
}