I want to create a habbit tracker. I need UI screens for a mobile app where you can add a habit, list them and see your progress.
I'll create a mobile-first habit tracker app with screens for adding habits, listing them, and tracking progress.
I've created a mobile-first habit tracker app with three main screens:
Dashboard/List View
Add Habit Form
Habit Detail View
The app uses a clean, modern design with appropriate spacing for mobile interfaces. All components are fully responsive and would work well on both mobile and desktop devices.
To use this in a real application, you would need to:
Would you like me to explain any specific part of the implementation in more detail?
Separate done habits with a header, e.g. done
I'll update the habit list to separate completed habits with a header:
I've updated the habit list component to separate completed habits from incomplete ones with clear section headers. Here's what changed:
Added two new sections with headers:
Grouped the habits by their completion status:
const todoHabits = habits.filter(habit => !habit.completedToday)
const doneHabits = habits.filter(habit => habit.completedToday)Maintained all the existing functionality, including:
This organization makes it easier for users to see at a glance which habits they've completed and which ones they still need to do, improving the overall user experience of the habit tracker.