I will explore the files in the project to understand its structure.
I will read package.json to see what packages and icons are installed.
I will install lucide-react and canvas-confetti (with types) for Strava-style icons and celebratory kudos animations.
I will now update index.html to give our app an authentic title and set up responsive viewport defaults.
I will read index.html to inspect its contents.
I will update index.html with our Strava-inspired app title and font.
I will check src/index.css.
I will update src/index.css to configure clean typography, custom scrollbars, and Strava-inspired styling rules.
I will create the TypeScript interfaces and types for athletes, activities, GPS coordinates, segments, gear, comments, and challenges in src/types/strava.ts.
I will create utility formatting functions in src/utils/formatters.ts to convert seconds to hours/minutes, calculate pace, and generate route paths.
I will fix the aspect ratio scaling logic in src/utils/formatters.ts so scale is utilized properly.
I will create rich sample data in src/data/mockData.ts, including athletes, pre-populated workout activities with realistic GPS tracks, segments, splits, gear, challenges, and clubs.
I will add the empty segments array to the swim activity in src/data/mockData.ts to satisfy the Activity type requirements.
I will create src/components/Navbar.tsx featuring the iconic Strava navigation bar with activity recorder triggers, search bar, view switcher tabs, and notification alerts.
I will clean up unused imports in src/components/Navbar.tsx.
I will create src/components/AthleteSidebar.tsx to display the athlete's personal stats, goal targets, streak counters, and equipment mileage trackers.
I will clean up unused imports in src/components/AthleteSidebar.tsx.
I will create src/components/RightSidebar.tsx displaying active monthly challenges, recommended athletes to follow, and local clubs.
I will fix the Lucide icon title property by wrapping it in a span with the tooltip attribute in src/components/RightSidebar.tsx.
I will create src/components/RouteMap.tsx with interactive map styles (Standard Topo, Dark Heatmap, Satellite), route polylines, start/end GPS markers, and an interactive elevation scrubber graph where hovering highlights the exact position on the trail.
I will clean up unused imports in src/components/RouteMap.tsx.
I will create src/components/ActivityCard.tsx embodying the full Strava workout card experience with interactive kudos (with confetti effects), live commenting, route maps, segment achievement badges, and sport-specific stats grids.
I will clean up unused imports in src/components/ActivityCard.tsx.
I will create src/components/ActivityFeed.tsx with activity filtering by sport and relationship, sorting options, and empty states.
I will clean up unused imports in src/components/ActivityFeed.tsx.
I will create src/components/ActivityDetailModal.tsx providing in-depth analysis of splits, heart rate zones, power distribution, and segment leaderboards when clicking into a workout.
I will clean up unused imports in src/components/ActivityDetailModal.tsx.
I will create src/components/ActivityRecorderModal.tsx allowing athletes to simulate a real-time GPS workout with live polylines or manually log a custom workout into their feed.
I will clean up unused imports in src/components/ActivityRecorderModal.tsx.
I will create src/components/SegmentsExplorer.tsx to showcase iconic segments, local leaderboards, and route discovery.
I will clean up unused imports in src/components/SegmentsExplorer.tsx.
I will create src/components/TrainingAnalytics.tsx presenting interactive weekly/monthly volume charts, sport breakdowns, and fitness form indexes.
I will clean up unused imports in src/components/TrainingAnalytics.tsx.
I will create src/components/ChallengesClubsTab.tsx showcasing community challenges, rewards, and athletic club memberships.
I will clean up unused imports in src/components/ChallengesClubsTab.tsx.
I will now replace src/App.tsx with our main Strava-style activity dashboard container connecting all UI components, state management, and workout simulation workflows.
I will remove the unused React import in src/App.tsx.
I will now test building the application using build_project to ensure there are no compilation or styling errors.
I have created Stravia, a Strava-style activity feed web application for athletes. Here is a summary of what was built:
🌟 Key Features & Architecture
-
Interactive GPS Route Maps (src/components/RouteMap.tsx):
- Multi-layer map styling: Switch seamlessly between Standard Topo, Dark Heatmap (glowing neon orange/cyan polylines), and Satellite views.
- Interactive Elevation Scrubber Graph: Hovering across the elevation profile graph at the bottom dynamically moves a live GPS target marker along the route polyline while displaying exact distance and altitude metrics.
- Start (green point) and End (checkered flag) markers.
-
Full Workout Cards (src/components/ActivityCard.tsx):
- Pre-populated with realistic activities across cycling, road running, trail running, Zwift virtual rides, and ocean swimming.
- Sport icon tags, weather conditions, power (Avg Watts), heart rate, suffer score, and cadence metrics.
- Segment & PR Badges: Highlighting achievements such as 👑 Local Legend, PR, and QOM.
- Celebratory Kudos: Clicking the heart triggers a celebratory particle burst (using
canvas-confetti), updates the count immediately, and adds your profile to the kudos giver avatar stack.
- Live Commenting: Expandable comments drawer where athletes can post feedback or cheers instantly.
-
Live GPS Workout Simulator (src/components/ActivityRecorderModal.tsx):
- Live Simulator Mode: Choose your sport (Ride, Run, Swim, Trail Run) and start simulated live GPS recording. Watch real-time elapsed timers tick up, distance/elevation climb, power/HR fluctuate, and a GPS trace draw live around San Francisco. Clicking "Finish & Post Workout" posts the session directly to the top of your feed.
- Manual Workout Log: Log any custom workout with personalized title, distance, duration, and feelings.
-
Deep-Dive Activity Modal (src/components/ActivityDetailModal.tsx):
- Clicking any activity card opens a comprehensive analysis modal with splits breakdown by kilometer, segment leaderboards, Heart Rate zone distribution histograms (Zone 1 Recovery to Zone 5 Peak Neuromuscular), and power output histograms.
-
Athlete Hub & Sidebars:
- Athlete Sidebar (
src/components/AthleteSidebar.tsx): Displays weekly mileage goals with visual progress bars, streak trackers, and gear mileage indicators (e.g. tracking shoe wear percentage).
Files built: index.html, src/index.css, src/types/strava.ts, src/utils/formatters.ts, src/data/mockData.ts, src/components/Navbar.tsx, src/components/AthleteSidebar.tsx, src/components/RightSidebar.tsx, src/components/RouteMap.tsx, src/components/ActivityCard.tsx, src/components/ActivityFeed.tsx, src/components/ActivityDetailModal.tsx, src/components/ActivityRecorderModal.tsx, src/components/SegmentsExplorer.tsx, src/components/TrainingAnalytics.tsx, src/components/ChallengesClubsTab.tsx, src/App.tsx