A simple and elegant web application to manage your daily tasks. Add, view, and mark tasks as completed with ease. Built with React and Vite.
- ✅ Add Tasks - Quickly add new tasks with a clean input interface
- 📋 View All Tasks - See all your tasks in one organized list
- ✔️ Mark as Completed - Check off tasks when they're done (with strikethrough effect)
- 🗑️ Delete Tasks - Remove tasks you no longer need
- 📊 Task Statistics - View total, completed, and pending task counts
- 💾 Local Storage - Tasks are automatically saved to your browser
- 📱 Responsive Design - Works perfectly on desktop, tablet, and mobile devices
- 🎨 Beautiful UI - Modern gradient background with smooth animations
- ⚡ Real-time Updates - Instant feedback as you manage your tasks
- React 19.2.0 - UI library
- Vite 7.2.4 - Fast build tool
- CSS3 - Styling with animations and gradients
- JavaScript ES6+ - Modern JavaScript
- Node.js (v14 or higher)
- npm or yarn
-
Clone the repository
git clone https://github.com/YOUR_USERNAME/task-tracker.git cd task-tracker -
Install dependencies
npm install
-
Run the development server
npm run dev
-
Open in browser
- Navigate to
http://localhost:5173 - Start adding tasks!
- Navigate to
- Type your task in the input box
- Press Enter or click the "Add Task" button
- Your task appears in the list below
- Click the checkbox next to any task to mark it as completed
- Completed tasks show a strikethrough and ✓ status badge
- Click the "Delete" button on any task to remove it permanently
- See the stats section at the top showing:
- Total: Total number of tasks
- Completed: Number of finished tasks
- Pending: Number of incomplete tasks
task-tracker/
├── src/
│ ├── App.jsx # Main application component
│ ├── index.css # Global styles
│ ├── main.jsx # Entry point
│ └── assets/ # Static assets
├── public/ # Public files
├── index.html # HTML template
├── package.json # Dependencies and scripts
├── vite.config.js # Vite configuration
└── README.md # This file
- Your tasks are automatically saved to your browser's local storage
- Reload the page and your tasks will still be there!
- Input box and button stack vertically on mobile devices
- Task list is scrollable with a custom styled scrollbar
- All content stays within screen bounds on any device size
- Gradient purple background
- Smooth transitions and animations
- Accessible keyboard navigation (press Enter to add tasks)
- Status badges for pending/completed states
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
# Run ESLint
npm run lint- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
- Mobile browsers (iOS Safari, Chrome Mobile)
This project is open source and available under the MIT License.
Feel free to fork this repository and submit pull requests for any improvements!
- Task categories/tags
- Due dates for tasks
- Search and filter functionality
- Dark mode toggle
- Task priority levels
- Export tasks to CSV/JSON
- Cloud sync with backend
If you have any questions or suggestions, feel free to open an issue!
Made with ❤️ using React & Vite
Happy task tracking! 🚀