-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtodolist.html
More file actions
67 lines (59 loc) · 1.16 KB
/
todolist.html
File metadata and controls
67 lines (59 loc) · 1.16 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
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html>
<head>
<title>Todo List</title>
<link rel="stylesheet" href="styles/11-todo-list.css">
</head>
<style>
body {
font-family: Arial;
}
.todo-grid,
.todo-input-grid {
display: grid;
grid-template-columns: 200px 150px 100px;
column-gap: 10px;
row-gap: 10px;
align-items: center;
}
.todo-input-grid {
margin-bottom: 10px;
align-items: stretch;
}
.name-input,
.due-date-input {
font-size: 15px;
padding: 6px;
}
.add-todo-button {
background-color: green;
color: white;
border: none;
font-size: 15px;
cursor: pointer;
}
.delete-todo-button {
background-color: darkred;
color: white;
border: none;
font-size: 15px;
cursor: pointer;
padding-top: 10px;
padding-bottom: 10px;
}
</style>
<body>
<p>Todo List</p>
<div class="todo-input-grid">
<input placeholder="Todo name"
class="js-name-input name-input">
<input type="date"
class="js-due-date-input due-date-input">
<button onclick="
addTodo();
" class="add-todo-button">Add</button>
</div>
<div class="js-todo-list todo-grid"></div>
<script src="todolist.js"></script>
</body>
</html>