2026-11-03 18:06:20 +05:30
|
|
|
'use client';
|
|
|
|
|
|
2026-11-03 12:24:43 +05:30
|
|
|
import React from 'react';
|
2026-11-03 18:06:20 +05:30
|
|
|
import { NumberCounter } from '@/components/animate-ui/NumberCounter';
|
|
|
|
|
import { AnimatedGradientText } from '@/components/animate-ui/AnimatedGradientText';
|
2026-11-03 12:24:43 +05:30
|
|
|
|
|
|
|
|
interface StatsSectionProps {
|
|
|
|
|
items?: Array<{
|
|
|
|
|
value: string;
|
|
|
|
|
label: string;
|
|
|
|
|
}>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function StatsSection({ items = [] }: StatsSectionProps) {
|
|
|
|
|
if (!items || items.length === 0) return null;
|
|
|
|
|
|
|
|
|
|
return (
|
2026-11-03 18:06:20 +05:30
|
|
|
<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">
|
2026-11-03 13:16:16 +05:30
|
|
|
<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">
|
2026-11-03 12:24:43 +05:30
|
|
|
{items.map((stat, idx) => (
|
2026-11-03 18:06:20 +05:30
|
|
|
<div
|
|
|
|
|
key={idx}
|
|
|
|
|
className="pt-4 md:pt-0 space-y-2 group hover:-translate-y-1 transition-all duration-300"
|
|
|
|
|
>
|
|
|
|
|
<div className="text-4xl sm:text-5xl lg:text-6xl font-display font-black tracking-tight inline-block">
|
|
|
|
|
<AnimatedGradientText duration={5}>
|
|
|
|
|
<NumberCounter value={stat.value} duration={1.8} />
|
|
|
|
|
</AnimatedGradientText>
|
|
|
|
|
</div>
|
|
|
|
|
<p className="text-xs sm:text-sm font-mono uppercase tracking-wider text-slate-600 font-bold block">
|
2026-11-03 12:24:43 +05:30
|
|
|
{stat.label}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
);
|
|
|
|
|
}
|