From f8905f5586d5776cc416f92f71a7bdeb6260a2fc Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Thu, 22 Oct 2026 00:26:41 +0200 Subject: [PATCH] Makes the homepage headings and review text smaller Section headings are now 30px at every width instead of growing to 40px, the package names on the price cards 24px, and the review quotes run from 18.4px to 22px, so the hierarchy stays clear after the smaller headings. Co-Authored-By: Claude Opus 5.5 --- web/src/components/home/Pricing/PriceCard.tsx | 4 +++- web/src/components/home/Testimonials/TestimonialSlide.tsx | 4 +++- web/src/theme.ts | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/web/src/components/home/Pricing/PriceCard.tsx b/web/src/components/home/Pricing/PriceCard.tsx index 87222db..ca7f9ac 100644 --- a/web/src/components/home/Pricing/PriceCard.tsx +++ b/web/src/components/home/Pricing/PriceCard.tsx @@ -37,7 +37,9 @@ export default function PriceCard({ pkg }: PriceCardProps) { // booking button reacts textAlign="center" > - + {/* Smaller than the design's 1.75rem: stays clearly below the + 30px section h2 (owner's request) */} + {pkg.name} {/* accent.deep instead of the design's accent: meets 4.5:1 (NFR-HP-01) */} diff --git a/web/src/components/home/Testimonials/TestimonialSlide.tsx b/web/src/components/home/Testimonials/TestimonialSlide.tsx index e98fb40..85a4438 100644 --- a/web/src/components/home/Testimonials/TestimonialSlide.tsx +++ b/web/src/components/home/Testimonials/TestimonialSlide.tsx @@ -51,9 +51,11 @@ export default function TestimonialSlide({ {/* Plain elements, not Chakra's Blockquote: its slot recipe would pull shared code into the chunk the hero waits for */} + {/* Smaller than the design's clamp(1.35rem, 2.2vw, + 1.75rem) at the owner's request: 18.4px to 22px */} diff --git a/web/src/theme.ts b/web/src/theme.ts index c3c37a3..54a0a19 100644 --- a/web/src/theme.ts +++ b/web/src/theme.ts @@ -180,11 +180,12 @@ const config = defineConfig({ lineHeight: '1', }, }, - // The h2 of a homepage section (SectionHeading) + // The h2 of a homepage section (SectionHeading); smaller than the + // design's 2.5rem at the owner's request, 30px at every width sectionTitle: { value: { fontFamily: 'heading', - fontSize: { base: '1.85rem', md: '2.125rem', xl: '2.5rem' }, + fontSize: '1.875rem', lineHeight: '1.15', }, },