Shares the Instagram block between pages

Moves InstagramGrid out of the homepage sections and gives it its own
content module, so the portfolio can show the same block. The homepage
renders exactly as before; the tiles keep reusing the intro and review
photos, so each photo keeps one description.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 21:32:48 +01:00
co-authored by Claude Opus 5.5
parent b35b1c2404
commit e013f1436b
13 changed files with 394 additions and 31 deletions
+1 -12
View File
@@ -1,5 +1,4 @@
import type { ContentImage, HomeContent } from './types';
import testimonials from './testimonials';
// Images
import intro1 from '../assets/home/intro-1.jpg';
@@ -12,7 +11,7 @@ import deco2 from '../assets/home/deco-2.png';
// Shared by the intro gallery and the Instagram tiles, so one photo keeps
// one description
const introPhotos: ContentImage[] = [
export const introPhotos: ContentImage[] = [
{
src: intro1,
alt: 'Babyhandje in de hand van de moeder, op een gebreid dekentje',
@@ -78,16 +77,6 @@ const homeContent: HomeContent = {
title: 'Contact',
lead: 'Wil je meer informatie ontvangen? Neem gerust contact met mij op.',
},
instagram: {
title: 'Instagram',
handle: '@andreaslopfotografie',
// Photos the page already loads, so the tiles cost no extra download;
// Andrea can swap them until the API delivers the real feed
photos: [
...introPhotos,
...testimonials.map((testimonial) => testimonial.image),
],
},
};
export default homeContent;
+18
View File
@@ -0,0 +1,18 @@
import { introPhotos } from './homeContent';
import testimonials from './testimonials';
import type { InstagramContent } from './types';
// The Instagram block on the homepage and the portfolio until the API
// delivers the real feed. Reuses photos the site already has, so each photo
// keeps one description and the homepage downloads nothing extra for them;
// Andrea can swap them in the meantime.
const instagramContent: InstagramContent = {
title: 'Instagram',
handle: '@andreaslopfotografie',
photos: [
...introPhotos,
...testimonials.map((testimonial) => testimonial.image),
],
};
export default instagramContent;
+8 -6
View File
@@ -128,12 +128,14 @@ export interface HomeContent {
title: string;
lead: string;
};
// A fixed selection until the API delivers the real feed (FR-HP-10)
instagram: {
title: string;
handle: string;
photos: ContentImage[];
};
}
// The Instagram block, shown on the homepage and the portfolio: a fixed
// selection until the API delivers the real feed (FR-HP-10)
export interface InstagramContent {
title: string;
handle: string;
photos: ContentImage[];
}
// Where a link goes: a route (a typo is a type error) and optionally an