Adds the Instagram section to the homepage
Shows the handle as a link to the profile and six square photos from edge to edge (2, 3 or 6 per row), each linking to the profile in a new tab. The photos are ones the page already loads, so the section adds no downloads; the API will later fill it with the real feed. Without a valid https link to Instagram the section is left out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { HomeContent } from './types';
|
||||
import type { ContentImage, HomeContent } from './types';
|
||||
import testimonials from './testimonials';
|
||||
|
||||
// Images
|
||||
import intro1 from '../assets/home/intro-1.jpg';
|
||||
@@ -9,38 +10,42 @@ import andrea from '../assets/home/andrea.jpg';
|
||||
import deco1 from '../assets/home/deco-1.png';
|
||||
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[] = [
|
||||
{
|
||||
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,
|
||||
},
|
||||
];
|
||||
|
||||
// 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,
|
||||
},
|
||||
],
|
||||
photos: introPhotos,
|
||||
},
|
||||
about: {
|
||||
eyebrow: 'Over mij',
|
||||
@@ -73,6 +78,16 @@ 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