-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
493 lines (473 loc) · 23 KB
/
index.html
File metadata and controls
493 lines (473 loc) · 23 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
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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
<!doctype html>
<html lang="en" data-bs-theme="light">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TaskWave – Installable Task Management Web-App</title>
<meta
name="description"
content="TaskWave is a modern, installable task management web app that helps users stay organized and productive — even without an internet connection."
/>
<meta
name="keywords"
content="TaskWave, to-do list, task manager, installable web app, offline tasks, reminders, overdue notifications, dark mode, light mode, IndexedDB, Bootstrap, JavaScript"
/>
<meta name="theme-color" content="#0d6efd" />
<!-- Favicon / App Icons -->
<link rel="icon" href="./images/logo.png" type="image/png" />
<link rel="apple-touch-icon" href="./images/logo.png" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta
property="og:title"
content="TaskWave – Installable Task Management Web-App"
/>
<meta
property="og:description"
content="TaskWave is a modern, installable task management web app that helps users stay organized and productive — even without an internet connection."
/>
<meta
property="og:url"
content="https://ahmed-maher77.github.io/TaskWave-Installable-Web-based-Task-Manager/"
/>
<meta
property="og:image"
content="https://ahmed-maher77.github.io/TaskWave-Installable-Web-based-Task-Manager/images/screenshots/desktop.png"
/>
<meta property="og:site_name" content="TaskWave" />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta
name="twitter:title"
content="TaskWave – Installable Task Management Web-App"
/>
<meta
name="twitter:description"
content="TaskWave is a modern, installable task management web app that helps users stay organized and productive — even without an internet connection."
/>
<meta
name="twitter:image"
content="https://ahmed-maher77.github.io/TaskWave-Installable-Web-based-Task-Manager/images/screenshots/desktop.png"
/>
<!-- Bootstrap -->
<link
rel="stylesheet"
href="packages/bootstrap-5.3.8-dist/css/bootstrap.min.css"
/>
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet"
/>
<!-- Font Awesome -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css"
integrity="sha512-2SwdPD6INVrV/lHTZbO2nodKhrnDdJK9/kg2XD1r9uGqPo1cUbujc+IYdlYdEErWNu69gVcYgdxlmVmzTWnetw=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<!-- Custom CSS -->
<link rel="stylesheet" href="style.css" />
<!-- manifest.json -->
<link rel="manifest" href="./manifest.json" />
</head>
<body>
<!-- Initial Loader -->
<div id="initial-loader" class="initial-loader">
<div class="initial-loader-content text-center">
<div class="spinner-border text-primary mb-3" role="status">
<span class="visually-hidden">Loading...</span>
</div>
<h2 class="text-primary mb-2">To Do List</h2>
<p class="text-muted mb-0">Preparing your tasks...</p>
</div>
</div>
<!-- Toasts / Notifications Container -->
<div id="notifications-container" class="notifications-container"></div>
<!-- Main Header -->
<header class="py-4 mb-3">
<div
class="container d-flex justify-content-center align-items-center gap-2 flex-wrap"
>
<h1 class="text-primary fs-head1 mb-0 text-center reveal-on-scroll">
Manage your tasks
</h1>
<div class="header-actions d-flex align-items-center gap-2">
<button
id="install-btn"
type="button"
class="btn btn-primary btn-sm d-flex align-items-center justify-content-center d-none"
aria-label="Install app"
>
<i class="fa-solid fa-download"></i>
</button>
<button
id="theme-toggle"
type="button"
class="btn btn-outline-secondary btn-sm d-flex align-items-center justify-content-center"
aria-label="Toggle dark/light mode"
title="Toggle dark/light mode"
>
<i class="fa-regular fa-moon"></i>
</button>
</div>
</div>
</header>
<!-- Content -->
<main>
<div class="container">
<form
id="tasks-form"
class="mx-auto p-4 rounded bg-body-secondary reveal-on-scroll"
>
<div class="row gap-4">
<h2 class="lobster text-center mb-2">
Add New To Do...
</h2>
<div class="fields">
<div class="row">
<!-- Task Title -->
<div class="mb-3">
<label
for="exampleInputTaskTitle"
class="form-label"
>Task Title:</label
>
<input
type="text"
name="task-title"
class="form-control"
id="exampleInputTaskTitle"
aria-describedby="taskTitleHelp"
placeholder="Enter task title..."
required
/>
<p class="invalid-feedback d-none">
Task title is required.
</p>
</div>
<!-- Task Description -->
<div class="mb-3">
<label
for="exampleInputTaskDescription"
class="form-label"
>Task Description:</label
>
<textarea
name="task-description"
class="form-control"
id="exampleInputTaskDescription"
rows="3"
placeholder="Enter task description..."
></textarea>
<div
id="taskDescriptionHelp"
class="form-text"
>
Task description is optional.
</div>
</div>
<!-- Advanced task options toggle -->
<div class="mb-2">
<button
type="button"
id="toggle-advanced-fields"
class="btn btn-link p-0 small advanced-fields-toggle d-flex align-items-center gap-1"
aria-expanded="false"
>
<span class="advanced-fields-toggle-text">Show additional options</span>
<i class="fa-solid fa-angle-down trans-3"></i>
</button>
</div>
<!-- Advanced Task Options (collapsed by default) -->
<div
id="advanced-task-options"
class="advanced-task-options"
>
<!-- Task Priority -->
<div class="mb-3">
<label
for="task-priority"
class="form-label"
>Priority:</label
>
<select
class="form-select"
id="task-priority"
name="task-priority"
>
<option value="Low">Low</option>
<option value="Medium" selected>
Medium
</option>
<option value="High">High</option>
</select>
<div class="form-text">
Choose how important this task is.
</div>
</div>
<!-- Task Tags -->
<div class="mb-3">
<label
for="task-tags"
class="form-label"
>Tags (optional):</label
>
<input
type="text"
class="form-control"
id="task-tags"
name="task-tags"
placeholder="e.g. Work, Personal, Urgent"
/>
<div class="form-text">
Separate multiple tags with commas.
</div>
</div>
</div>
<!-- Task Time -->
<div
class="time-options mt-3 d-flex flex-column gap-2"
>
<label
for="meeting-time"
class="form-label text-center w-100 fs-3 lobster"
>Select Date and Time:</label
>
<div
class="tabs d-flex align-items-center rounded-pill mx-auto w-100 border border-2 border-secondary"
>
<button
id="no-time"
class="btn btn-secondary rounded-0 rounded-start-pill border-0 py-2 w-100"
>
No Time
</button>
<button
id="schedule"
class="active btn btn-secondary rounded-0 rounded-end-pill border-0 py-2 w-100"
>
Schedule
</button>
</div>
<div class="mb-3 mt-1 pt-1 position-relative">
<input
type="datetime-local"
class="form-control"
id="task-time"
name="task-time"
placeholder="mm/dd/yyyy - hh:mm:ss"
/>
<p class="invalid-feedback d-none">
Please select a date and time.
</p>
<p
class="text-muted d-none task-time-text text-center"
>
Your task won't be limited to a
specific time.
</p>
</div>
</div>
</div>
</div>
<!-- Add Task Button -->
<div class="btns">
<div class="row">
<button
class="submit-form-btn btn btn-primary mt-4 padd-block-8 d-flex align-items-center justify-content-center gap-2"
type="submit"
disabled
>
Add Task <i class="fa-solid fa-plus"></i>
</button>
</div>
</div>
</div>
</form>
<!-- Notification Switcher -->
<section
class="notification-switcher mx-auto my-4 d-flex justify-content-start"
>
<div class="form-check form-switch">
<input
class="form-check-input"
type="checkbox"
role="switch"
id="switchCheckChecked"
/>
<label
class="form-check-label ms-2"
for="switchCheckChecked"
>Enable Notifications</label
>
</div>
</section>
</div>
</main>
<!-- Tasks Container -->
<section id="tasks-container" class="my-5 pt-2 mx-auto w-100">
<div class="container w-100">
<h2 class="lobster text-center mb-3 reveal-on-scroll">
Your To Do List
</h2>
<!-- Tasks Filters -->
<div class="tasks-filters-wrapper">
<div
class="tasks-filters btn-group d-flex justify-content-center"
role="group"
aria-label="Filter tasks"
>
<button
type="button"
class="btn btn-outline-primary active"
data-filter="all"
>
<span class="filter-text">All</span>
<span
class="badge text-bg-secondary filter-badge"
data-status="all"
>
0
</span>
</button>
<button
type="button"
class="btn btn-outline-primary"
data-filter="pending"
>
<span class="filter-text">Pending</span>
<span
class="badge text-bg-primary filter-badge"
data-status="pending"
>
0
</span>
</button>
<button
type="button"
class="btn btn-outline-primary"
data-filter="completed"
>
<span class="filter-text">Completed</span>
<span
class="badge text-bg-success filter-badge"
data-status="completed"
>
0
</span>
</button>
<button
type="button"
class="btn btn-outline-primary"
data-filter="overdue"
>
<span class="filter-text">Overdue</span>
<span
class="badge rounded-pill text-bg-danger ms-1 filter-badge"
data-status="overdue"
>
0
</span>
</button>
</div>
<!-- Advanced filters toggle -->
<div class="text-center mt-2 d-none advanced-filters-toggle-container">
<button
type="button"
id="toggle-advanced-filters"
class="btn btn-link p-0 small advanced-filters-toggle d-flex align-items-center gap-1 mx-auto"
aria-expanded="false"
>
<span class="advanced-filters-toggle-text">Show advanced filters</span>
<i class="fa-solid fa-angle-down trans-3"></i>
</button>
</div>
<!-- Advanced list filters: priority, tag, sort -->
<div id="advanced-filters-container" class="tasks-advanced-filters row g-2 align-items-center mt-2">
<div class="col-12 col-md-4">
<label
for="filter-priority"
class="form-label form-label-sm mb-1"
>Priority</label
>
<select
id="filter-priority"
class="form-select form-select-sm"
>
<option value="all" selected>All priorities</option>
<option value="high">High</option>
<option value="medium">Medium</option>
<option value="low">Low</option>
</select>
</div>
<div class="col-12 col-md-4">
<label
for="filter-tag"
class="form-label form-label-sm mb-1"
>Tag</label
>
<input
type="text"
id="filter-tag"
class="form-control form-control-sm"
placeholder="e.g. Work"
/>
</div>
<div class="col-12 col-md-4">
<label
for="sort-mode"
class="form-label form-label-sm mb-1"
>Sort by</label
>
<select
id="sort-mode"
class="form-select form-select-sm"
>
<option value="default" selected>Default order</option>
<option value="priority">Priority (High → Low)</option>
</select>
</div>
</div>
</div>
<!-- Weekly completed indicator -->
<div
id="task-weekly-summary"
class="task-weekly-summary text-center my-3 small text-muted d-none"
>
Tasks completed this week: 0
</div>
<ul class="list-group gap-2">
<!-- the tasks will be added dynamically using JS -->
</ul>
</div>
</section>
<!-- Footer -->
<footer class="app-footer mt-auto py-3">
<div
class="container d-flex flex-column flex-md-row justify-content-between align-items-center gap-1 text-center text-md-start"
>
<p class="mb-0 small d-flex flex-wrap justify-content-center gap-1">
Copyright ©
<span id="copyright-year"></span>
Designed and Developed by
<a
href="https://www.linkedin.com/in/ahmed-maher-algohary"
title="About Developer"
target="_blank"
rel="noreferrer"
>
Ahmed Maher
</a>
</p>
<span class="mb-0 small text-muted">All Rights Reserved</span>
</div>
</footer>
<script src="./packages/indexedDB.js"></script>
<script src="./js/app.js" type="module"></script>
<script src="./js/pushNotificationsHandler.js"></script>
</body>
</html>