I'll create a comprehensive fitness analytics dashboard with all the features you requested. Let me first explore the project structure and then build out the components.
I'll start by installing the necessary packages for charts and icons, then build the complete dashboard.
Now let me create the comprehensive fitness analytics dashboard. I'll start with the data utilities and components.
Now let me create the components. First, the KPI Card component:
Now let me create the Data Table component:
Now let me create the Filters component:
Now let me create the Header with the dark mode toggle:
Now let me create the main App component:
Let me update the HTML title and also update the index.css:
Now let me build the project to verify everything works:
Let me verify the project structure and make sure all files are in place:
The fitness analytics dashboard has been successfully created and builds. Here's a summary of what was implemented:
HHB Fitness Analytics Dashboard
Features Implemented:
-
KPI Summary Cards (6 cards)
- Total Workouts, Avg Daily Calories, Avg Daily Steps, Active Members, Champion Rate, Total Active Minutes
- Each card has trend indicators with percentage changes (green for increase, red for decrease)
- Color-coded gradient icons
-
Interactive Charts
- Line Chart: Activity trends showing workouts and active minutes over time
- Bar Chart: Calories burn and step count comparison
- Donut Chart: Workout category distribution (HIIT, Strength, Cardio, Yoga, Other)
- Weekly Performance Chart: Workout completion rates
- All charts feature smooth animations and hover tooltips
-
Data Table
- Sortable by any column (name, segment, workouts, minutes, etc.)
- Searchable by name, email, or segment
- Paginated with 6 items per page
- Responsive - shows/hides columns based on screen size
-
Filters
- Date range selector (7 Days, 30 Days, 90 Days, 1 Year)
- Segment filter (All, Champions, Active, At Risk, New Members)
- All filters update all views in real-time
- Reset button to clear filters
-
Dark Mode Toggle
- Full dark/light mode support
- Smooth transitions between modes
- Persists across all components
-
Responsive Design
- Mobile-first approach
- Adapts from mobile to desktop seamlessly
- Grid layouts adjust based on screen size
-
Realistic Sample Data
- 1 year of daily fitness data
- 20 member profiles with varied activity levels
- Weekly patterns and seasonal variations
Files built: src/utils/data.ts, src/components/KPICard.tsx, src/components/Charts.tsx, src/components/DataTable.tsx, src/components/Filters.tsx, src/components/Header.tsx, src/App.tsx, index.html, src/index.css