{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "glassmorphism-statistics-card-shadcnui", "type": "registry:component", "title": "Glassmorphism Statistics Card", "description": "Interactive statistics card with hover reveal and smooth transitions", "registryDependencies": [ "button", "card" ], "dependencies": [ "framer-motion", "react" ], "files": [ { "path": "@uitripled/react-shadcn/src/components/sections/glassmorphism-statistics-card.tsx", "content": "\"use client\";\n\nimport { Card } from \"@/components/ui/card\";\nimport { motion } from \"framer-motion\";\nimport { Award, Bike, TrendingUp } from \"lucide-react\";\nimport { useState } from \"react\";\n\nconst athlete = {\n name: \"Marcus Chen\",\n title: \"Professional Mountain Biker\",\n description:\n \"Elite endurance athlete specializing in cross-country and trail racing\",\n image:\n \"https://images.unsplash.com/photo-1541625602330-2277a4c46182?w=800&q=80\",\n stats: [\n { label: \"Total Distance\", value: \"12,450 km\", icon: Bike },\n { label: \"Avg Speed\", value: \"28.5 km/h\", icon: TrendingUp },\n { label: \"Achievements\", value: \"47 Wins\", icon: Award },\n ],\n};\n\nexport function GlassmorphismStatisticsCard() {\n const [isImageLoaded, setIsImageLoaded] = useState(false);\n const [isHovered, setIsHovered] = useState(false);\n\n return (\n \n setIsHovered(true)}\n onHoverEnd={() => setIsHovered(false)}\n initial=\"default\"\n animate={isHovered ? \"hover\" : \"default\"}\n >\n \n {/* Background Image with loading state */}\n
\n {!isImageLoaded && (\n
\n )}\n \n setIsImageLoaded(true)}\n />\n \n \n
\n\n {/* Content Container */}\n
\n \n\n {/* Text content at end of card */}\n \n
\n

\n {athlete.name}\n

\n

\n {athlete.title}\n

\n

\n {athlete.description}\n

\n
\n \n\n {/* Stats grid - appears on hover */}\n \n
\n {athlete.stats.map((stat, index) => {\n const Icon = stat.icon;\n return (\n \n \n

\n {stat.label}\n

\n

\n {stat.value}\n

\n \n );\n })}\n
\n \n
\n \n \n \n );\n}\n", "type": "registry:component", "target": "components/uitripled/glassmorphism-statistics-card-shadcnui.tsx" } ] }