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
+44
View File
@@ -0,0 +1,44 @@
import type { HomeContent } from './types';
// Images
import intro1 from '../assets/home/intro-1.jpg';
import intro2 from '../assets/home/intro-2.jpg';
import intro3 from '../assets/home/intro-3.jpg';
import intro4 from '../assets/home/intro-4.jpg';
// Static content of the homepage sections until the CMS API exists; the API
// will then deliver this object.
const homeContent: HomeContent = {
intro: {
title: 'Lifestyle fotografie',
lead: 'Jouw favoriete momenten, vastgelegd op een natuurlijke en ongedwongen manier.',
photos: [
{
src: intro1,
alt: 'Babyhandje in de hand van de moeder, op een gebreid dekentje',
width: 800,
height: 1200,
},
{
src: intro2,
alt: 'Moeder drukt haar pasgeboren baby in een gebreid truitje tegen zich aan',
width: 800,
height: 1200,
},
{
src: intro3,
alt: 'Zwangere vrouw op blote voeten in het zand bij zonsondergang',
width: 800,
height: 1200,
},
{
src: intro4,
alt: 'Aanstaande vader omarmt zijn zwangere partner in de duinen',
width: 800,
height: 1200,
},
],
},
};
export default homeContent;
+18
View File
@@ -21,6 +21,24 @@ export interface SiteContent {
email: EmailAddress;
}
// An image as the API will deliver it. width and height are the intrinsic
// size, so the browser can reserve space before the image loads.
export interface ContentImage {
src: string;
alt: string;
width: number;
height: number;
}
// Content of the homepage sections below the hero
export interface HomeContent {
intro: {
title: string;
lead: string;
photos: ContentImage[];
};
}
export interface HeroSlide {
id: string;
src: string;