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
string
required
The numerical or text value to display prominently (e.g., “10+”, “500K+”, “24/7”).
string
required
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.