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:
@@ -1,4 +1,5 @@
|
|||||||
import { Box, chakra, Container, Link, VisuallyHidden } from '@chakra-ui/react';
|
import { Box, chakra, Container, Link, VisuallyHidden } from '@chakra-ui/react';
|
||||||
|
import { t } from '@/i18n';
|
||||||
import DeferredImage from '@/components/DeferredImage/DeferredImage';
|
import DeferredImage from '@/components/DeferredImage/DeferredImage';
|
||||||
import PageSection from '@/components/PageSection/PageSection';
|
import PageSection from '@/components/PageSection/PageSection';
|
||||||
import Reveal from '@/components/Reveal/Reveal';
|
import Reveal from '@/components/Reveal/Reveal';
|
||||||
@@ -46,7 +47,7 @@ export default function InstagramGrid({
|
|||||||
out of the announced name */}
|
out of the announced name */}
|
||||||
{content.handle}{' '}
|
{content.handle}{' '}
|
||||||
<VisuallyHidden>
|
<VisuallyHidden>
|
||||||
(opent in nieuw tabblad)
|
{t('common.newTab.short')}
|
||||||
</VisuallyHidden>
|
</VisuallyHidden>
|
||||||
</Link>
|
</Link>
|
||||||
}
|
}
|
||||||
@@ -106,7 +107,7 @@ export default function InstagramGrid({
|
|||||||
{/* The photo's alt names the link; this says
|
{/* The photo's alt names the link; this says
|
||||||
where it goes */}{' '}
|
where it goes */}{' '}
|
||||||
<VisuallyHidden>
|
<VisuallyHidden>
|
||||||
(Instagram, opent in nieuw tabblad)
|
{t('common.newTab.instagram')}
|
||||||
</VisuallyHidden>
|
</VisuallyHidden>
|
||||||
</chakra.a>
|
</chakra.a>
|
||||||
</chakra.li>
|
</chakra.li>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import {
|
|||||||
VisuallyHidden,
|
VisuallyHidden,
|
||||||
type ImageProps,
|
type ImageProps,
|
||||||
} from '@chakra-ui/react';
|
} from '@chakra-ui/react';
|
||||||
|
import { t } from '@/i18n';
|
||||||
import DeferredImage from '@/components/DeferredImage/DeferredImage';
|
import DeferredImage from '@/components/DeferredImage/DeferredImage';
|
||||||
import Reveal from '@/components/Reveal/Reveal';
|
import Reveal from '@/components/Reveal/Reveal';
|
||||||
import type { GalleryItem } from '@/content/types';
|
import type { GalleryItem } from '@/content/types';
|
||||||
@@ -185,7 +186,7 @@ export default function PortfolioGrid({
|
|||||||
{/* The alt names the photo; this says what
|
{/* The alt names the photo; this says what
|
||||||
the link does */}{' '}
|
the link does */}{' '}
|
||||||
<VisuallyHidden>
|
<VisuallyHidden>
|
||||||
(groot bekijken)
|
{t('portfolio.gallery.viewLarge')}
|
||||||
</VisuallyHidden>
|
</VisuallyHidden>
|
||||||
</chakra.a>
|
</chakra.a>
|
||||||
</chakra.li>
|
</chakra.li>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import {
|
|||||||
import { Icon } from '@iconify/react/offline';
|
import { Icon } from '@iconify/react/offline';
|
||||||
import leftOutlined from '@iconify-icons/ant-design/left-outlined';
|
import leftOutlined from '@iconify-icons/ant-design/left-outlined';
|
||||||
import rightOutlined from '@iconify-icons/ant-design/right-outlined';
|
import rightOutlined from '@iconify-icons/ant-design/right-outlined';
|
||||||
|
import { t } from '@/i18n';
|
||||||
import type { Testimonial } from '@/content/types';
|
import type { Testimonial } from '@/content/types';
|
||||||
import { slideCounter } from '@/lib/slideCounter';
|
import { slideCounter } from '@/lib/slideCounter';
|
||||||
import { slideLabel } from '@/lib/slideLabel';
|
import { slideLabel } from '@/lib/slideLabel';
|
||||||
@@ -50,8 +51,8 @@ export default function TestimonialCarousel({
|
|||||||
return (
|
return (
|
||||||
<Carousel.RootProvider
|
<Carousel.RootProvider
|
||||||
value={carousel}
|
value={carousel}
|
||||||
aria-label="Reviews"
|
aria-label={t('testimonials.carouselLabel')}
|
||||||
aria-roledescription="carrousel"
|
aria-roledescription={t('testimonials.carouselRoleDescription')}
|
||||||
gap={0}
|
gap={0}
|
||||||
// The control bar lies over the bottom right of the slides
|
// The control bar lies over the bottom right of the slides
|
||||||
position="relative"
|
position="relative"
|
||||||
@@ -95,7 +96,7 @@ export default function TestimonialCarousel({
|
|||||||
>
|
>
|
||||||
<chakra.button
|
<chakra.button
|
||||||
type="button"
|
type="button"
|
||||||
aria-label="Vorige review"
|
aria-label={t('testimonials.previous')}
|
||||||
data-testid="testimonials-prev"
|
data-testid="testimonials-prev"
|
||||||
css={control({ kind: 'arrow' })}
|
css={control({ kind: 'arrow' })}
|
||||||
onClick={previous}
|
onClick={previous}
|
||||||
@@ -118,7 +119,7 @@ export default function TestimonialCarousel({
|
|||||||
</Text>
|
</Text>
|
||||||
<chakra.button
|
<chakra.button
|
||||||
type="button"
|
type="button"
|
||||||
aria-label="Volgende review"
|
aria-label={t('testimonials.next')}
|
||||||
data-testid="testimonials-next"
|
data-testid="testimonials-next"
|
||||||
css={control({ kind: 'arrow' })}
|
css={control({ kind: 'arrow' })}
|
||||||
onClick={next}
|
onClick={next}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { lazy, Suspense, useReducer, useRef, useState } from 'react';
|
import { lazy, Suspense, useReducer, useRef, useState } from 'react';
|
||||||
import { Box, chakra, Heading, VisuallyHidden } from '@chakra-ui/react';
|
import { Box, chakra, Heading, VisuallyHidden } from '@chakra-ui/react';
|
||||||
|
import { t } from '@/i18n';
|
||||||
import FilterBar from '@/components/FilterBar/FilterBar';
|
import FilterBar from '@/components/FilterBar/FilterBar';
|
||||||
import PageSection from '@/components/PageSection/PageSection';
|
import PageSection from '@/components/PageSection/PageSection';
|
||||||
import PortfolioGrid from '@/components/PortfolioGrid/PortfolioGrid';
|
import PortfolioGrid from '@/components/PortfolioGrid/PortfolioGrid';
|
||||||
@@ -88,15 +89,18 @@ export default function PortfolioGallery({
|
|||||||
names the section */}
|
names the section */}
|
||||||
<VisuallyHidden>
|
<VisuallyHidden>
|
||||||
<Heading as="h2" id={TITLE_ID}>
|
<Heading as="h2" id={TITLE_ID}>
|
||||||
Foto's
|
{t('portfolio.gallery.heading')}
|
||||||
</Heading>
|
</Heading>
|
||||||
</VisuallyHidden>
|
</VisuallyHidden>
|
||||||
<Box mb={{ base: 6, md: 10 }}>
|
<Box mb={{ base: 6, md: 10 }}>
|
||||||
<FilterBar
|
<FilterBar
|
||||||
options={filterOptions(available, 'Alles')}
|
options={filterOptions(
|
||||||
|
available,
|
||||||
|
t('portfolio.gallery.filterAll'),
|
||||||
|
)}
|
||||||
value={active ?? ALL_FILTER}
|
value={active ?? ALL_FILTER}
|
||||||
onChange={chooseFilter}
|
onChange={chooseFilter}
|
||||||
label="Filter op soort shoot"
|
label={t('portfolio.gallery.filterLabel')}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
<chakra.p srOnly aria-live="polite" data-testid="portfolio-count">
|
<chakra.p srOnly aria-live="polite" data-testid="portfolio-count">
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { messages } from '../i18n/index.ts';
|
||||||
import { introPhotos } from './homeContent';
|
import { introPhotos } from './homeContent';
|
||||||
import testimonials from './testimonials';
|
import testimonials from './testimonials';
|
||||||
import type { InstagramContent } from './types';
|
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;
|
// keeps one description and the homepage downloads nothing extra for them;
|
||||||
// Andrea can swap them in the meantime.
|
// Andrea can swap them in the meantime.
|
||||||
const instagramContent: InstagramContent = {
|
const instagramContent: InstagramContent = {
|
||||||
title: 'Instagram',
|
title: messages.instagram.title,
|
||||||
handle: '@andreaslopfotografie',
|
handle: messages.instagram.handle,
|
||||||
photos: [
|
photos: [
|
||||||
...introPhotos,
|
...introPhotos,
|
||||||
...testimonials.map((testimonial) => testimonial.image),
|
...testimonials.map((testimonial) => testimonial.image),
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { messages } from '../i18n/index.ts';
|
||||||
import type { PortfolioContent, PortfolioPhoto, ShootTypeId } from './types';
|
import type { PortfolioContent, PortfolioPhoto, ShootTypeId } from './types';
|
||||||
|
|
||||||
// Images: the live portfolio photos, 800 px wide for the grid and 1600 px
|
// 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
|
// 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
|
// their order (2026-10-24), with the shoot type and description approved
|
||||||
// in the functional design (Andrea may still reword the descriptions)
|
// in the functional design (Andrea may still reword the descriptions)
|
||||||
|
const alts = messages.portfolio.photos;
|
||||||
const portfolioContent: PortfolioContent = {
|
const portfolioContent: PortfolioContent = {
|
||||||
intro: {
|
intro: messages.portfolio.intro,
|
||||||
eyebrow: 'Werk',
|
|
||||||
title: 'Portfolio',
|
|
||||||
text: 'Een selectie uit mijn werk. Klik of tik op een foto om hem groot te bekijken.',
|
|
||||||
},
|
|
||||||
photos: [
|
photos: [
|
||||||
photo(
|
photo(
|
||||||
'f41a1916',
|
'f41a1916',
|
||||||
'newborn',
|
'newborn',
|
||||||
{ thumb: f41a1916, full: f41a1916Groot },
|
{ thumb: f41a1916, full: f41a1916Groot },
|
||||||
portrait,
|
portrait,
|
||||||
'Pasgeboren baby in een wit pakje ligt op de onderarm van een ouder en kijkt in de camera',
|
alts[0].alt,
|
||||||
),
|
),
|
||||||
photo(
|
photo(
|
||||||
'f41a1922',
|
'f41a1922',
|
||||||
'newborn',
|
'newborn',
|
||||||
{ thumb: f41a1922, full: f41a1922Groot },
|
{ thumb: f41a1922, full: f41a1922Groot },
|
||||||
portrait,
|
portrait,
|
||||||
'Vader kust zijn pasgeboren baby op het hoofd',
|
alts[1].alt,
|
||||||
),
|
),
|
||||||
photo(
|
photo(
|
||||||
'f41a7883',
|
'f41a7883',
|
||||||
'zwangerschap',
|
'zwangerschap',
|
||||||
{ thumb: f41a7883, full: f41a7883Groot },
|
{ thumb: f41a7883, full: f41a7883Groot },
|
||||||
portrait,
|
portrait,
|
||||||
'Aanstaande vader omarmt zijn zwangere partner op een zandvlakte in de avondzon',
|
alts[2].alt,
|
||||||
),
|
),
|
||||||
photo(
|
photo(
|
||||||
'f41a7176',
|
'f41a7176',
|
||||||
'newborn',
|
'newborn',
|
||||||
{ thumb: f41a7176, full: f41a7176Groot },
|
{ thumb: f41a7176, full: f41a7176Groot },
|
||||||
portrait,
|
portrait,
|
||||||
'Moeder drukt haar gezicht tegen het hoofdje van haar pasgeboren baby',
|
alts[3].alt,
|
||||||
),
|
),
|
||||||
photo(
|
photo(
|
||||||
'f41a8700',
|
'f41a8700',
|
||||||
'newborn',
|
'newborn',
|
||||||
{ thumb: f41a8700, full: f41a8700Groot },
|
{ thumb: f41a8700, full: f41a8700Groot },
|
||||||
landscape,
|
landscape,
|
||||||
'Slapende pasgeboren baby in een bruin-wit gestreept pakje',
|
alts[4].alt,
|
||||||
),
|
),
|
||||||
photo(
|
photo(
|
||||||
'f41a8206',
|
'f41a8206',
|
||||||
'zwangerschap',
|
'zwangerschap',
|
||||||
{ thumb: f41a8206, full: f41a8206Groot },
|
{ thumb: f41a8206, full: f41a8206Groot },
|
||||||
landscape,
|
landscape,
|
||||||
'Zwangere buik in een zwarte jurk, omarmd door twee handen',
|
alts[5].alt,
|
||||||
),
|
),
|
||||||
photo(
|
photo(
|
||||||
'f41a1579',
|
'f41a1579',
|
||||||
'gezin',
|
'gezin',
|
||||||
{ thumb: f41a1579, full: f41a1579Groot },
|
{ thumb: f41a1579, full: f41a1579Groot },
|
||||||
landscape,
|
landscape,
|
||||||
'Grote broer kust zijn pasgeboren broertje of zusje op een wit bed',
|
alts[6].alt,
|
||||||
),
|
),
|
||||||
photo(
|
photo(
|
||||||
'f41a4650',
|
'f41a4650',
|
||||||
@@ -114,21 +112,21 @@ const portfolioContent: PortfolioContent = {
|
|||||||
thumb: { width: 800, height: 533 },
|
thumb: { width: 800, height: 533 },
|
||||||
full: { width: 1600, height: 1067 },
|
full: { width: 1600, height: 1067 },
|
||||||
},
|
},
|
||||||
'Babyvuistje tussen een gebreide deken en een geruite doek',
|
alts[7].alt,
|
||||||
),
|
),
|
||||||
photo(
|
photo(
|
||||||
'f41a7138',
|
'f41a7138',
|
||||||
'gezin',
|
'gezin',
|
||||||
{ thumb: f41a7138, full: f41a7138Groot },
|
{ thumb: f41a7138, full: f41a7138Groot },
|
||||||
portrait,
|
portrait,
|
||||||
'Jonge ouders kijken samen naar hun slapende pasgeboren baby',
|
alts[8].alt,
|
||||||
),
|
),
|
||||||
photo(
|
photo(
|
||||||
'f41a7284',
|
'f41a7284',
|
||||||
'newborn',
|
'newborn',
|
||||||
{ thumb: f41a7284, full: f41a7284Groot },
|
{ thumb: f41a7284, full: f41a7284Groot },
|
||||||
portrait,
|
portrait,
|
||||||
'Blote babyvoetjes in een gestreept gebreid broekje',
|
alts[9].alt,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { messages } from '../i18n/index.ts';
|
||||||
import type { Testimonial } from './types';
|
import type { Testimonial } from './types';
|
||||||
|
|
||||||
// Images
|
// 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),
|
// Reviews from clients until the CMS API exists (live site, October 2026),
|
||||||
// in display order
|
// in display order
|
||||||
|
const [majellaMark, demiKevin] = messages.testimonials.reviews;
|
||||||
const testimonials: Testimonial[] = [
|
const testimonials: Testimonial[] = [
|
||||||
{
|
{
|
||||||
id: 'majella-mark',
|
id: 'majella-mark',
|
||||||
shoot: 'Trouwshoot',
|
shoot: majellaMark.shoot,
|
||||||
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.",
|
quote: majellaMark.quote,
|
||||||
author: 'Majella & Mark',
|
author: majellaMark.author,
|
||||||
image: {
|
image: {
|
||||||
src: trouwshoot,
|
src: trouwshoot,
|
||||||
alt: 'Bruidegom schuift de trouwring om de vinger van de bruid',
|
alt: majellaMark.imageAlt,
|
||||||
width: 880,
|
width: 880,
|
||||||
height: 1100,
|
height: 1100,
|
||||||
},
|
},
|
||||||
@@ -23,12 +25,12 @@ const testimonials: Testimonial[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'demi-kevin',
|
id: 'demi-kevin',
|
||||||
shoot: 'Newbornshoot',
|
shoot: demiKevin.shoot,
|
||||||
quote: "Heel tevreden met de newbornshoot. De foto's zijn prachtig geworden en we zijn erg blij met het resultaat. Zeker aan te raden!",
|
quote: demiKevin.quote,
|
||||||
author: 'Demi & Kevin',
|
author: demiKevin.author,
|
||||||
image: {
|
image: {
|
||||||
src: newbornshoot,
|
src: newbornshoot,
|
||||||
alt: 'Vuistje van een pasgeboren baby tussen gebreide dekens',
|
alt: demiKevin.imageAlt,
|
||||||
width: 880,
|
width: 880,
|
||||||
height: 1100,
|
height: 1100,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1 +1,4 @@
|
|||||||
{}
|
{
|
||||||
|
"title": "Instagram",
|
||||||
|
"handle": "@andreaslopfotografie"
|
||||||
|
}
|
||||||
|
|||||||
@@ -1 +1,49 @@
|
|||||||
{}
|
{
|
||||||
|
"intro": {
|
||||||
|
"eyebrow": "Werk",
|
||||||
|
"title": "Portfolio",
|
||||||
|
"text": "Een selectie uit mijn werk. Klik of tik op een foto om hem groot te bekijken."
|
||||||
|
},
|
||||||
|
"gallery": {
|
||||||
|
"heading": "Foto's",
|
||||||
|
"filterAll": "Alles",
|
||||||
|
"filterLabel": "Filter op soort shoot",
|
||||||
|
"viewLarge": "(groot bekijken)",
|
||||||
|
"count": {
|
||||||
|
"one": "{count} foto",
|
||||||
|
"other": "{count} foto's"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"photos": [
|
||||||
|
{
|
||||||
|
"alt": "Pasgeboren baby in een wit pakje ligt op de onderarm van een ouder en kijkt in de camera"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"alt": "Vader kust zijn pasgeboren baby op het hoofd"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"alt": "Aanstaande vader omarmt zijn zwangere partner op een zandvlakte in de avondzon"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"alt": "Moeder drukt haar gezicht tegen het hoofdje van haar pasgeboren baby"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"alt": "Slapende pasgeboren baby in een bruin-wit gestreept pakje"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"alt": "Zwangere buik in een zwarte jurk, omarmd door twee handen"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"alt": "Grote broer kust zijn pasgeboren broertje of zusje op een wit bed"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"alt": "Babyvuistje tussen een gebreide deken en een geruite doek"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"alt": "Jonge ouders kijken samen naar hun slapende pasgeboren baby"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"alt": "Blote babyvoetjes in een gestreept gebreid broekje"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||
@@ -1 +1,60 @@
|
|||||||
{}
|
{
|
||||||
|
"site": {
|
||||||
|
"defaultImageAlt": "Takjes paarse heide op een arm met een bloementattoo"
|
||||||
|
},
|
||||||
|
"pages": {
|
||||||
|
"home": {
|
||||||
|
"title": "Lifestyle fotograaf in Huizen",
|
||||||
|
"description": "Lifestyle fotograaf in Huizen en omgeving. Ik leg je mooiste momenten vast in spontane, kleurrijke foto's. Voor loveshoots, gezins- en zwangerschapsshoots."
|
||||||
|
},
|
||||||
|
"over-mij": {
|
||||||
|
"title": "Over mij – fotograaf in Huizen",
|
||||||
|
"description": "Hoi! Ik ben Andrea, lifestyle fotograaf uit Huizen. Ik maak warme, spontane foto's die een verhaal vertellen: newborn-, zwangerschaps- en gezinsshoots.",
|
||||||
|
"ogImageAlt": "Andrea Slop met haar camera in het bos"
|
||||||
|
},
|
||||||
|
"portfolio": {
|
||||||
|
"title": "Portfolio",
|
||||||
|
"description": "Bekijk het portfolio van Andrea Slop Fotografie: spontane lifestylefoto's van gezinnen, stellen, zwangerschappen en newborns in Huizen en omgeving.",
|
||||||
|
"ogImageAlt": "Grote broer kust zijn pasgeboren broertje of zusje op een wit bed"
|
||||||
|
},
|
||||||
|
"soorten-fotoshoots": {
|
||||||
|
"title": "Soorten fotoshoots",
|
||||||
|
"description": "Newborn-, zwangerschaps-, gezins-, love- en portretshoots: ontdek welke fotoshoots Andrea Slop Fotografie aanbiedt in Huizen, het Gooi en omgeving.",
|
||||||
|
"ogImageAlt": "Een pasgeboren baby slaapt in een gestreept pakje"
|
||||||
|
},
|
||||||
|
"newborn": {
|
||||||
|
"title": "Newbornshoot in Huizen",
|
||||||
|
"description": "Newbornshoot in Huizen en omgeving, bij jou thuis in het rustige ritme van je baby. Warme, spontane foto's van Andrea Slop Fotografie.",
|
||||||
|
"ogImageAlt": "Babyvuistje tussen een gebreide deken en een geruite doek"
|
||||||
|
},
|
||||||
|
"zwangerschap": {
|
||||||
|
"title": "Zwangerschapsshoot in Huizen",
|
||||||
|
"description": "Zwangerschapsshoot in Huizen en omgeving: leg deze bijzondere periode vast in spontane foto's. Ontdek de mogelijkheden van Andrea Slop Fotografie.",
|
||||||
|
"ogImageAlt": "Zwangere buik in een zwarte jurk, omarmd door twee handen"
|
||||||
|
},
|
||||||
|
"gezin": {
|
||||||
|
"title": "Gezinsshoot in Huizen",
|
||||||
|
"description": "Gezinsshoot in Huizen en omgeving: echte momenten die laten zien hoe jullie nu samen zijn. Ontdek de mogelijkheden van Andrea Slop Fotografie.",
|
||||||
|
"ogImageAlt": "Jonge ouders kijken samen naar hun slapende pasgeboren baby"
|
||||||
|
},
|
||||||
|
"loveshoot": {
|
||||||
|
"title": "Loveshoot in Huizen",
|
||||||
|
"description": "Loveshoot in Huizen en omgeving: leg jullie liefde vast in spontane, kleurrijke foto's. Ontdek de mogelijkheden van Andrea Slop Fotografie.",
|
||||||
|
"ogImageAlt": "Een stel ligt in de zon op een plaid in het gras, met de hoofden tegen elkaar"
|
||||||
|
},
|
||||||
|
"portret": {
|
||||||
|
"title": "Portretshoot in Huizen",
|
||||||
|
"description": "Portretshoot in Huizen en omgeving, in de natuur of zakelijk. Spontane portretfoto's van Andrea Slop Fotografie.",
|
||||||
|
"ogImageAlt": "Een vrouw met lang bruin haar in een witte blouse kijkt glimlachend omlaag, met bomen op de achtergrond"
|
||||||
|
},
|
||||||
|
"contact": {
|
||||||
|
"title": "Contact – fotoshoot boeken in Huizen",
|
||||||
|
"description": "Neem contact op voor een newborn-, zwangerschaps- of gezinsshoot in Huizen, het Gooi en omgeving. Ik denk graag met je mee en reageer binnen 1-2 werkdagen.",
|
||||||
|
"ogImageAlt": "Andrea Slop met haar camera op een bospad"
|
||||||
|
},
|
||||||
|
"privacyverklaring": {
|
||||||
|
"title": "Privacyverklaring",
|
||||||
|
"description": "Lees hoe Andrea Slop Fotografie omgaat met je persoonsgegevens en met de foto's die tijdens een fotoshoot gemaakt worden."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1 +1,22 @@
|
|||||||
{}
|
{
|
||||||
|
"carouselLabel": "Reviews",
|
||||||
|
"carouselRoleDescription": "carrousel",
|
||||||
|
"previous": "Vorige review",
|
||||||
|
"next": "Volgende review",
|
||||||
|
"slideLabel": "Review {number} van {count}",
|
||||||
|
"counter": "{current} / {total}",
|
||||||
|
"reviews": [
|
||||||
|
{
|
||||||
|
"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",
|
||||||
|
"imageAlt": "Bruidegom schuift de trouwring om de vinger van de bruid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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",
|
||||||
|
"imageAlt": "Vuistje van een pasgeboren baby tussen gebreide dekens"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { tPlural } from '../i18n/index.ts';
|
||||||
import type {
|
import type {
|
||||||
FilterOption,
|
FilterOption,
|
||||||
GalleryItem,
|
GalleryItem,
|
||||||
@@ -82,5 +83,5 @@ export function toGalleryItems(
|
|||||||
|
|
||||||
// "1 foto" or "6 foto's", for the announcement after a filter change
|
// "1 foto" or "6 foto's", for the announcement after a filter change
|
||||||
export function photoCountLabel(count: number): string {
|
export function photoCountLabel(count: number): string {
|
||||||
return count === 1 ? '1 foto' : `${count} foto's`;
|
return tPlural('portfolio.gallery.count', count);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,11 +3,13 @@
|
|||||||
// is made safe instead of thrown at: a total below 1 or not a finite number
|
// is made safe instead of thrown at: a total below 1 or not a finite number
|
||||||
// counts as 1, and an index outside the range moves to the nearest end, so
|
// counts as 1, and an index outside the range moves to the nearest end, so
|
||||||
// the result always reads X / Y with 1 <= X <= Y (FR-TR-12).
|
// the result always reads X / Y with 1 <= X <= Y (FR-TR-12).
|
||||||
|
import { t } from '../i18n/index.ts';
|
||||||
|
|
||||||
export function slideCounter(index: number, count: number): string {
|
export function slideCounter(index: number, count: number): string {
|
||||||
const total = Number.isFinite(count)
|
const total = Number.isFinite(count)
|
||||||
? Math.min(Math.max(1, Math.trunc(count)), Number.MAX_SAFE_INTEGER)
|
? Math.min(Math.max(1, Math.trunc(count)), Number.MAX_SAFE_INTEGER)
|
||||||
: 1;
|
: 1;
|
||||||
const current = Number.isFinite(index) ? Math.trunc(index) : 0;
|
const current = Number.isFinite(index) ? Math.trunc(index) : 0;
|
||||||
const position = Math.min(Math.max(current, 0), total - 1);
|
const position = Math.min(Math.max(current, 0), total - 1);
|
||||||
return `${position + 1} / ${total}`;
|
return t('testimonials.counter', { current: position + 1, total });
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
// Name of a review in the carousel and what is announced when it changes,
|
// Name of a review in the carousel and what is announced when it changes,
|
||||||
// e.g. "Review 2 van 3". index is zero-based (BR-REV-08, BR-REV-09).
|
// e.g. "Review 2 van 3". index is zero-based (BR-REV-08, BR-REV-09).
|
||||||
|
import { t } from '../i18n/index.ts';
|
||||||
|
|
||||||
export function slideLabel(index: number, count: number): string {
|
export function slideLabel(index: number, count: number): string {
|
||||||
return `Review ${index + 1} van ${count}`;
|
return t('testimonials.slideLabel', { number: index + 1, count });
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-2
@@ -11,6 +11,7 @@ import type {
|
|||||||
ShootTypeId,
|
ShootTypeId,
|
||||||
SiteContent,
|
SiteContent,
|
||||||
} from './content/types.ts';
|
} from './content/types.ts';
|
||||||
|
import { t } from './i18n/index.ts';
|
||||||
import { knowsAboutList } from './lib/knowsAboutList.ts';
|
import { knowsAboutList } from './lib/knowsAboutList.ts';
|
||||||
import { richTextToPlain } from './lib/richTextToPlain.ts';
|
import { richTextToPlain } from './lib/richTextToPlain.ts';
|
||||||
import { resolveSiteUrl } from './lib/siteUrl.ts';
|
import { resolveSiteUrl } from './lib/siteUrl.ts';
|
||||||
@@ -32,14 +33,14 @@ export let siteUrl = resolveSiteUrl(configuredSiteUrl());
|
|||||||
export function setSiteUrl(url: string): void {
|
export function setSiteUrl(url: string): void {
|
||||||
siteUrl = resolveSiteUrl(url);
|
siteUrl = resolveSiteUrl(url);
|
||||||
}
|
}
|
||||||
export const siteName = 'Andrea Slop Fotografie';
|
export const siteName = t('common.site.name');
|
||||||
|
|
||||||
// Preview-afbeelding voor WhatsApp, Facebook en LinkedIn (public/og-image.jpg)
|
// Preview-afbeelding voor WhatsApp, Facebook en LinkedIn (public/og-image.jpg)
|
||||||
export const defaultOgImage = {
|
export const defaultOgImage = {
|
||||||
path: '/og-image.jpg',
|
path: '/og-image.jpg',
|
||||||
width: 1200,
|
width: 1200,
|
||||||
height: 630,
|
height: 630,
|
||||||
alt: 'Takjes paarse heide op een arm met een bloementattoo',
|
alt: t('seo.site.defaultImageAlt'),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Absolute URL zonder slash aan het eind (behalve de homepage), zonder query
|
// Absolute URL zonder slash aan het eind (behalve de homepage), zonder query
|
||||||
|
|||||||
+32
-42
@@ -1,3 +1,4 @@
|
|||||||
|
import { t } from './i18n/index.ts';
|
||||||
import type { RoutePath } from './navigation.ts';
|
import type { RoutePath } from './navigation.ts';
|
||||||
|
|
||||||
// Het register van alle pagina's: één bron voor de head van elke route en
|
// Het register van alle pagina's: één bron voor de head van elke route en
|
||||||
@@ -20,133 +21,122 @@ export interface SitePage extends PageMeta {
|
|||||||
|
|
||||||
const sitePages: Record<RoutePath, PageMeta> = {
|
const sitePages: Record<RoutePath, PageMeta> = {
|
||||||
'/': {
|
'/': {
|
||||||
title: 'Lifestyle fotograaf in Huizen',
|
title: t('seo.pages.home.title'),
|
||||||
description:
|
description: t('seo.pages.home.description'),
|
||||||
"Lifestyle fotograaf in Huizen en omgeving. Ik leg je mooiste momenten vast in spontane, kleurrijke foto's. Voor loveshoots, gezins- en zwangerschapsshoots.",
|
|
||||||
indexed: true,
|
indexed: true,
|
||||||
},
|
},
|
||||||
'/over-mij': {
|
'/over-mij': {
|
||||||
title: 'Over mij – fotograaf in Huizen',
|
title: t('seo.pages.over-mij.title'),
|
||||||
description:
|
description: t('seo.pages.over-mij.description'),
|
||||||
"Hoi! Ik ben Andrea, lifestyle fotograaf uit Huizen. Ik maak warme, spontane foto's die een verhaal vertellen: newborn-, zwangerschaps- en gezinsshoots.",
|
|
||||||
indexed: true,
|
indexed: true,
|
||||||
ogImage: {
|
ogImage: {
|
||||||
path: '/og-over-mij.jpg',
|
path: '/og-over-mij.jpg',
|
||||||
width: 1200,
|
width: 1200,
|
||||||
height: 630,
|
height: 630,
|
||||||
alt: 'Andrea Slop met haar camera in het bos',
|
alt: t('seo.pages.over-mij.ogImageAlt'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'/portfolio': {
|
'/portfolio': {
|
||||||
title: 'Portfolio',
|
title: t('seo.pages.portfolio.title'),
|
||||||
description:
|
description: t('seo.pages.portfolio.description'),
|
||||||
"Bekijk het portfolio van Andrea Slop Fotografie: spontane lifestylefoto's van gezinnen, stellen, zwangerschappen en newborns in Huizen en omgeving.",
|
|
||||||
indexed: true,
|
indexed: true,
|
||||||
ogImage: {
|
ogImage: {
|
||||||
path: '/og-portfolio.jpg',
|
path: '/og-portfolio.jpg',
|
||||||
width: 1200,
|
width: 1200,
|
||||||
height: 630,
|
height: 630,
|
||||||
alt: 'Grote broer kust zijn pasgeboren broertje of zusje op een wit bed',
|
alt: t('seo.pages.portfolio.ogImageAlt'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'/soorten-fotoshoots': {
|
'/soorten-fotoshoots': {
|
||||||
title: 'Soorten fotoshoots',
|
title: t('seo.pages.soorten-fotoshoots.title'),
|
||||||
description:
|
description: t('seo.pages.soorten-fotoshoots.description'),
|
||||||
'Newborn-, zwangerschaps-, gezins-, love- en portretshoots: ontdek welke fotoshoots Andrea Slop Fotografie aanbiedt in Huizen, het Gooi en omgeving.',
|
|
||||||
indexed: true,
|
indexed: true,
|
||||||
ogImage: {
|
ogImage: {
|
||||||
path: '/og-soorten-fotoshoots.jpg',
|
path: '/og-soorten-fotoshoots.jpg',
|
||||||
width: 1200,
|
width: 1200,
|
||||||
height: 630,
|
height: 630,
|
||||||
alt: 'Een pasgeboren baby slaapt in een gestreept pakje',
|
alt: t('seo.pages.soorten-fotoshoots.ogImageAlt'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'/soorten-fotoshoots/newborn': {
|
'/soorten-fotoshoots/newborn': {
|
||||||
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
||||||
title: 'Newbornshoot in Huizen',
|
title: t('seo.pages.newborn.title'),
|
||||||
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
||||||
description:
|
description: t('seo.pages.newborn.description'),
|
||||||
"Newbornshoot in Huizen en omgeving, bij jou thuis in het rustige ritme van je baby. Warme, spontane foto's van Andrea Slop Fotografie.",
|
|
||||||
indexed: true,
|
indexed: true,
|
||||||
ogImage: {
|
ogImage: {
|
||||||
path: '/og-newborn.jpg',
|
path: '/og-newborn.jpg',
|
||||||
width: 1200,
|
width: 1200,
|
||||||
height: 630,
|
height: 630,
|
||||||
alt: 'Babyvuistje tussen een gebreide deken en een geruite doek',
|
alt: t('seo.pages.newborn.ogImageAlt'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'/soorten-fotoshoots/zwangerschap': {
|
'/soorten-fotoshoots/zwangerschap': {
|
||||||
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
||||||
title: 'Zwangerschapsshoot in Huizen',
|
title: t('seo.pages.zwangerschap.title'),
|
||||||
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
||||||
description:
|
description: t('seo.pages.zwangerschap.description'),
|
||||||
"Zwangerschapsshoot in Huizen en omgeving: leg deze bijzondere periode vast in spontane foto's. Ontdek de mogelijkheden van Andrea Slop Fotografie.",
|
|
||||||
indexed: true,
|
indexed: true,
|
||||||
ogImage: {
|
ogImage: {
|
||||||
path: '/og-zwangerschap.jpg',
|
path: '/og-zwangerschap.jpg',
|
||||||
width: 1200,
|
width: 1200,
|
||||||
height: 630,
|
height: 630,
|
||||||
alt: 'Zwangere buik in een zwarte jurk, omarmd door twee handen',
|
alt: t('seo.pages.zwangerschap.ogImageAlt'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'/soorten-fotoshoots/gezin': {
|
'/soorten-fotoshoots/gezin': {
|
||||||
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
||||||
title: 'Gezinsshoot in Huizen',
|
title: t('seo.pages.gezin.title'),
|
||||||
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
||||||
description:
|
description: t('seo.pages.gezin.description'),
|
||||||
'Gezinsshoot in Huizen en omgeving: echte momenten die laten zien hoe jullie nu samen zijn. Ontdek de mogelijkheden van Andrea Slop Fotografie.',
|
|
||||||
indexed: true,
|
indexed: true,
|
||||||
ogImage: {
|
ogImage: {
|
||||||
path: '/og-gezin.jpg',
|
path: '/og-gezin.jpg',
|
||||||
width: 1200,
|
width: 1200,
|
||||||
height: 630,
|
height: 630,
|
||||||
alt: 'Jonge ouders kijken samen naar hun slapende pasgeboren baby',
|
alt: t('seo.pages.gezin.ogImageAlt'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'/soorten-fotoshoots/loveshoot': {
|
'/soorten-fotoshoots/loveshoot': {
|
||||||
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
||||||
title: 'Loveshoot in Huizen',
|
title: t('seo.pages.loveshoot.title'),
|
||||||
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
||||||
description:
|
description: t('seo.pages.loveshoot.description'),
|
||||||
"Loveshoot in Huizen en omgeving: leg jullie liefde vast in spontane, kleurrijke foto's. Ontdek de mogelijkheden van Andrea Slop Fotografie.",
|
|
||||||
indexed: true,
|
indexed: true,
|
||||||
ogImage: {
|
ogImage: {
|
||||||
path: '/og-loveshoot.jpg',
|
path: '/og-loveshoot.jpg',
|
||||||
width: 1200,
|
width: 1200,
|
||||||
height: 630,
|
height: 630,
|
||||||
alt: 'Een stel ligt in de zon op een plaid in het gras, met de hoofden tegen elkaar',
|
alt: t('seo.pages.loveshoot.ogImageAlt'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'/soorten-fotoshoots/portret': {
|
'/soorten-fotoshoots/portret': {
|
||||||
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
||||||
title: 'Portretshoot in Huizen',
|
title: t('seo.pages.portret.title'),
|
||||||
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
||||||
description:
|
description: t('seo.pages.portret.description'),
|
||||||
"Portretshoot in Huizen en omgeving, in de natuur of zakelijk. Spontane portretfoto's van Andrea Slop Fotografie.",
|
|
||||||
indexed: true,
|
indexed: true,
|
||||||
ogImage: {
|
ogImage: {
|
||||||
path: '/og-portret.jpg',
|
path: '/og-portret.jpg',
|
||||||
width: 1200,
|
width: 1200,
|
||||||
height: 630,
|
height: 630,
|
||||||
alt: 'Een vrouw met lang bruin haar in een witte blouse kijkt glimlachend omlaag, met bomen op de achtergrond',
|
alt: t('seo.pages.portret.ogImageAlt'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'/contact': {
|
'/contact': {
|
||||||
title: 'Contact – fotoshoot boeken in Huizen',
|
title: t('seo.pages.contact.title'),
|
||||||
description:
|
description: t('seo.pages.contact.description'),
|
||||||
'Neem contact op voor een newborn-, zwangerschaps- of gezinsshoot in Huizen, het Gooi en omgeving. Ik denk graag met je mee en reageer binnen 1-2 werkdagen.',
|
|
||||||
indexed: true,
|
indexed: true,
|
||||||
ogImage: {
|
ogImage: {
|
||||||
path: '/og-contact.jpg',
|
path: '/og-contact.jpg',
|
||||||
width: 1200,
|
width: 1200,
|
||||||
height: 630,
|
height: 630,
|
||||||
alt: 'Andrea Slop met haar camera op een bospad',
|
alt: t('seo.pages.contact.ogImageAlt'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'/privacyverklaring': {
|
'/privacyverklaring': {
|
||||||
title: 'Privacyverklaring',
|
title: t('seo.pages.privacyverklaring.title'),
|
||||||
description:
|
description: t('seo.pages.privacyverklaring.description'),
|
||||||
"Lees hoe Andrea Slop Fotografie omgaat met je persoonsgegevens en met de foto's die tijdens een fotoshoot gemaakt worden.",
|
|
||||||
indexed: false,
|
indexed: false,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user