Overview
TheStat interface represents a statistical metric or achievement displayed in the impact section of the home page. It provides a simple key-value structure for showcasing company metrics, achievements, or notable figures.
Type Definition
types.ts:35-38
Properties
The numerical or text value to display prominently (e.g., “10+”, “500K+”, “24/7”).
Descriptive label explaining what the value represents (e.g., “Years of Experience”, “Happy Customers”).
Usage Example
Fromdata/data.tsx, the home page impact section uses an array of Stat objects:
data/data.tsx
Rendering Stats
The Home page (pages/Home.tsx) renders stats in a grid layout:
pages/Home.tsx
Best Practices
Labels should be short phrases (2-4 words) that clearly explain the metric without additional context.
Related Types
Common Stat Examples
| Value | Label | Purpose |
|---|---|---|
"10+" | "Años en el mercado" | Company longevity |
"5" | "Países atendidos" | Geographic reach |
"500+" | "Clientes satisfechos" | Customer base size |
"24/7" | "Soporte técnico" | Service availability |
"99%" | "Tasa de satisfacción" | Quality metrics |