Redesigns the testimonials section #16

Merged
Sluijsens merged 3 commits from feature/testimonials-redesign into master 2026-11-06 01:35:57 +01:00
Owner

What changes

The "Lieve woorden" section follows the approved design (card over a landscape photo, closer to the live site) and the section headings get a new style.

  • Testimonials: a landscape photo overlaps a paper.deep 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: the review changes with the arrows, the arrow keys, a swipe or a drag, and the whole slide slides horizontally (instantly with reduced motion). Stacked below 1024 px with the photo at most 640 px wide.
  • Crop: reviews get an optional imagePosition (for example 50% 42%). normalizeImagePosition turns it into a safe value and falls back to the centre.
  • Counter: slideCounter writes "X / Y".
  • Headings: every SectionHeading shows its title in letter-spaced capitals (26 px on phones, 30 px from md). The five headings that use sectionTitle directly keep their style.
  • Tests: new example and property tests for both helpers and for visibleTestimonials; the tests of the dots are replaced.
  • Docs: AI-DLC documents under aidlc-docs/features/testimonials-redesign/ (requirements, plan, functional design, build and test).

Verification

  • pnpm lint, pnpm format:check, tsc: clean
  • pnpm test: 134 files, 1414 tests passed, coverage thresholds met
  • pnpm build: 12 pages prerendered; pnpm e2e: 268 passed, 205 skipped (same numbers on master)
  • pnpm audit:deps: no known vulnerabilities in production packages
  • Lighthouse desktop: all 12 URLs pass. Mobile: all assertions pass except / performance, 0.83 against the floor of 0.85. Five runs on this branch (0.84 0.85 0.84 0.84 0.84) and five on master (0.84 0.84 0.84 0.85 0.85) show the same score and the same LCP (about 4.36 s, the hero), so this change does not lower it. The floor with a single run is borderline; CI only warns on performance.
  • Real browser at 1440, 1024, 768 and 390 px: geometry as designed, no sideways scroll, next, previous, the loop, arrow keys, mouse drag and touch swipe all work and the counter and announcement follow; nothing moves by itself.

Notes

  • The longest heading ("Lifestyle fotograaf met een passie voor storytelling") takes 4 lines at 390 px and 3 lines from 768 px.
  • Small deviations from the design are listed in construction/testimonials/code/code-summary.md.

Generated with Claude Code

## What changes The "Lieve woorden" section follows the approved design (card over a landscape photo, closer to the live site) and the section headings get a new style. - **Testimonials**: a landscape photo overlaps a `paper.deep` 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: the review changes with the arrows, the arrow keys, a swipe or a drag, and the whole slide slides horizontally (instantly with reduced motion). Stacked below 1024 px with the photo at most 640 px wide. - **Crop**: reviews get an optional `imagePosition` (for example `50% 42%`). `normalizeImagePosition` turns it into a safe value and falls back to the centre. - **Counter**: `slideCounter` writes "X / Y". - **Headings**: every `SectionHeading` shows its title in letter-spaced capitals (26 px on phones, 30 px from md). The five headings that use `sectionTitle` directly keep their style. - **Tests**: new example and property tests for both helpers and for `visibleTestimonials`; the tests of the dots are replaced. - **Docs**: AI-DLC documents under `aidlc-docs/features/testimonials-redesign/` (requirements, plan, functional design, build and test). ## Verification - `pnpm lint`, `pnpm format:check`, `tsc`: clean - `pnpm test`: 134 files, 1414 tests passed, coverage thresholds met - `pnpm build`: 12 pages prerendered; `pnpm e2e`: 268 passed, 205 skipped (same numbers on master) - `pnpm audit:deps`: no known vulnerabilities in production packages - Lighthouse desktop: all 12 URLs pass. Mobile: all assertions pass except `/` performance, 0.83 against the floor of 0.85. Five runs on this branch (0.84 0.85 0.84 0.84 0.84) and five on master (0.84 0.84 0.84 0.85 0.85) show the same score and the same LCP (about 4.36 s, the hero), so this change does not lower it. The floor with a single run is borderline; CI only warns on performance. - Real browser at 1440, 1024, 768 and 390 px: geometry as designed, no sideways scroll, next, previous, the loop, arrow keys, mouse drag and touch swipe all work and the counter and announcement follow; nothing moves by itself. ## Notes - The longest heading ("Lifestyle fotograaf met een passie voor storytelling") takes 4 lines at 390 px and 3 lines from 768 px. - Small deviations from the design are listed in `construction/testimonials/code/code-summary.md`. Generated with [Claude Code](https://claude.com/claude-code)
Sluijsens added 3 commits 2026-11-06 01:24:43 +01:00
SectionHeading gets the new sectionHeading text style: uppercase, the shared caps letter-spacing, 26px on phones and 30px from md. The text in the DOM does not change, so accessible names stay as they are. The plain sectionTitle style stays for the headings that do not use SectionHeading.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
Adds the AI-DLC documents of the testimonials redesign
Continuous Integration / check (pull_request) Successful in 1m45s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 8m44s
Continuous Integration / deploy-production (pull_request) Skipped
7a5e713b69
Requirements, execution plan, functional design, code summaries, build and test results and the audit log; the reverse-engineering notes and the feature registry are updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sluijsens merged commit 16b75af4d4 into master 2026-11-06 01:35:57 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SLP_Software/AndreaSlopFotografie#16