Download src/components/admin/StatsCard.jsx from guisousa/BaseAdmin: direct link, hf CLI and curl.
- Browser
- Download file 906 Bytes
-
https://huggingface.co/spaces/guisousa/BaseAdmin/resolve/main/src/components/admin/StatsCard.jsx
- Command line
-
hf download hf://spaces/guisousa/BaseAdmin/src/components/admin/StatsCard.jsx
-
curl -L -o StatsCard.jsx https://huggingface.co/spaces/guisousa/BaseAdmin/resolve/main/src/components/admin/StatsCard.jsx
906 Bytes
| import React from "react"; | |
| import { Card, CardContent } from "@/components/ui/card"; | |
| import { motion } from "framer-motion"; | |
| export default function StatsCard({ title, value, icon: Icon, bgColor }) { | |
| return ( | |
| <motion.div | |
| initial={{ opacity: 0, y: 20 }} | |
| animate={{ opacity: 1, y: 0 }} | |
| > | |
| <Card className="border-2 border-gray-200 hover:shadow-lg transition-shadow"> | |
| <CardContent className="p-6"> | |
| <div className="flex items-center justify-between"> | |
| <div> | |
| <p className="text-sm text-gray-600 mb-1">{title}</p> | |
| <p className="text-3xl font-bold">{value}</p> | |
| </div> | |
| <div className={`w-14 h-14 ${bgColor} rounded-xl flex items-center justify-center`}> | |
| <Icon className="w-7 h-7 text-white" /> | |
| </div> | |
| </div> | |
| </CardContent> | |
| </Card> | |
| </motion.div> | |
| ); | |
| } |