Shows client reviews one at a time with the framed photo, a large quotation mark, the shoot type and the names. Uses Chakra's carousel for paging, looping and swiping with our own controls, so visitors who prefer reduced motion get instant changes, and loads the carousel only when the section comes near the screen so the hero does not wait for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 lines
261 B
TypeScript
6 lines
261 B
TypeScript
// Name of a review in the carousel and what is announced when it changes,
|
|
// e.g. "Review 2 van 3". index is zero-based (BR-REV-08, BR-REV-09).
|
|
export function slideLabel(index: number, count: number): string {
|
|
return `Review ${index + 1} van ${count}`;
|
|
}
|