diff --git a/src/components/pages/HomePage/HomePage.tsx b/src/components/pages/HomePage/HomePage.tsx index 36323c8..4446463 100644 --- a/src/components/pages/HomePage/HomePage.tsx +++ b/src/components/pages/HomePage/HomePage.tsx @@ -12,8 +12,8 @@ import StarBorderIcon from '@mui/icons-material/StarBorder'; import type { SxProps, Theme } from '@mui/material/styles'; import { Typography } from '../../atoms/Typography'; import { Button } from '../../atoms/Button'; -import { Card } from '../../atoms/Card'; import { ProviderCardCompact } from '../../molecules/ProviderCardCompact'; +import { Divider } from '../../atoms/Divider'; import { FuneralFinderV3, type FuneralFinderV3SearchParams } from '../../organisms/FuneralFinder'; // ─── Types ─────────────────────────────────────────────────────────────────── @@ -102,6 +102,10 @@ export interface HomePageProps { /** Feature cards for "Why Use FA" */ features?: FeatureCard[]; + /** Features section heading */ + featuresHeading?: string; + /** Features section body text */ + featuresBody?: string; /** Aggregate Google rating */ googleRating?: number; @@ -178,6 +182,8 @@ export const HomePage = React.forwardRef( discoverMapSlot, onSelectFeaturedProvider, features = [], + featuresHeading = 'How it works', + featuresBody = 'Search local funeral directors, compare transparent pricing, and personalise a plan — all in your own time. No pressure, no hidden costs.', googleRating, googleReviewCount, testimonials = [], @@ -404,15 +410,15 @@ export const HomePage = React.forwardRef( display: 'grid', gridTemplateColumns: { xs: '1fr', md: '1fr 1fr' }, gap: 3, - alignItems: 'start', + alignItems: 'stretch', }} > - {/* Map placeholder */} + {/* Map placeholder — stretches to match card stack */} ( ))} + + {/* CTA */} + + + )} @@ -556,28 +569,19 @@ export const HomePage = React.forwardRef( - Why use Funeral Arranger - - - Making an impossible time a little easier + {featuresHeading} - Funeral planning doesn't have to be overwhelming. Whether a loved one has - just passed, is imminent, or you're pre-planning for the future. Compare - transparent pricing from local funeral directors. Explore the service options, - coffins and more to personalise a funeral plan in clear, easy steps. + {featuresBody} @@ -589,41 +593,27 @@ export const HomePage = React.forwardRef( sm: 'repeat(2, 1fr)', md: 'repeat(4, 1fr)', }, - gap: { xs: 3, md: 3 }, + gap: { xs: 4, md: 5 }, }} > {features.map((feature) => ( - - - - {feature.icon} - - - {feature.heading} - - - {feature.description} - + + + {feature.icon} - + + {feature.heading} + + + {feature.description} + + ))} @@ -639,17 +629,17 @@ export const HomePage = React.forwardRef( aria-labelledby="reviews-heading" sx={{ py: { xs: 6, md: 10 }, - bgcolor: 'var(--fa-color-surface-warm)', + bgcolor: 'var(--fa-color-surface-subtle)', }} > - Testimonials + What families are saying {googleRating != null && ( @@ -673,55 +663,57 @@ export const HomePage = React.forwardRef( )} - {/* Editorial testimonials — alternating alignment */} - + {/* Editorial testimonials — alternating alignment with dividers */} + {testimonials.map((t, i) => { const isRight = i % 2 === 1; return ( - - - - {t.quote} - - - {t.name} - + + {i > 0 && } - - - · {t.timeAgo} + + + {t.quote} + + {t.name} + + + + + · {t.timeAgo} + + - + ); })} @@ -736,16 +728,16 @@ export const HomePage = React.forwardRef( component="section" aria-labelledby="cta-heading" sx={{ - bgcolor: 'var(--fa-color-surface-warm)', - py: { xs: 6, md: 10 }, + py: { xs: 6, md: 8 }, }} > - + + {ctaHeading}