-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
100 lines (93 loc) · 2.63 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
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Another Todo App</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
/*
Color palette
#62bdff
#6296ff
#626eff
#7d62ff
#a462ff
#cb62ff
*/
body {
background-color: #62bdff;
}
#todo-container {
padding: 5px;
border-radius: 5px;
background-color: #dcdedd;
-webkit-box-shadow: 0px 0px 37px -1px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 0px 0px 37px -1px rgba(0, 0, 0, 0.75);
box-shadow: 0px 0px 37px -1px rgba(0, 0, 0, 0.75);
}
#todo-input-container {
padding: 5px;
margin-bottom: 5px;
}
/* Neat trick from Rik Schennink - https://codepen.io/rikschennink/pen/rpNGyy?editors=1100 */
.todo-input {
position: relative;
background: linear-gradient(21deg, #6296ff, #cb62ff);
padding: 3px;
display: inline-block;
border-radius: 9999em;
}
.todo-input > input {
font-size: 1.5em;
position: relative;
display: inherit;
border-radius: inherit;
margin: 0;
border: none;
outline: none;
padding: 0 0.325em;
z-index: 1;
}
.todo-button {
font-family: "Inconsolata", monospace;
color: white;
border-radius: 9999em;
outline: none;
border: none;
background: #cb62ff;
height: 1.5em;
font-size: 1.5em;
padding: 0 0.5em;
}
.todo-item {
margin-bottom: 5px;
background-color: white;
padding: 5px;
min-height: 30px;
border-radius: 5px;
border: 1px;
-webkit-box-shadow: 0px 0px 37px -12px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 0px 0px 37px -12px rgba(0, 0, 0, 0.75);
box-shadow: 0px 0px 37px -12px rgba(0, 0, 0, 0.75);
}
html {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
line-height: 1.5;
font-size: 1em;
}
</style>
</head>
<body>
<div id="todo-container">
<form id="todo-input-container" onsubmit="addTodo(); return false;">
<span class="todo-input"> <input id="todoText" type="text" /> </span>
<button type="submit" class="todo-button">+</button>
</form>
<div id="todos"></div>
</div>
<script src="./dist/bundle.js"></script>
</body>
</html>