-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtodo.html
More file actions
189 lines (175 loc) · 4.87 KB
/
todo.html
File metadata and controls
189 lines (175 loc) · 4.87 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
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Todo List</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<style>
body {
font-family: "Poppins", sans-serif;
background-color: #1aacb69f;
color: #fff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-image: url('http://transparenttextures.com/patterns/diagmonds.png');
background-size: 50px 50px;
}
h1 {
margin-bottom: 20px;
animation: fadeIn 2s ease-in-out;
}
nav {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 20px;
}
.button {
margin: 10px;
padding: 15px 30px;
background-color: #7a9da8;
color: #fff;
border: 1px solid #fff;
box-shadow: #e0b0b0 5px 5px 0, #fff 2px 2px 0;
border-radius: 10px;
font-size: 1em;
text-decoration: none;
text-align: center;
transition: background-color 0.3s, transform 0.3s;
}
.button:hover {
background-color: #e0b0b0;
transform: translateY(-2px);
}
.main-container {
padding: 20px;
flex: 1;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.todo-form,
.filters {
margin-bottom: 20px;
width: 80%;
max-width: 600px;
display: flex;
flex-direction: column;
align-items: center;
}
.todo-form input,
.todo-form select,
.todo-form button,
.filters select {
width: 100%;
margin: 5px 0;
padding: 10px;
border: 2px solid #fff;
background: #0a0a0a73;
color: #fff;
box-shadow: #e0b0b0 5px 5px 0, #fff 2px 2px 0;
border-radius: 5px;
}
.todo-form button {
background-color: #7a9da8;
cursor: pointer;
font-size: 1em;
transition: background-color 0.3s, transform 0.3s;
}
.todo-form button:hover {
background-color: #e0b0b0;
transform: translateY(-2px);
}
.todo-list {
width: 80%;
max-width: 600px;
margin-top: 20px;
}
.todo-item {
background: #91baf073;
margin-bottom: 10px;
padding: 10px;
border: 2px solid #fff;
box-shadow: #e0b0b0 5px 5px 0, #fff 2px 2px 0;
border-radius: 5px;
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
}
.todo-item button {
background: #0a0a0a73;
color: #fff;
border: none;
padding: 5px 10px;
cursor: pointer;
font-size: 0.8em;
margin-left: 10px;
}
.todo-item button:hover {
background: #e96767;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
</style>
</head>
<body>
<header>
<h1 class="text-6xl font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-blue-200 to-pink-200 ">Todo List</h1>
<nav>
<a href="index.html" class="button">Home</a>
</nav>
</header>
<main class="main-container">
<div class="todo-form space-y-5">
<input type="text" id="todoName" placeholder="Todo Name">
<input type="datetime-local" id="dueDate">
<select id="todoCategory">
<option value="Work">Work</option>
<option value="Personal">Personal</option>
<option value="Health">Health</option>
</select>
<select id="todoPriority">
<option value="Low">Low</option>
<option value="Medium">Medium</option>
<option value="High">High</option>
</select>
<button id="addTodo">Add Todo</button>
</div>
<div class="filters space-y-5">
<select id="filterPriority">
<option value="all">All Priorities</option>
<option value="Low">Low</option>
<option value="Medium">Medium</option>
<option value="High">High</option>
</select>
<select id="filterCategory">
<option value="all">All Categories</option>
<option value="Work">Work</option>
<option value="Personal">Personal</option>
<option value="Health">Health</option>
</select>
</div>
<div class="todo-list" id="todoList">
<!-- Todos will be dynamically added here -->
</div>
</main>
<footer class="footer p-4 text-center">
Made with ❤️ by <a href="https://github.com/DaPandamonium" onclick="event.preventDefault();">DaPanda</a>
</footer>
<script src="app.js"></script>
</body>
</html>