Adds the shared gallery building blocks

A masonry photo grid that keeps the reading order (pure CSS, no measuring
in the browser), an accessible lightbox on Chakra's Dialog with wrap-around
browsing, keys, swipe and preloading, and a filter bar of toggle buttons.
They work on generic gallery items, so other pages can use them. The swipe
logic moves out of the hero into a shared hook; the hero behaves as before.
The rules behind them live in pure helpers with property-based tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 23:22:43 +01:00
co-authored by Claude Opus 5.5
parent e013f1436b
commit 18bf0311ef
38 changed files with 2392 additions and 43 deletions
+3
View File
@@ -1,6 +1,7 @@
import { createSystem, defaultConfig, defineConfig } from '@chakra-ui/react';
import carouselControlRecipe from './recipes/carouselControl';
import containerRecipe from './recipes/container';
import filterControlRecipe from './recipes/filterControl';
import formControlRecipe from './recipes/formControl';
import iconControlRecipe from './recipes/iconControl';
import linkRecipe from './recipes/link';
@@ -101,6 +102,7 @@ const config = defineConfig({
interaction: { value: '0.45s' }, // hover, focus
fade: { value: '1.2s' }, // overvloeien van foto's
reveal: { value: '0.8s' }, // fade-in of sections on scroll
swap: { value: '0.3s' }, // crossfade between photos in the lightbox
},
// Stapelvolgorde van de vaste shell-onderdelen, van laag naar hoog
zIndex: {
@@ -236,6 +238,7 @@ const config = defineConfig({
iconControl: iconControlRecipe,
carouselControl: carouselControlRecipe,
formControl: formControlRecipe,
filterControl: filterControlRecipe,
},
},
});