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:
2026-10-27 19:05:13 +01:00
co-authored by Claude Opus 5.5
parent 18bf0311ef
commit 9efa7fc596
58 changed files with 1492 additions and 48 deletions
@@ -10,7 +10,7 @@ const shoot = (id: string) => shootTypes.find((item) => item.id === id)!;
const renderBlock = (
id: string,
{ portfolioLive = false, reverse = false, priority = false } = {},
{ portfolioLink = false, reverse = false, priority = false } = {},
) =>
renderWithProviders(
<ShootBlock
@@ -18,7 +18,7 @@ const renderBlock = (
packages={packages}
reverse={reverse}
priority={priority}
portfolioLive={portfolioLive}
portfolioLink={portfolioLink}
/>,
);
@@ -67,7 +67,7 @@ describe('ShootBlock', () => {
});
it('links to the portfolio filtered on the shoot type when live', async () => {
await renderBlock('portret', { portfolioLive: true });
await renderBlock('portret', { portfolioLink: true });
expect(
screen.getByRole('link', { name: "Bekijk meer portretfoto's" }),
).toHaveAttribute('href', '/portfolio?shoot=portret');
@@ -13,8 +13,8 @@ type ShootBlockProps = {
reverse: boolean;
// The first photo on the page loads straight away
priority: boolean;
// Show "Bekijk meer …foto's" (BR-SF-04)
portfolioLive: boolean;
// Show "Bekijk meer …foto's" (BR-SF-04, BR-SL-01)
portfolioLink: boolean;
};
// Links in the text column: room around them for a 44px touch target
@@ -28,7 +28,7 @@ export default function ShootBlock({
packages,
reverse,
priority,
portfolioLive,
portfolioLink,
}: ShootBlockProps) {
const titleId = `shoot-${shoot.id}-title`;
@@ -74,7 +74,7 @@ export default function ShootBlock({
Stuur een berichtje
</RouterLink>
</Link>
{portfolioLive && (
{portfolioLink && (
<Link variant="underline" asChild {...linkStyle}>
<RouterLink
{...shootPortfolioLink(shoot)}
@@ -12,7 +12,7 @@ const renderList = () =>
<ShootList
shoots={shootTypes}
packages={packages}
portfolioLive={false}
portfolioShoots={[]}
/>,
);
@@ -1,12 +1,14 @@
import { Box } from '@chakra-ui/react';
import PageSection from '@/components/PageSection/PageSection';
import type { PricingPackage, ShootType } from '@/content/types';
import type { PricingPackage, ShootType, ShootTypeId } from '@/content/types';
import ShootBlock from '../ShootBlock/ShootBlock';
type ShootListProps = {
shoots: readonly ShootType[];
packages: readonly PricingPackage[];
portfolioLive: boolean;
// Shoot types that link to the portfolio: only while it is live, and
// only for types with portfolio photos (BR-SL-01)
portfolioShoots: readonly ShootTypeId[];
};
// The shoot types below the page head, each in its own full-width band:
@@ -16,7 +18,7 @@ type ShootListProps = {
export default function ShootList({
shoots,
packages,
portfolioLive,
portfolioShoots,
}: ShootListProps) {
return (
<Box data-testid="shoot-list">
@@ -32,7 +34,7 @@ export default function ShootList({
packages={packages}
reverse={index % 2 === 1}
priority={index === 0}
portfolioLive={portfolioLive}
portfolioLink={portfolioShoots.includes(shoot.id)}
/>
</PageSection>
))}