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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user