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