Translation files, steps 6 and 7: portfolio, instagram, testimonials and the SEO titles in language files

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 20:51:09 +01:00
co-authored by Claude Sonnet 5.5
parent 776cd9861d
commit c839b255eb
16 changed files with 221 additions and 86 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
import { messages } from '../i18n/index.ts';
import { introPhotos } from './homeContent';
import testimonials from './testimonials';
import type { InstagramContent } from './types';
@@ -7,8 +8,8 @@ import type { InstagramContent } from './types';
// 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',
title: messages.instagram.title,
handle: messages.instagram.handle,
photos: [
...introPhotos,
...testimonials.map((testimonial) => testimonial.image),
+13 -15
View File
@@ -1,3 +1,4 @@
import { messages } from '../i18n/index.ts';
import type { PortfolioContent, PortfolioPhoto, ShootTypeId } from './types';
// Images: the live portfolio photos, 800 px wide for the grid and 1600 px
@@ -50,61 +51,58 @@ function photo(
// The portfolio until the CMS API exists: the photos of the live site in
// their order (2026-10-24), with the shoot type and description approved
// in the functional design (Andrea may still reword the descriptions)
const alts = messages.portfolio.photos;
const portfolioContent: PortfolioContent = {
intro: {
eyebrow: 'Werk',
title: 'Portfolio',
text: 'Een selectie uit mijn werk. Klik of tik op een foto om hem groot te bekijken.',
},
intro: messages.portfolio.intro,
photos: [
photo(
'f41a1916',
'newborn',
{ thumb: f41a1916, full: f41a1916Groot },
portrait,
'Pasgeboren baby in een wit pakje ligt op de onderarm van een ouder en kijkt in de camera',
alts[0].alt,
),
photo(
'f41a1922',
'newborn',
{ thumb: f41a1922, full: f41a1922Groot },
portrait,
'Vader kust zijn pasgeboren baby op het hoofd',
alts[1].alt,
),
photo(
'f41a7883',
'zwangerschap',
{ thumb: f41a7883, full: f41a7883Groot },
portrait,
'Aanstaande vader omarmt zijn zwangere partner op een zandvlakte in de avondzon',
alts[2].alt,
),
photo(
'f41a7176',
'newborn',
{ thumb: f41a7176, full: f41a7176Groot },
portrait,
'Moeder drukt haar gezicht tegen het hoofdje van haar pasgeboren baby',
alts[3].alt,
),
photo(
'f41a8700',
'newborn',
{ thumb: f41a8700, full: f41a8700Groot },
landscape,
'Slapende pasgeboren baby in een bruin-wit gestreept pakje',
alts[4].alt,
),
photo(
'f41a8206',
'zwangerschap',
{ thumb: f41a8206, full: f41a8206Groot },
landscape,
'Zwangere buik in een zwarte jurk, omarmd door twee handen',
alts[5].alt,
),
photo(
'f41a1579',
'gezin',
{ thumb: f41a1579, full: f41a1579Groot },
landscape,
'Grote broer kust zijn pasgeboren broertje of zusje op een wit bed',
alts[6].alt,
),
photo(
'f41a4650',
@@ -114,21 +112,21 @@ const portfolioContent: PortfolioContent = {
thumb: { width: 800, height: 533 },
full: { width: 1600, height: 1067 },
},
'Babyvuistje tussen een gebreide deken en een geruite doek',
alts[7].alt,
),
photo(
'f41a7138',
'gezin',
{ thumb: f41a7138, full: f41a7138Groot },
portrait,
'Jonge ouders kijken samen naar hun slapende pasgeboren baby',
alts[8].alt,
),
photo(
'f41a7284',
'newborn',
{ thumb: f41a7284, full: f41a7284Groot },
portrait,
'Blote babyvoetjes in een gestreept gebreid broekje',
alts[9].alt,
),
],
};
+10 -8
View File
@@ -1,3 +1,4 @@
import { messages } from '../i18n/index.ts';
import type { Testimonial } from './types';
// Images
@@ -6,15 +7,16 @@ import newbornshoot from '../assets/home/review-newbornshoot.jpg';
// Reviews from clients until the CMS API exists (live site, October 2026),
// in display order
const [majellaMark, demiKevin] = messages.testimonials.reviews;
const testimonials: Testimonial[] = [
{
id: 'majella-mark',
shoot: 'Trouwshoot',
quote: "Super mooie foto's door Andrea gemaakt op onze trouwdag en pré-wedding shoot. Wij zijn er super blij mee! Een aantal hebben wij laten afdrukken en hangen nu ingelijst aan de muur, dus wij genieten er nog elke dag van.",
author: 'Majella & Mark',
shoot: majellaMark.shoot,
quote: majellaMark.quote,
author: majellaMark.author,
image: {
src: trouwshoot,
alt: 'Bruidegom schuift de trouwring om de vinger van de bruid',
alt: majellaMark.imageAlt,
width: 880,
height: 1100,
},
@@ -23,12 +25,12 @@ const testimonials: Testimonial[] = [
},
{
id: 'demi-kevin',
shoot: 'Newbornshoot',
quote: "Heel tevreden met de newbornshoot. De foto's zijn prachtig geworden en we zijn erg blij met het resultaat. Zeker aan te raden!",
author: 'Demi & Kevin',
shoot: demiKevin.shoot,
quote: demiKevin.quote,
author: demiKevin.author,
image: {
src: newbornshoot,
alt: 'Vuistje van een pasgeboren baby tussen gebreide dekens',
alt: demiKevin.imageAlt,
width: 880,
height: 1100,
},