Files
ignum/components/pages/home/statistics.tsx
nabijonovdavronbek619@gmail.com ce8d14c9b2 change blog sectio from home page
2026-01-28 12:25:06 +05:00

59 lines
1.7 KiB
TypeScript

import { Counter } from "@/components/Counter";
import { useTranslations } from "next-intl";
export function Statistics() {
const t = useTranslations();
const stats = [
{
number: "25",
symbol: "+",
label: t("home.statistics.experience"),
},
{
number: "450",
symbol: "+",
label: t("home.statistics.projectsCompleted"),
},
{
number: "99",
symbol: "+",
label: t("home.statistics.trainedSpecialists"),
},
{
number: "93",
symbol: "%",
label: t("home.statistics.trustedClients"),
},
];
return (
<section className="w-full bg-black">
<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-8 lg:gap-12">
{stats.map((stat, index) => (
<div
key={index}
className="flex flex-col items-center justify-center py-10 sm:py-20 lg:py-15 border-b-red-600 border-b"
>
{/* Number and Symbol */}
<div className="flex items-baseline gap-2 font-almarai">
<span className="text-4xl sm:text-5xl lg:text-6xl font-bold text-white">
<Counter countNum={Number(stat.number)} />
</span>
<span className="text-4xl sm:text-5xl lg:text-6xl font-bold text-red-600">
{stat.symbol}
</span>
</div>
{/* Label */}
<p className="font-almarai text-sm sm:text-base text-gray-300 mt-4 text-center font-medium">
{stat.label}
</p>
</div>
))}
</div>
</div>
</section>
);
}