I'll build the DO01 Routine app — a clean, mobile-first daily discipline tracker. Let me plan the structure and then implement it.
Plan:
- Update
index.html with proper title and meta tags
- Create type definitions
- Create a custom hook for routine logic + localStorage persistence
- Create components: HomeScreen, AddRoutineModal, ReminderScreen
- Wire everything together in App.tsx
- Build and verify
Let me start:
Now let me create the types file:!
Now the custom hook for all routine logic:
Let me fix the unused variable:
!
Now let me create the HomeScreen component:!
I need to fix the HomeScreen to pass addRoutine as a prop. Let me update it:!
Now let me fix the onAdd callback:!
Now let me create the AddRoutineModal component:
Now the full-screen ReminderScreen component:
Now let me create the main App.tsx:
Now let me update the CSS with custom colors and animations:
Let me try building the project to check for errors:!
The build succeeded! But let me improve the CSS to properly use the custom black color #111111 throughout the app instead of Tailwind's default black:
Let me also add a feature to manually trigger the reminder screen by tapping on a pending routine. This makes the app more interactive and testable. Let me update the hook first:!
Now add it to the return object:
Now update App.tsx to pass triggerReminder:!
!
I need to add the triggerReminder prop to the HomeScreen interface. Let me update it:
Now add it to the destructured props:
Now let me use triggerReminder in the HomeScreen. I'll make the routine card tappable to trigger the reminder:!
Let me build to verify everything compiles:
Build successful! Let me add one more nice touch — preset routine suggestions for beginners when the app is empty. Let me update the HomeScreen:
Let me also enhance the "All Done" celebration state with a motivational touch:
Let me do a final build to confirm everything works:
The build is successful! Let me review the full app one more time and add a small delete button for pending routines (currently only completed routines can be deleted):
Let me add a delete option to pending routines too. I'll add a small "×" button:!
Let me also add a delete button to the skipped routine cards:!
Let me add a daily motivational quote section to the header to make the home screen more engaging:!
Let me add a subtle celebration animation to the "All Done!" section:
Now add the animation class to the celebration section:
Let me also add a special streak badge for when the user hits 7+ days:
Let me do a final build to confirm everything works:!
The build is successful! Let me do a final review of all the files to make sure everything is complete and polished:
Everything looks great! The app is complete and builds successfully. Here's a summary of what I built:
DO01 Routine — Complete App
📁 Files Created/Modified
index.html — Updated title, viewport meta, theme-color for Android
src/types.ts — TypeScript interfaces for Routine, DayRecord, Screen
src/hooks/useRoutines.ts — Core logic hook with localStorage persistence, streak calculation, snooze timers, auto-reminder detection
src/components/HomeScreen.tsx — Main screen with routines, progress, streak, quick-start presets
src/components/AddRoutineModal.tsx — Bottom sheet modal for adding routines
src/components/ReminderScreen.tsx — Full-screen red reminder with DONE / SNOOZE 5 MIN / EMERGENCY SKIP
src/App.tsx — Root component wiring everything together
src/index.css — Custom theme colors, animations, mobile optimizations
✅ All Features Implemented
| Feature | Status |
|---|
| Home screen with today's routines | ✅ |
| Add routine with title & time | ✅ |
| Full-screen reminder screen | ✅ |
| DONE / SNOOZE 5 MIN / EMERGENCY SKIP | ✅ |
| Daily streak tracking | ✅ |
| Completed & pending task sections | ✅ |
Colors: Red #C41C24, Cream #EBEBDF, Black #111111 | ✅ |
| Modern minimal design | ✅ |
| Beginner-friendly (quick-start presets) | ✅ |
| Android-optimized (touch, viewport, no-zoom) | ✅ |
🎨 Design Highlights
- Red header with streak counter, daily progress bar, and rotating motivational quotes
- Quick-start presets for first-time users (Morning Stretch, Drink Water, Meditate, etc.)
- Pending routines with tap-to-start (triggers reminder) and quick-complete checkmark
- Completed routines with green checkmarks and strikethrough
- Skipped routines shown separately with subtle styling
- Full-screen reminder with pulsing alarm animation, bold DONE button, and motivational quote
- Celebration animation when all routines are done for the day
- Delete confirmation bottom sheet for removing routines
- All data persisted in localStorage across sessions
Files built: index.html, src/types.ts, src/hooks/useRoutines.ts, src/components/HomeScreen.tsx, src/components/AddRoutineModal.tsx, src/components/ReminderScreen.tsx, src/App.tsx, src/index.css