-
Notifications
You must be signed in to change notification settings - Fork 22
/
index.html
160 lines (135 loc) · 3.37 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Vanilla Todos</title>
<style>
html {
box-sizing: border-box;
}
*,
*:after,
*:before {
box-sizing: inherit;
}
body {
margin: 0;
padding: 0;
font: 14px 'Oxygen', Helvetica;
background: #ececec;
}
header {
height: 60px;
background: #512da8;
color: #fff;
display: flex;
align-items: center;
padding: 0 40px;
box-shadow: 1px 2px 6px 0px #777;
}
h1 {
margin: 0;
}
.banner {
text-decoration: none;
color: #fff;
cursor: pointer;
}
main {
display: flex;
justify-content: center;
height: calc(100vh - 140px);
padding: 20px 40px;
overflow-y: auto;
}
input {
width: 200px;
height: 40px;
/* border-radius: 20px; */
border: none;
padding-left: 20px;
}
button {
background: #512da8;
border: 2px solid #512da8;
cursor: pointer;
box-shadow: 1px 1px 3px 0px #777;
color: #fff;
padding: 10px 15px;
/* border-radius: 20px; */
margin-top: 20px;
}
.button {
display: flex;
justify-content: center;
}
@media screen and (min-width: 451px) {
body {
font-size: 18px;
}
input {
width: 280px;
}
button {
margin-top: 0;
}
}
ul {
list-style: none;
padding: 0;
}
li {
display: flex;
justify-content: space-between;
padding: 20px;
background: #fff;
box-shadow: 1px 1px 3px 0px #777;
}
.todo-item {
margin: 20px 0;
}
.add-todo-section {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.todo-item-name {
display: flex;
justify-content: center;
align-items: center;
}
li:hover {
box-shadow: 1px 0px 1px 0px #777;
}
button:hover {
box-shadow: none;
}
footer {
height: 40px;
background: #2d3850;
color: #fff;
display: flex;
align-items: center;
padding: 40px;
}
</style>
</head>
<body>
<body>
<header>
<h3><a class="banner"> Vanilla Todos PWA </a></h3>
</header>
<main id="app"></main>
<footer>
<span>© 2019 Anurag Majumdar - Vanilla Todos PWA</span>
</footer>
<script async src="<%= htmlWebpackPlugin.files.chunks.main.entry %>"></script>
<noscript>
This site uses JavaScript. Please enable JavaScript in your
browser.
</noscript>
</body>
</body>
</html>