A fun, interactive potty training timer application for toddlers built with React, Vite, and Pico CSS.
- Customizable timer intervals (45, 30, 15, 5 minutes)
- Custom time input option
- Star reward system
- Interactive "potty time" alarm with animations
- Sound effects for all interactions
- Mobile-friendly design
- Select a time interval (45, 30, 15, or 5 minutes) or set a custom time
- Press the Play button to start the timer
- When the timer expires, an alarm will sound and the potty screen will appear
- Click "Success!" if the potty attempt was successful (adds a star) or "Try Again" to reset the timer (with a shorter interval)
- The star counter in the top-right corner keeps track of successful attempts
View the live demo: Potty Timer
- React
- Vite
- Pico CSS (minimal, semantic CSS framework)
- Lucide React for icons
- Web Audio API for sound effects
- GitHub Pages for deployment
- Node.js (v14 or higher)
- npm or yarn
- Clone the repository:
git clone https://github.com/[your-github-username]/potty-timer.git
cd potty-timer- Install dependencies:
npm install- Start the development server:
npm run dev- Build for production:
npm run build- Edit the
animations.cssfile to change animations - Modify the hooks in the
hooksdirectory to change behavior - Update components in the
componentsdirectory to change UI
MIT