Hey Product Builder👋
Welcome to the third part of series "Build with Lovable.dev".
I'm huge solo leveling fan, big fan of Sung's leveling up discipline and Igris's classiness. I was just scrolling reel on Instagram and I got reel of System, Push ups (0/100), Sit ups(0/100), Squats(0/100), Run (0/10km).
So, I just thought to build my own solo leveling fitness tracker application. So, let's see how I build it.
This was my first prompt to build UI for application.
Part 1: Solo Leveling Fitness Tracker - UI Design (No Database)
Overview
Design the front-end interface for a minimalist, gamified fitness tracking system inspired by Solo Leveling anime. This phase focuses solely on UI elements and client-side functionality without database integration.
Core Functionality Requirements
Authentication System
Simple login screen with fixed credentials (Username: Aizecs, Password: Tiger2025)
Solo Leveling-inspired design elements (hunter emblem, gate imagery)
"Awaken" button instead of standard "Login" button
Client-side validation only (store credentials in local storage for this phase)
Daily Quest Dashboard
Prominent display of current date and time in India time zone (UTC+5:30)
Morning greeting based on login time
Daily quests displayed as a list of exercises with completion tracking:
Pushups (0/60)
Sit ups (0/60)
Squats (0/60)
Kegal Exercise 1-5 (0/60 each)
Interactive counters allowing the user to increment progress
Visual progress bars for each exercise
Clear "Complete Quest" button
Basic Progress Tracking
Temporary local storage for:
Wake-up time input
Workout completion time
Percentage of daily workout completed
Simple visualization of today's progress
Current rank display (starting at E-rank)
Visual Design Elements
Color Palette
Primary: Deep blue (#1A237E) and purple (#4A148C) gradients
Secondary: Gold (#FFC107) for achievements and completed tasks
Tertiary: Grey scale for incomplete tasks
Accent: Red (#D50000) for rank indicators
Typography
Clean, sans-serif font for readability
Display font for headings inspired by Korean/anime aesthetics
Different font weights for visual hierarchy
UI Components
Minimalist card-based design for exercise modules
Custom progress bars that change color when completed
Rank emblem that displays current rank (E-rank initially)
Custom toggle/counter buttons for exercise tracking
User Flow
Login Screen
Enter credentials (client-side validation only)
Transition to Daily Quest Dashboard
Daily Quest Dashboard
Morning greeting with rank displayed
View all exercise requirements
Log exercises as completed
View completion percentage
Basic Progress View
Simple chart showing today's completion percentage
Current rank display
Technical Implementation (Frontend Only)
Local Storage Usage
Store daily exercise progress temporarily
Track login time and completion time
Maintain current session data
Client-Side Features
JavaScript time/date handling for India time zone
Progress calculation functions
Exercise counter logic
Basic rank display (static in this phase)
Responsive Design
Mobile-first approach
Tablet and desktop versions with adjusted layouts
Touch-friendly interface with large tap targets
This was dashboard build out with initial prompts.
and then, I gave my second prompt, As I don't wanted to include supabase yet, I don't want to keep in backend, So, i just given this prompt, saving everything in local storage.
# Part 2: Solo Leveling Fitness Tracker - LocalStorage Implementation & Advanced Features
## LocalStorage Data Architecture
### Data Structure Design
- Implement structured localStorage objects for persistent data:
`
// User profile
soloLeveling_user: {
username: "Aizecs",
currentRank: "E",
daysAtCurrentRank: 0,
totalDaysTracked: 0,
currentStreak: 0,
bestStreak: 0,
lastLoginDate: "2025-03-11"
}
// Workout history (array of daily records)
soloLeveling_workouts: [
{
date: "2025-03-11",
wakeUpTime: "06:30",
completionTime: "07:15",
exercises: {
pushups: 60,
situps: 60,
squats: 45,
kegal1: 60,
kegal2: 60,
kegal3: 60,
kegal4: 60,
kegal5: 60
},
completionPercentage: 94.4
},
// Previous days...
]
// Rank progression rules
soloLeveling_rankRules: {
"E": { daysNeeded: 20, nextRank: "D" },
"D": { daysNeeded: 30, nextRank: "C" },
"C": { daysNeeded: 40, nextRank: "B" },
"B": { daysNeeded: 50, nextRank: "A" },
"A": { daysNeeded: 60, nextRank: "S" }
}
`
### Data Management Functions
- Create utility functions for data operations:
- `saveWorkout(data)`: Store daily workout data
- `getWorkoutHistory()`: Retrieve all stored workouts
- `calculateCompletion(exercises)`: Compute daily completion percentage
- `updateRank()`: Check and update rank based on streak data
- `exportData()`: Generate downloadable JSON of all data
- `importData(json)`: Replace current data with imported JSON
## Enhanced Dashboard Implementation
### Progress Dashboard
- Build comprehensive historical data visualization:
- Weekly progress chart showing daily completion percentages
- Monthly calendar view with color-coded completion indicators
- Streak counter displaying consecutive 100% days
- Projection to next rank based on current performance
### Data Visualization Components
- Implement interactive charts using vanilla JavaScript or lightweight libraries:
- Line chart for tracking completion percentage over time
- Bar chart comparing exercise completion across workout types
- Heatmap calendar showing workout consistency
- Progress bar for rank advancement
### Stats & Metrics Display
- Create a statistics panel showing:
- Current rank with visual emblem
- Days remaining until next rank
- Average completion percentage
- Best and current streaks
- Total workouts completed
- Projected date to reach S-rank
## Complete Ranking System
### Rank Progression Logic
- Implement full ranking system based on localStorage data:
- Track consecutive days at 100% completion
- Apply rank advancement rules when thresholds are met
- Store rank history with dates of advancement
- Create visual progression path from E to S rank
### Rank-Up Experience
- Design celebratory experiences for rank advancement:
- Special animation sequence when ranking up
- Sound effects and visual rewards
- Congratulatory message with achievement details
- Updated rank emblem with transitional animation
## Data Persistence & Portability
### Auto-Save Functionality
- Implement real-time saving of workout progress:
- Save partial completion as workout progresses
- Recovery system if browser closes unexpectedly
- Daily data rollover at midnight IST
### Import/Export System
- Create data portability features:
- Export button generating a downloadable JSON file
- Import interface accepting JSON files
- Data validation before import
- Merge option for combining data from multiple devices
## Advanced Gamification Elements
### Achievement System
- Implement achievement tracking in localStorage:
- "Perfect Week" for 7 consecutive 100% days
- "Early Riser" for consistently waking up before 6am
- "Milestone" achievements for reaching set thresholds
- "Rank Up" achievements for each new rank attained
### Motivational Features
- Add dynamic motivational elements:
- Solo Leveling quotes appearing based on performance patterns
- "Hunter's Journal" showing progression narrative
- Personalized insights based on workout consistency
- Visual power level representation increasing with streaks
## Offline Functionality
### Service Worker Implementation
- Enable full offline functionality:
- Cache application assets for offline use
- Queue workout data when offline
- Sync data when connection is restored
- Offline notification states
### Local Data Integrity
- Ensure data reliability:
- Version the localStorage schema
- Implement data validation on retrieval
- Add data recovery options for corruption
- Periodic reminder to export backups
## Performance Optimizations
### Storage Efficiency
- Optimize localStorage usage:
- Compress historical data for older entries
- Implement cleanup for redundant data
- Monitor storage quotas and provide warnings
- Archive older data if approaching limits
### Rendering Performance
- Ensure smooth UI performance:
- Optimize chart rendering for large datasets
- Implement pagination for extensive history
- Use efficient DOM manipulation techniques
- Optimize animations for lower-end devices
## Additional User Experience Enhancements
### Customization Options
- Allow personalization stored in localStorage:
- Custom exercise goals (modify rep targets)
- Interface theme options (light/dark mode)
- Notification preferences
- Display density settings
### Progress Insights
- Provide intelligent insights from workout data:
- Identify patterns in workout timing
- Highlight consistency improvements
- Show correlation between wake-up time and completion
- Recognize personal records and achievements
This comprehensive Part 2 implementation uses localStorage for all data persistence while providing advanced features typically found in database-backed applications. The system will work entirely client-side with full offline support and data portability through the export/import system.
After few iteration, This is my final output, Checkout my amazing application, all setup with backend authentication and all user data saved in supabase database. Only, verified user got sign up, so this is good as for sign up interface.
https://solo-fitness-tracker.netlify.app
See, how amazing solo leveling fitness tracker application is and track your solo leveling exercise, sleep pattern and daily sleeping hours and also maintain your strike, see users in leaderboards from different countries.
Let me know, how you like this MVP?
Do you want complete all prompts to build such a MVP? Join my community of product builders.
What you get being part of community?
- Access to all top-tier prompt for new MVP I'm budilng
- Top notch resources for building and top curated advices from experts
- complete product marketing guide from zero to get users
Alright, see you in next part of series with new mvp building. I'm also launching this web app on instagram this week.
Happy Building with Lovable.dev.
Top comments (0)