Adds the portfolio page
The ten live photos in a filterable masonry grid with an accessible lightbox, filters per shoot type kept in the URL (?shoot=), the shared Instagram block, and an indexed page with image gallery structured data and its own preview image. Soorten fotoshoots now only links to the portfolio for shoot types that have photos there. The filter bar stays on one row, so the web font loading no longer shifts the photos below it, and no photo loads before the page has: the grid fades in, so loading its photos early only delayed the fonts and the intro text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,136 @@
|
||||
import type { PortfolioContent, PortfolioPhoto, ShootTypeId } from './types';
|
||||
|
||||
// Images: the live portfolio photos, 800 px wide for the grid and 1600 px
|
||||
// on the long side for the lightbox, never cropped
|
||||
import f41a1916 from '../assets/portfolio/f41a1916.jpg';
|
||||
import f41a1916Groot from '../assets/portfolio/f41a1916-groot.jpg';
|
||||
import f41a1922 from '../assets/portfolio/f41a1922.jpg';
|
||||
import f41a1922Groot from '../assets/portfolio/f41a1922-groot.jpg';
|
||||
import f41a7883 from '../assets/portfolio/f41a7883.jpg';
|
||||
import f41a7883Groot from '../assets/portfolio/f41a7883-groot.jpg';
|
||||
import f41a7176 from '../assets/portfolio/f41a7176.jpg';
|
||||
import f41a7176Groot from '../assets/portfolio/f41a7176-groot.jpg';
|
||||
import f41a8700 from '../assets/portfolio/f41a8700.jpg';
|
||||
import f41a8700Groot from '../assets/portfolio/f41a8700-groot.jpg';
|
||||
import f41a8206 from '../assets/portfolio/f41a8206.jpg';
|
||||
import f41a8206Groot from '../assets/portfolio/f41a8206-groot.jpg';
|
||||
import f41a1579 from '../assets/portfolio/f41a1579.jpg';
|
||||
import f41a1579Groot from '../assets/portfolio/f41a1579-groot.jpg';
|
||||
import f41a4650 from '../assets/portfolio/f41a4650.jpg';
|
||||
import f41a4650Groot from '../assets/portfolio/f41a4650-groot.jpg';
|
||||
import f41a7138 from '../assets/portfolio/f41a7138.jpg';
|
||||
import f41a7138Groot from '../assets/portfolio/f41a7138-groot.jpg';
|
||||
import f41a7284 from '../assets/portfolio/f41a7284.jpg';
|
||||
import f41a7284Groot from '../assets/portfolio/f41a7284-groot.jpg';
|
||||
|
||||
const portrait = {
|
||||
thumb: { width: 800, height: 1200 },
|
||||
full: { width: 1067, height: 1600 },
|
||||
};
|
||||
const landscape = {
|
||||
thumb: { width: 800, height: 534 },
|
||||
full: { width: 1600, height: 1067 },
|
||||
};
|
||||
|
||||
function photo(
|
||||
id: string,
|
||||
shootType: ShootTypeId,
|
||||
files: { thumb: string; full: string },
|
||||
size: typeof portrait,
|
||||
alt: string,
|
||||
): PortfolioPhoto {
|
||||
return {
|
||||
id,
|
||||
shootType,
|
||||
thumb: { src: files.thumb, alt, ...size.thumb },
|
||||
full: { src: files.full, ...size.full },
|
||||
};
|
||||
}
|
||||
|
||||
// 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 portfolioContent: PortfolioContent = {
|
||||
intro: {
|
||||
eyebrow: 'Werk',
|
||||
title: 'Portfolio',
|
||||
text: 'Een selectie uit mijn werk. Klik of tik op een foto om hem groot te bekijken.',
|
||||
},
|
||||
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',
|
||||
),
|
||||
photo(
|
||||
'f41a1922',
|
||||
'newborn',
|
||||
{ thumb: f41a1922, full: f41a1922Groot },
|
||||
portrait,
|
||||
'Vader kust zijn pasgeboren baby op het hoofd',
|
||||
),
|
||||
photo(
|
||||
'f41a7883',
|
||||
'zwangerschap',
|
||||
{ thumb: f41a7883, full: f41a7883Groot },
|
||||
portrait,
|
||||
'Aanstaande vader omarmt zijn zwangere partner op een zandvlakte in de avondzon',
|
||||
),
|
||||
photo(
|
||||
'f41a7176',
|
||||
'newborn',
|
||||
{ thumb: f41a7176, full: f41a7176Groot },
|
||||
portrait,
|
||||
'Moeder drukt haar gezicht tegen het hoofdje van haar pasgeboren baby',
|
||||
),
|
||||
photo(
|
||||
'f41a8700',
|
||||
'newborn',
|
||||
{ thumb: f41a8700, full: f41a8700Groot },
|
||||
landscape,
|
||||
'Slapende pasgeboren baby in een bruin-wit gestreept pakje',
|
||||
),
|
||||
photo(
|
||||
'f41a8206',
|
||||
'zwangerschap',
|
||||
{ thumb: f41a8206, full: f41a8206Groot },
|
||||
landscape,
|
||||
'Zwangere buik in een zwarte jurk, omarmd door twee handen',
|
||||
),
|
||||
photo(
|
||||
'f41a1579',
|
||||
'gezin',
|
||||
{ thumb: f41a1579, full: f41a1579Groot },
|
||||
landscape,
|
||||
'Grote broer kust zijn pasgeboren broertje of zusje op een wit bed',
|
||||
),
|
||||
photo(
|
||||
'f41a4650',
|
||||
'newborn',
|
||||
{ thumb: f41a4650, full: f41a4650Groot },
|
||||
{
|
||||
thumb: { width: 800, height: 533 },
|
||||
full: { width: 1600, height: 1067 },
|
||||
},
|
||||
'Babyvuistje tussen een gebreide deken en een geruite doek',
|
||||
),
|
||||
photo(
|
||||
'f41a7138',
|
||||
'gezin',
|
||||
{ thumb: f41a7138, full: f41a7138Groot },
|
||||
portrait,
|
||||
'Jonge ouders kijken samen naar hun slapende pasgeboren baby',
|
||||
),
|
||||
photo(
|
||||
'f41a7284',
|
||||
'newborn',
|
||||
{ thumb: f41a7284, full: f41a7284Groot },
|
||||
portrait,
|
||||
'Blote babyvoetjes in een gestreept gebreid broekje',
|
||||
),
|
||||
],
|
||||
};
|
||||
|
||||
export default portfolioContent;
|
||||
@@ -72,6 +72,21 @@ export interface FilterOption {
|
||||
label: string;
|
||||
}
|
||||
|
||||
// One photo of the portfolio: which kind of shoot it is from (filters and
|
||||
// lightbox caption) and the photo in two sizes, grid and lightbox
|
||||
export interface PortfolioPhoto {
|
||||
id: string;
|
||||
shootType: ShootTypeId;
|
||||
thumb: ContentImage;
|
||||
full: ImageSource;
|
||||
}
|
||||
|
||||
// The portfolio page until the CMS API exists (/api/portfolio)
|
||||
export interface PortfolioContent {
|
||||
intro: { eyebrow: string; title: string; text: string };
|
||||
photos: PortfolioPhoto[];
|
||||
}
|
||||
|
||||
// A priced shoot offer. id is a stable slug: it goes into ?pakket= and is
|
||||
// the shoot value the contact form sends.
|
||||
export interface PricingPackage {
|
||||
|
||||
Reference in New Issue
Block a user