| import { GlassCard } from "@/components/ui/GlassCard"; | |
| import { motion } from "framer-motion"; | |
| interface StatCardProps { | |
| icon: React.ReactNode; | |
| label: string; | |
| value: number | string; | |
| color?: string; | |
| } | |
| export function StatCard({ icon, label, value, color = "from-primary to-secondary" }: StatCardProps) { | |
| return ( | |
| <motion.div whileHover={{ y: -4 }} transition={{ duration: 0.2 }}> | |
| <GlassCard className="p-5 flex items-center gap-4"> | |
| <div className={`p-3 rounded-xl bg-gradient-to-br ${color} text-white shadow-lg`}>{icon}</div> | |
| <div> | |
| <p className="text-sm text-gray-500">{label}</p> | |
| <p className="text-2xl font-bold">{value}</p> | |
| </div> | |
| </GlassCard> | |
| </motion.div> | |
| ); | |
| } |
Xet Storage Details
- Size:
- 744 Bytes
- Xet hash:
- 35f6bc9cbcdec7adebcd4f927508cad56ee7beb35c17ddcdef5bcaf66ec1b967
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.