diff --git a/src/components/ds/ui/StatsSection.tsx b/src/components/ds/ui/StatsSection.tsx index 05a5eb72e..915c65895 100644 --- a/src/components/ds/ui/StatsSection.tsx +++ b/src/components/ds/ui/StatsSection.tsx @@ -198,14 +198,16 @@ function LibraryStat({ iconTop, stat }: { iconTop: boolean; stat: StatItem }) { /* --------------------------------------------------------------- hero stats -- */ function HeroStat({ - iconTop, + layout, stat, onImage, }: { - iconTop: boolean + layout: StatsLayout stat: StatItem onImage?: boolean }) { + const isLandscape = layout === 'landscape' + return ( {stat.icon ? ( @@ -226,23 +231,34 @@ function HeroStat({ {stat.icon} ) : null} - - - - {stat.value} - - + {stat.label} + + + {stat.value} + + ) @@ -287,21 +303,20 @@ export function StatsSection({ } if (page === 'hero') { - const iconTop = layout === 'stacked-landscape' - return (
{stats.map((stat) => (