import CoreValueStats from "@/components/ruixen/core-value-stats";export default function App() { const stats = [ { value: "99.9%", label: "Uptime", description: "Reliable service you can count on", image: "/stats-uptime.jpg", }, { value: "50K+", label: "Users", description: "Trusted by developers worldwide", }, { value: "24/7", label: "Support", description: "Always here to help you succeed", }, ]; return ( <CoreValueStats title="Building Scalable Digital Foundations" subtitle="Core Values" description="From design systems to digital ecosystems" stats={stats} /> );}
Props
CoreValueStats Props
Prop
Type
Default
Description
title
string
"Building Scalable Digital Foundations..."
Main section title
subtitle
string
"Core Values"
Section subtitle/label
description
string
Default description text
Section description
stats
CoreStat[]
Required
Array of stat items to show
CoreStat Props
Prop
Type
Default
Description
value
string
-
Main stat value (e.g., "99%")
label
string
-
Stat label (e.g., "Uptime")
description
string
-
Detailed description
image
string
-
Optional background image URL
Features
Responsive Layout: Horizontal scroll on mobile, grid on desktop
Image Backgrounds: Optional images with overlay effects
3D Hover Effects: Cards tilt and scale on hover (image cards only)
Smooth Animations: Staggered entrance animations with Framer Motion
Flexible Content: Works with or without images
Dark Mode Support: Adapts to theme automatically
Call-to-Action: Built-in "Learn more" links for each stat
Animation Details
Card Entrance
Staggered Timing: 0.1s delay between each card
Fade In: Opacity 0 → 1
Slide Up: 20px vertical movement
Duration: 0.5 seconds
Viewport Trigger: Animates when scrolled into view
Hover Effects (Image Cards)
3D Rotation: 5° tilt on X and Y axes
Scale: 5% size increase
Spring Physics: Stiffness 200, Damping 10
Shadow: Enhanced shadow on hover
Smooth Transition: Natural spring animation
Customization
Custom Header
<CoreValueStats title="Why Choose Us" subtitle="Our Strengths" description="Discover what makes us different from the competition" stats={stats}/>