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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user