🎯 Learning Objectives
- Plan a complete web application
- Define project requirements
- Design user interface wireframe
- Identify needed HTML, CSS, and JavaScript
- Create project file structure
📝 Project Overview
To-Do List App: A fully functional task management application where users can add tasks, mark them complete, delete them, and see their progress. This project combines everything you've learned: HTML structure, CSS styling, Bootstrap components, and JavaScript interactivity.
✨ Required Features
1. Add New Tasks
Users can type a task and add it to the list
- Input field for task text
- Add button to submit
- Enter key support
2. Display Task List
Show all tasks in a clean, organized list
- Each task shows text
- Visual distinction between complete/incomplete
- Responsive layout
3. Mark Tasks Complete
Click on task to toggle completion
- Checkbox or click interaction
- Strike-through completed tasks
- Change visual appearance
4. Delete Tasks
Remove tasks from the list
- Delete button for each task
- Confirmation optional
- Smooth removal animation
5. Task Counter
Show number of tasks and completion status
- Total tasks count
- Completed tasks count
- Remaining tasks count
🎨 UI Wireframe
┌──────────────────────────────────────────┐
│ MY TO-DO LIST 📝 │
├──────────────────────────────────────────┤
│ │
│ [Input: Add new task... ] [+ Add] │
│ │
├──────────────────────────────────────────┤
│ │
│ □ Buy groceries [🗑️] │
│ ☑ Complete homework [🗑️] │
│ □ Call dentist [🗑️] │
│ □ Finish project [🗑️] │
│ │
├──────────────────────────────────────────┤
│ Total: 4 | Completed: 1 | Remaining: 3 │
└──────────────────────────────────────────┘
🗂️ Project File Structure
todo-list-app/
│
├── index.html (Main HTML structure)
├── style.css (Custom styles)
└── script.js (JavaScript functionality)
🧩 Technology Stack
- HTML5: Page structure, input field, task list
- Bootstrap 5: Cards, buttons, form controls, grid
- CSS3: Custom colors, animations, hover effects
- JavaScript: Add/delete/complete tasks, event handling
📋 HTML Elements Needed
My To-Do List
Total: 0
Completed: 0
Remaining: 0
🎨 CSS Styling Plan
/* Main container */
- Center on page
- Max width 600px
- White background
- Box shadow
- Rounded corners
/* Input section */
- Flexbox layout
- Full width input
- Styled button
- Padding and spacing
/* Task items */
- Flex layout for task + delete button
- Hover effect
- Completed tasks: strikethrough, gray color
- Delete button on right side
/* Stats footer */
- Flex layout
- Border top
- Background color
- Padding
⚙️ JavaScript Functions Needed
// 1. Add new task
function addTask() {
// Get input value
// Create new task element
// Add to list
// Clear input
// Update counters
}
// 2. Delete task
function deleteTask(taskElement) {
// Remove task from list
// Update counters
}
// 3. Toggle task completion
function toggleComplete(taskElement) {
// Add/remove completed class
// Update counters
}
// 4. Update statistics
function updateStats() {
// Count total tasks
// Count completed tasks
// Calculate remaining
// Update display
}
// 5. Event listeners
// - Add button click
// - Input enter key press
// - Task click for toggle
// - Delete button click
🚀 Development Steps
- Day 1 (Today): Planning, wireframe, file setup
- Day 2: Build HTML structure, add CSS styling, implement JavaScript
- Day 3: Testing, debugging, deployment to GitHub Pages
✏️ Today's Activities
- Create project folder:
todo-list-app - Create three files:
index.html,style.css,script.js - Draw your own wireframe design on paper
- List additional features you want to add (bonus features)
- Research Bootstrap components to use (cards, buttons, forms)
💡 Bonus Features (Optional)
- 🌙 Dark mode toggle
- 💾 Save tasks to localStorage (persist on page reload)
- 📅 Add due dates to tasks
- 🎨 Color-code tasks by priority
- 🔍 Search/filter tasks
- 📱 Mobile responsive design
- ✏️ Edit existing tasks
📚 Resources to Review
- Week 5: Bootstrap cards and buttons
- Week 6: DOM manipulation and arrays
- Week 7: Event handling and functions
- Bootstrap documentation: getbootstrap.com
✅ Today's Deliverable
- ✓ Project folder created:
todo-list-app - ✓ Three empty files: index.html, style.css, script.js
- ✓ Hand-drawn wireframe (photo or scan)
- ✓ Features list documented
- ✓ Technology choices identified
- ✓ Development timeline planned
- ✓ Ready to start coding tomorrow!