-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
279 lines (262 loc) · 9.89 KB
/
home.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
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/styles.css" />
<link
href="https://fonts.googleapis.com/css2?family=Playwrite+MX:[email protected]&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Playwrite+MX:[email protected]&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet"
/>
<script
src="https://code.jquery.com/jquery-3.7.1.min.js"
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
crossorigin="anonymous"
></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-color/2.1.2/jquery.color.min.js"></script>
<title>Todo-Home</title>
</head>
<body>
<section id="todo-list">
<div id="todo-top" class="flex align-center mb-30">
<h1 class="lg-txt" id="greeting-msg"></h1>
<div class="flex align-center gap-10" id="add-new-task">
<button class="flex align-center gap-10" style="font-weight: 600">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-plus-lg"
viewBox="0 0 16 16"
>
<path
fill-rule="evenodd"
d="M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2"
/>
</svg>
</button>
</div>
</div>
<div id="todo-details" class="grid">
<button id="category-menu" class="flex align-center gap-10 mb-30">
Menu
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-menu-app"
viewBox="0 0 16 16"
>
<path
d="M0 1.5A1.5 1.5 0 0 1 1.5 0h2A1.5 1.5 0 0 1 5 1.5v2A1.5 1.5 0 0 1 3.5 5h-2A1.5 1.5 0 0 1 0 3.5zM1.5 1a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5zM0 8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm1 3v2a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2zm14-1V8a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v2zM2 8.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5m0 4a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5"
/>
</svg>
</button>
<div class="todo-details-items flex-col align-center" id="categories">
<div class="flex-col gap-10">
<button class="flex align-center gap-10" id="open-cat">
Create Tag
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-plus-lg"
viewBox="0 0 16 16"
>
<path
fill-rule="evenodd"
d="M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2"
/>
</svg>
</button>
<button id="clear-filter">Clear filter</button>
<div id="category-list" class="align-center"></div>
</div>
<div>
<div class="flex align-center justify-center mb-30">
<input type="checkbox" name="" id="done-tasks" />
<span style="font-weight: 300">Hide done tasks</span>
</div>
<div
class="flex align-center justify-center mt-20"
id="todo-img"
></div>
</div>
</div>
<div
class="todo-details-items flex gap-20 justify-center"
id="todo-items"
>
<div id="getstarted" class="flex-col justify-center align-center">
<img src="images/Creative thinking-pana.svg" alt="" width="100%" />
<p>Create a <b>Tag</b> to add new <b>Tasks</b></p>
</div>
</div>
</div>
<!-- add categories -->
<div id="add-categories" class="flex justify-center align-center">
<div id="add-categories-details" class="flex-col align-center gap-20">
<span id="close" class="flex align-center gap-10"
>Close
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-x-lg"
viewBox="0 0 16 16"
>
<path
d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"
/></svg
></span>
<form
action=""
id="category-form"
class="flex-col justify-center align-center gap-20"
>
<p class="error-msg" id="cat-error">Enter a category</p>
<label for="category-input">Create Category</label>
<input
type="text"
placeholder="Enter Name"
id="category-input"
class="right-format"
/>
<div
id="select-color"
class="flex justify-center align-center gap-10"
>
<span>Pick a Color</span>
<input type="color" id="color-picker" value="#758184" />
</div>
<button id="add-category" type="submit">Add Category</button>
</form>
<div id="chosen-colors" class="flex gap-20"></div>
</div>
</div>
<!-- delete categories -->
<div id="delete-categories" class="flex justify-center align-center">
<div
id="delete-categories-details"
class="flex-col align-center gap-20"
>
<span id="close-delete" class="flex align-center gap-10"
>Close
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-x-lg"
viewBox="0 0 16 16"
>
<path
d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"
/></svg
></span>
<form
action=""
id="delete-category-form"
class="flex-col justify-center align-center gap-20"
>
<p>Are you sure you want to delete</p>
<div class="flex-col justify-center align-center">
<p id="delete-tag"></p>
<div class="color-div-sm" id="delete-tag-color"></div>
</div>
<button id="delete-category" type="submit">Delete Tag</button>
</form>
</div>
</div>
<!-- delete tasks -->
<div id="delete-task" class="flex justify-center align-center">
<div id="delete-task-details" class="flex-col align-center gap-20">
<span id="close-delete-task" class="flex align-center gap-10"
>Close
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-x-lg"
viewBox="0 0 16 16"
>
<path
d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"
/></svg
></span>
<form
action=""
id="delete-task-form"
class="flex-col justify-center align-center gap-20"
>
<div
id="delete-task-details-info"
class="flex-col justify-center align-center"
>
<p>Are you sure you want to delete</p>
<p id="delete-task-title"></p>
<button id="delete-task-btn" type="submit">Delete Task</button>
</div>
</form>
</div>
</div>
<!-- add tasks -->
<div id="add-tasks" class="flex justify-center align-center">
<div id="add-tasks-details" class="flex-col align-center gap-20">
<form action="" id="task-form" class="flex-col justify-center gap-20">
<div
class="flex gap-20 align-center"
style="justify-content: space-between"
>
<span id="close-task" class="flex align-center gap-10"
>Cancel
</span>
<button id="add-task" type="submit">Add</button>
</div>
<p class="error-msg" id="add-task-error"></p>
<label for="task-title">Title</label>
<input
type="text"
id="task-title"
class="right-format"
placeholder="add a title..."
/>
<div class="flex-col">
<label for="task-details">Description</label>
<textarea
name=""
id="task-details"
cols="30"
rows="7"
class="right-format"
placeholder="add a description..."
></textarea>
</div>
<div id="list-of-tags">
<p style="font-weight: bold; color: rgb(25, 25, 25)">Tags:</p>
<div
id="availiable-categories"
class="grid align-center justify-center"
></div>
</div>
</form>
</div>
</div>
<!-- logout -->
<div id="logout">
<button id="logout-btn">LogOut</button>
</div>
</section>
<script src="js/script.js"></script>
<script src="js/home.js"></script>
</body>
</html>