📅 Week 8 - Day 1: To-Do List App Planning

Monday | Duration: 3 hours

🎯 Learning Objectives

📝 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

📋 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

  1. Day 1 (Today): Planning, wireframe, file setup
  2. Day 2: Build HTML structure, add CSS styling, implement JavaScript
  3. Day 3: Testing, debugging, deployment to GitHub Pages

✏️ Today's Activities

  1. Create project folder: todo-list-app
  2. Create three files: index.html, style.css, script.js
  3. Draw your own wireframe design on paper
  4. List additional features you want to add (bonus features)
  5. Research Bootstrap components to use (cards, buttons, forms)

💡 Bonus Features (Optional)

📚 Resources to Review

✅ Today's Deliverable

← Previous Course Home Next: Day 2 →