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">
|
2024-09-14 13:01:47 +02:00
|
|
|
<p className="text-3xl sm:text-4xl font-bold">
|
2024-09-07 11:28:16 +02:00
|
|
|
<NumberTicker value={count} />+
|
2024-09-14 13:01:47 +02:00
|
|
|
</p>
|
2024-09-07 09:12:48 +02:00
|
|
|
<p className="text-xl text-muted-foreground">{title}</p>
|
|
|
|
</div>
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
);
|
2024-06-15 14:55:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default Statistics;
|