Overview
This component is built with Astro and presents statistics in a row with vertical dividers. Each stat animates into view with a scale effect, and the section uses a distinct background color to stand out.Source Location
Props
This component does not accept any props. All content is hardcoded within the component.Usage
Basic Usage
Features
Scale Animation
Each stat item uses a scale animation for emphasis:Staggered Delays
- Label: 0.2s delay (slide up)
- Stat 1: 0.3s delay (scale)
- Stat 2: 0.4s delay (scale)
- Stat 3: 0.5s delay (scale)
- Stat 4: 0.6s delay (scale)
Four Statistics
Hardcoded first-year goals:- 50 - chitagüenses formándose
- 4 - cursos gratuitos
- 10 - talleres prácticos
- 1 - proyecto hecho desde aquí
Layout Structure
Responsive Behavior
Mobile (< 640px)
- Vertical stack layout (flex-direction: column)
- 2rem gap between stats
- Dividers hidden
- Center-aligned content
Tablet+ (640px+)
- Horizontal row layout (flex-direction: row)
- No gap (dividers provide spacing)
- Dividers visible (1px × 3.5rem, white with 15% opacity)
- Center-aligned content
Styling Notes
Background Colors
- Light mode: Green dark (
var(--color-green-dark)) - Dark mode: Dark gray (
#191919)
Typography
Label:Stat Item Layout
Section Spacing
Content Structure
Hardcoded Spanish content:- Label: “Lo que queremos lograr en el primer año” (What we want to achieve in the first year)
- Stats: Four key performance indicators with numbers and descriptions
Inline Styles
Note the use of inline styles on ScrollAnimation:Animation Variants
Label Animation
Stat Animation
Dependencies
ScrollAnimation.jsx- Animation wrapper component- Framer Motion (via ScrollAnimation)
- CSS custom properties:
--color-green-dark,--font-pop,--font-montserrat,--font-sans
Customization Ideas
To make this component reusable:Accessibility
- High contrast white text on dark background
- Semantic HTML structure
- Readable font sizes (numbers are large and clear)
- Proper spacing for readability
- Stats remain accessible when animations are disabled