-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (36 loc) · 1.36 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- displays site properly based on user's device -->
<title>Todo app</title>
<link rel="stylesheet" href="css/base.css" />
</head>
<body>
<div class="container josefin-sans-light">
<header class="flex flex-row">
<h1>Todo</h1>
<img src="images/icon-moon.svg" alt="icon-moon" />
</header>
<form onsubmit="app.onAddTodo(event, this)" class="get-new-todo flex flex-row flex-center">
<button class="checkbox">+</button>
<input type="text" placeholder="Create a new todo" />
</form>
<main>
<div class="todos"></div>
<footer class="flex flex-row">
<p class="tasks-count">3 items left</p>
<div class="sort-container flex flex-row">
<p onclick="app.onSetSort(this.innerText)">All</p>
<p onclick="app.onSetSort(this.innerText)">Active</p>
<p onclick="app.onSetSort(this.innerText)">Completed</p>
</div>
<p class="clear-completed" onclick="app.onClearCompleted()">Clear Completed</p>
</footer>
</main>
<p class="comment flex flex-center">Drag and drop to reorder list</p>
</div>
<script type="module" src="js/controller.js"></script>
</body>
</html>