32 lines
995 B
TypeScript
32 lines
995 B
TypeScript
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-8 bg-slate-50/50 dark:bg-slate-950/40 border-y border-slate-200 dark:border-slate-800">
|
||
|
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||
|
|
<div className="grid grid-cols-2 md:grid-cols-4 gap-6 text-center">
|
||
|
|
{items.map((stat, idx) => (
|
||
|
|
<div key={idx} className="space-y-1">
|
||
|
|
<p className="text-3xl sm:text-4xl font-extrabold bg-clip-text text-transparent bg-gradient-to-r from-blue-600 to-teal-500">
|
||
|
|
{stat.value}
|
||
|
|
</p>
|
||
|
|
<p className="text-xs font-medium text-slate-500 dark:text-slate-400">
|
||
|
|
{stat.label}
|
||
|
|
</p>
|
||
|
|
</div>
|
||
|
|
))}
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
);
|
||
|
|
}
|