Files
webb/src/components/sections/StatsSection.tsx
T

35 lines
1.1 KiB
TypeScript
Raw Normal View History

import React from 'react';
interface StatsSectionProps {
items?: Array<{
value: string;
label: string;
}>;
}
export function StatsSection({ items = [] }: StatsSectionProps) {
if (!items || items.length === 0) return null;
return (
<section className="py-14 sm:py-16 bg-[#FAF8F5] border-y border-slate-900/[0.08] relative overflow-hidden">
<div className="w-full max-w-[1640px] 2xl:max-w-[1720px] mx-auto px-4 sm:px-6 lg:px-8 xl:px-10 relative z-10">
<div className="grid grid-cols-2 md:grid-cols-4 gap-8 text-center divide-y md:divide-y-0 md:divide-x divide-slate-200">
{items.map((stat, idx) => (
<div
key={idx}
className="pt-4 md:pt-0 space-y-2"
>
<div className="text-4xl sm:text-5xl lg:text-6xl font-display font-black tracking-tight text-gradient-brand">
{stat.value}
</div>
<p className="text-xs sm:text-sm font-mono uppercase tracking-wider text-slate-600 font-bold block">
{stat.label}
</p>
</div>
))}
</div>
</div>
</section>
);
}