-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
39 lines (38 loc) · 1.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./styles/styles.css" />
<title>Vanilla Javascript todo app</title>
</head>
<body>
<button class="theme-toggler"></button>
<main class="wrapper flex flex-column gap-m">
<h2 class="align-center">Todo List</h2>
<form action="/" method="post" class="flex gap-m">
<!-- Why required attr doesn't work? -->
<input
type="text"
name="add-todo"
id="add-todo"
placeholder="Add new task..."
minlength="5"
required
/>
<button
class="with-border color-primary submit-button"
type="submit"
aria-label="add todo button"
>
add() +
</button>
</form>
<section class="todo-container flex flex-column gap-s">
<!-- #app -->
</section>
</main>
<script type="module" src="./src/app.js"></script>
</body>
</html>