-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
162 lines (142 loc) · 3.32 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
161
162
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>To-Do List</title>
<link rel="stylesheet" href="bootstrap.cssh">
<style>
@import url('https://fonts.googleapis.com/css?family=Gochi+Hand');
body {
background-color: #a39bd2;
min-height: 70vh;
padding: 1rem;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
color: #494a4b;
font-family: 'Gochi Hand', cursive;
text-align: center;
font-size: 130%;
}
@media only screen and (min-width: 500px) {
body {
min-height: 100vh;
}
}
.container {
width: 100%;
height: auto;
min-height: 500px;
max-width: 500px;
min-width: 250px;
background: #1f1f58;
background-image: radial-gradient(#bfc0c1 7.2%, transparent 0);/*radial gradient makes the container have a dotted background */
background-size: 25px 25px;
border-radius: 20px;
box-shadow: 4px 3px 7px 2px #00000040;
padding: 1rem;
box-sizing: border-box;
}
.heading {
display: flex;
align-items: center;
justify-content: center;
}
.heading_img {
width: 50px;
height: 50px;
margin-right: 1rem;
}
.heading_title {
font-size: 2rem;
color: #fff;
}
.form {
margin-top: 20px;
}
.form_label {
display: block;
font-size: 1.5rem;
color: #fff;
margin-bottom: 10px;
}
.form_input {
width: 100%;
padding: 10px;
border: none;
border-radius: 5px;
font-size: 1rem;
box-sizing: border-box;
outline: none;
}
.form_input:focus {
border: solid 3px #a5d5e6;
}
@media only screen and (min-width: 500px) {
.form_input {
width: 60%;
}
}
.button {
background: none;
border: none;
transform: rotate(4deg);
transform-origin: center;
font-family: 'Gochi Hand', cursive;
padding: 10px 20px;
background-color: #ff6f61;
color: #fff;
font-size: 1rem;
border-radius: 5px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}
.button:hover {
background-color: #ff5733;
}
.button:focus {
outline: none;
}
.toDoList {
list-style: none;
padding: 0;
margin: 20px 0 0;
}
.toDoList li {
background: #fff;
color: #494a4b;
padding: 10px;
border-radius: 5px;
margin-bottom: 10px;
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
}
.toDoList li:hover {
text-decoration: line-through;
text-decoration-color: #ff6f61;
}
</style>
</head>
<body>
<section class="container">
<div class="heading">
<img class="heading_img" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/756881/laptop.svg" alt="Laptop Image">
<h1 class="heading_title">To-Do List</h1>
</div>
<form class="form">
<div>
<label class="form_label" for="todo">Today I need to ...</label>
<input class="form_input" type="text" id="todo" name="to-do" size="30" required>
</div>
<button class="button"><span>Submit</span></button>
</form>
<div>
<ul class="toDoList"></ul>
<ul class="toDoList"></ul>
</div>
</section>
<script src="script.js"></script>
</body>
</html>