feat: Pre cablage du dashboard [#]

This commit is contained in:
Luc SORIGNET
2025-02-22 17:06:11 +01:00
parent c7723eceee
commit 1911f79f45
8 changed files with 132 additions and 86 deletions

View File

@ -0,0 +1,16 @@
// Composant StatCard pour afficher une statistique
const StatCard = ({ title, value, icon, color = "blue" }) => (
<div className="bg-white p-6 rounded-lg shadow-sm border border-gray-100">
<div className="flex justify-between items-start">
<div>
<h3 className="text-gray-500 text-sm font-medium">{title}</h3>
<p className="text-2xl font-semibold mt-1">{value}</p>
</div>
<div className={`p-3 rounded-full bg-${color}-100`}>
{icon}
</div>
</div>
</div>
);
export default StatCard;