2024-06-15 14:55:33 +02:00
|
|
|
import { stats } from "@/constants";
|
2024-07-05 21:20:59 +02:00
|
|
|
import NumberTicker from "../widgets/num-tick";
|
2024-06-15 14:55:33 +02:00
|
|
|
|
|
|
|
const Statistics = () => {
|
2024-09-07 09:12:48 +02:00
|
|
|
return (
|
|
|
|
<section>
|
|
|
|
<div className="grid grid-cols-2 lg:grid-cols-4 gap-8">
|
|
|
|
{stats.map(({ title, count }) => (
|
|
|
|
<div key={title} className="space-y-2 text-center">
|
|
|
|
<h2 className="text-3xl sm:text-4xl font-bold">
|
2024-09-07 11:28:16 +02:00
|
|
|
<NumberTicker value={count} />+
|
2024-09-07 09:12:48 +02:00
|
|
|
</h2>
|
|
|
|
<p className="text-xl text-muted-foreground">{title}</p>
|
|
|
|
</div>
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
);
|
2024-06-15 14:55:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default Statistics;
|