Redesigns the testimonials section

A landscape photo overlaps a card with the shoot type, quote and names. The controls are two arrows with an X / Y counter; the dots are gone and nothing moves by itself. A change slides the whole slide horizontally, also on a swipe. Reviews get an optional imagePosition for the crop, normalised by normalizeImagePosition; slideCounter writes the counter. Both helpers have property tests next to example tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-06 01:24:14 +01:00
co-authored by Claude Sonnet 5.5
parent 9a2e84e4b2
commit b03b18f58e
14 changed files with 607 additions and 159 deletions
+2
View File
@@ -18,6 +18,8 @@ const testimonials: Testimonial[] = [
width: 880,
height: 1100,
},
// The rings sit a little above the middle of the photo
imagePosition: '50% 42%',
},
{
id: 'demi-kevin',
+6 -1
View File
@@ -130,13 +130,18 @@ export interface ShootType {
}
// A review from a client ("Lieve woorden"). quote is plain text without
// quotation marks; the design adds a decorative one.
// quotation marks; the design shows none either.
export interface Testimonial {
id: string;
shoot: string;
quote: string;
author: string;
image: ContentImage;
// Which part of the photo stays visible in the landscape crop, as a CSS
// object-position of two percentages, e.g. '50% 42%'. Optional and not
// trusted: it goes through normalizeImagePosition, which falls back to
// the centre, and it has no say in whether the review is shown.
imagePosition?: string;
}
// Content of the homepage sections below the hero