-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (52 loc) · 2.07 KB
/
Copy pathindex.html
File metadata and controls
57 lines (52 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>To-Do List</title>
<link rel="stylesheet" href="styles.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<header>
<h1><i class="fas fa-tasks"></i> My To-Do List</h1>
</header>
<main>
<div class="input-section">
<div class="input-container">
<input type="text" id="taskInput" placeholder="Add a new task..." maxlength="100">
<button id="addBtn" aria-label="Add task">
<i class="fas fa-plus"></i>
</button>
</div>
</div>
<div class="filter-section">
<div class="filter-buttons">
<button class="filter-btn active" data-filter="all">All</button>
<button class="filter-btn" data-filter="pending">Pending</button>
<button class="filter-btn" data-filter="completed">Completed</button>
</div>
<div class="task-counter">
<span id="taskCount">0 tasks remaining</span>
</div>
</div>
<div class="tasks-section">
<ul id="taskList" class="task-list">
<!-- Tasks will be dynamically added here -->
</ul>
<div id="emptyState" class="empty-state">
<i class="fas fa-clipboard-list"></i>
<p>No tasks yet. Add one above!</p>
</div>
</div>
<div class="actions-section">
<button id="clearCompleted" class="clear-btn">
<i class="fas fa-trash"></i> Clear Completed
</button>
</div>
</main>
</div>
<script src="script.js"></script>
</body>
</html>