-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
420 lines (386 loc) · 21.9 KB
/
index.html
File metadata and controls
420 lines (386 loc) · 21.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#1a1a2e">
<title>FirstThingsFirst - Priority Matrix</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<!-- Uncomment the line below if serving over HTTP/HTTPS for PWA support -->
<!-- <link rel="manifest" href="manifest.json"> -->
<link rel="stylesheet" href="app.css">
</head>
<body>
<div class="header">
<div class="header-brand">
<svg class="logo" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
<!-- Q1 - Top Left - Green -->
<rect x="5" y="5" width="40" height="40" rx="6" fill="#AEE7B1" opacity="0.9"/>
<text x="25" y="33" font-family="Arial" font-weight="bold" font-size="20" text-anchor="middle" fill="#0a0a15">1</text>
<!-- Q2 - Top Right - Blue -->
<rect x="55" y="5" width="40" height="40" rx="6" fill="#ABBEE1" opacity="0.9"/>
<text x="75" y="33" font-family="Arial" font-weight="bold" font-size="20" text-anchor="middle" fill="#0a0a15">2</text>
<!-- Q3 - Bottom Left - Purple -->
<rect x="5" y="55" width="40" height="40" rx="6" fill="#BCB5F0" opacity="0.9"/>
<text x="25" y="83" font-family="Arial" font-weight="bold" font-size="20" text-anchor="middle" fill="#0a0a15">3</text>
<!-- Q4 - Bottom Right - Yellow -->
<rect x="55" y="55" width="40" height="40" rx="6" fill="#F5D26C" opacity="0.9"/>
<text x="75" y="83" font-family="Arial" font-weight="bold" font-size="20" text-anchor="middle" fill="#0a0a15">4</text>
<!-- Center cross lines -->
<line x1="50" y1="10" x2="50" y2="90" stroke="#e8e8f0" stroke-width="2" opacity="0.3"/>
<line x1="10" y1="50" x2="90" y2="50" stroke="#e8e8f0" stroke-width="2" opacity="0.3"/>
</svg>
<h1>FirstThingsFirst</h1>
</div>
<div class="toolbar">
<button class="btn btn-primary" id="addBtn">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"/>
</svg>
Add
</button>
<!-- View Dropdown -->
<div class="dropdown">
<button class="btn" id="viewDropdownBtn">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"/>
</svg>
<span id="viewLabel">View: Quadrant</span>
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" style="width: 12px; height: 12px;">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
</svg>
</button>
<div class="dropdown-content" id="viewDropdown">
<button class="dropdown-item" data-view="quadrant">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 5a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM14 5a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1V5zM4 15a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1H5a1 1 0 01-1-1v-4zM14 15a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-4z"/>
</svg>
Quadrant
</button>
<button class="dropdown-item" data-view="category">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"/>
</svg>
Category
</button>
<button class="dropdown-item" data-view="project">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"/>
</svg>
Project
</button>
</div>
</div>
<input type="file" id="importFile" accept=".json">
<!-- Settings Dropdown -->
<div class="dropdown">
<button class="btn" id="settingsDropdownBtn">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"/>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>
</svg>
Settings
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" style="width: 12px; height: 12px;">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
</svg>
</button>
<div class="dropdown-content" id="settingsDropdown">
<button class="dropdown-item" id="themeToggleBtn">
<svg id="themeIconDropdown" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"/>
</svg>
<span id="themeTextDropdown">Switch to Light Theme</span>
</button>
<div class="dropdown-divider"></div>
<button class="dropdown-item" id="listBtn">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"/>
</svg>
Manage Lists
</button>
<button class="dropdown-item" id="settingsBtn">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"/>
</svg>
Manage Quadrants
</button>
<div class="dropdown-divider"></div>
<button class="dropdown-item" id="exportBtn">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"/>
</svg>
Export Data
</button>
<button class="dropdown-item" id="importBtn">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L9 8m4-4v12"/>
</svg>
Import Data
</button>
<div class="dropdown-divider"></div>
<button class="dropdown-item" id="clearDataBtn" style="color: #ff3b30;">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"/>
</svg>
Clear All Data
</button>
</div>
</div>
</div>
</div>
<div class="container">
<!-- Quadrant View -->
<div class="matrix" id="matrixView">
<div class="quadrant quadrant-1" data-quadrant="1">
<div class="quadrant-header">
<div>
<div class="quadrant-title">Urgent & Important</div>
</div>
<div class="quadrant-label" id="q1Label">Do This</div>
</div>
<div class="quadrant-items" id="q1Items"></div>
</div>
<div class="quadrant quadrant-2" data-quadrant="2">
<div class="quadrant-header">
<div>
<div class="quadrant-title">Less Urgent & Important</div>
</div>
<div class="quadrant-label" id="q2Label">Schedule This</div>
</div>
<div class="quadrant-items" id="q2Items"></div>
</div>
<div class="quadrant quadrant-3" data-quadrant="3">
<div class="quadrant-header">
<div>
<div class="quadrant-title">Urgent & Less Important</div>
</div>
<div class="quadrant-label" id="q3Label">Assign This</div>
</div>
<div class="quadrant-items" id="q3Items"></div>
</div>
<div class="quadrant quadrant-4" data-quadrant="4">
<div class="quadrant-header">
<div>
<div class="quadrant-title">Less Urgent & Less Important</div>
</div>
<div class="quadrant-label" id="q4Label">Consider This</div>
</div>
<div class="quadrant-items" id="q4Items"></div>
</div>
</div>
<!-- Category View -->
<div class="list-view" id="categoryView"></div>
<!-- Project View -->
<div class="list-view" id="projectView"></div>
</div>
<!-- Add/Edit Task Modal -->
<div class="modal" id="taskModal">
<div class="modal-content">
<div class="modal-header">
<h2 id="modalTitle">Add Task</h2>
<button class="close-btn" id="closeTaskModal">×</button>
</div>
<div class="modal-body">
<form id="taskForm">
<input type="hidden" id="taskId">
<div class="form-group">
<label for="taskTitle">Title</label>
<input type="text" id="taskTitle" maxlength="256" required autofocus>
</div>
<div class="form-group">
<label for="taskNotes">Notes (Markdown)</label>
<textarea id="taskNotes"></textarea>
</div>
<div class="form-group">
<label>Priority</label>
<div class="checkbox-group">
<div class="checkbox-item">
<input type="checkbox" id="taskUrgent">
<label for="taskUrgent">Urgent</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="taskImportant">
<label for="taskImportant">Important</label>
</div>
</div>
</div>
<div class="form-group">
<label for="taskCategory">Category</label>
<select id="taskCategory">
<option value="">None</option>
</select>
</div>
<div class="form-group">
<label for="taskProject">Project</label>
<select id="taskProject">
<option value="">None</option>
</select>
</div>
<div class="form-group">
<label for="taskDueDate">Due Date</label>
<input type="date" id="taskDueDate">
</div>
<div class="form-group">
<label>Status</label>
<div class="checkbox-group">
<div class="checkbox-item">
<input type="checkbox" id="taskRecurring">
<label for="taskRecurring">Recurring</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="taskCompleted">
<label for="taskCompleted">Completed</label>
</div>
</div>
</div>
<div class="form-group hidden" id="taskDatesGroup">
<label>Task History</label>
<div class="task-dates-grid">
<div>
<div class="date-field-label">Created</div>
<input type="text" id="taskCreatedDate" readonly class="readonly-input">
</div>
<div>
<div class="date-field-label">Modified</div>
<input type="text" id="taskModifiedDate" readonly class="readonly-input">
</div>
<div id="taskCompletedDateContainer" class="hidden">
<div class="date-field-label">Completed</div>
<input type="text" id="taskCompletedDate" readonly class="readonly-input">
</div>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<div class="modal-actions">
<button type="button" class="btn" id="cancelTaskBtn">Cancel</button>
<button type="button" class="btn delete-btn hidden" id="deleteTaskBtn">Delete</button>
<button type="submit" class="btn btn-primary" id="saveTaskBtn">Save</button>
</div>
</div>
</div>
</div>
<!-- Lists Management Modal -->
<div class="modal" id="listsModal">
<div class="modal-content">
<div class="modal-header">
<h2>Manage Lists</h2>
<button class="close-btn" id="closeListsModal">×</button>
</div>
<div class="modal-body">
<div class="lists-section-spacing">
<h3 class="lists-section-title" style="margin-bottom: 1rem;">Categories</h3>
<div id="categoriesList" class="list-items"></div>
<button class="btn btn-primary full-width-btn" id="addCategoryBtn" style="margin-top: 1rem; margin-bottom: 1rem;">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" class="small-icon">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"/>
</svg>
Add Category
</button>
</div>
<div>
<h3 class="lists-section-title" style="margin-bottom: 1rem;">Projects</h3>
<div id="projectsList" class="list-items"></div>
<button class="btn btn-primary full-width-btn" id="addProjectBtn" style="margin-top: 1rem; margin-bottom: 1rem;">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" class="small-icon">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"/>
</svg>
Add Project
</button>
</div>
</div>
</div>
</div>
<!-- List Item Edit Modal -->
<div class="modal" id="listItemModal">
<div class="modal-content">
<div class="modal-header">
<h2 id="listItemModalTitle">Add Category</h2>
<button class="close-btn" id="closeListItemModal">×</button>
</div>
<div class="modal-body">
<form id="listItemForm">
<input type="hidden" id="listItemType">
<input type="hidden" id="listItemId">
<div class="form-group">
<label for="listItemName">Name</label>
<input type="text" id="listItemName" required>
</div>
<div class="form-group">
<label for="listItemColor">Color</label>
<div class="color-picker-group">
<input type="color" id="listItemColor" value="#6c63ff">
<input type="text" id="listItemColorHex" value="#6c63ff" pattern="^#[0-9A-Fa-f]{6}$">
</div>
</div>
<div class="form-group">
<label for="listItemStartDate">Start Date</label>
<input type="date" id="listItemStartDate">
</div>
<div class="form-group">
<label for="listItemEndDate">End Date</label>
<input type="date" id="listItemEndDate">
</div>
</form>
</div>
<div class="modal-footer">
<div class="modal-actions">
<button type="button" class="btn" id="cancelListItemBtn">Cancel</button>
<button type="submit" class="btn btn-primary" id="saveListItemBtn">Save</button>
</div>
</div>
</div>
</div>
<!-- Settings Modal -->
<div class="modal" id="settingsModal">
<div class="modal-content">
<div class="modal-header">
<h2>Manage Quadrants</h2>
<button class="close-btn" id="closeSettingsModal">×</button>
</div>
<div class="modal-body">
<div class="form-group">
<label>Quadrant 1 (Urgent & Important)</label>
<div class="color-picker-group">
<input type="color" id="q1Color" value="#AEE7B1">
<input type="text" id="q1ColorHex" value="#AEE7B1">
</div>
<input type="text" id="q1LabelText" value="Do This" class="q-label-input" placeholder="Label">
</div>
<div class="form-group">
<label>Quadrant 2 (Less Urgent & Important)</label>
<div class="color-picker-group">
<input type="color" id="q2Color" value="#ABBEE1">
<input type="text" id="q2ColorHex" value="#ABBEE1">
</div>
<input type="text" id="q2LabelText" value="Schedule This" class="q-label-input" placeholder="Label">
</div>
<div class="form-group">
<label>Quadrant 3 (Urgent & Less Important)</label>
<div class="color-picker-group">
<input type="color" id="q3Color" value="#BCB5F0">
<input type="text" id="q3ColorHex" value="#BCB5F0">
</div>
<input type="text" id="q3LabelText" value="Assign This" class="q-label-input" placeholder="Label">
</div>
<div class="form-group">
<label>Quadrant 4 (Less Urgent & Less Important)</label>
<div class="color-picker-group">
<input type="color" id="q4Color" value="#F5D26C">
<input type="text" id="q4ColorHex" value="#F5D26C">
</div>
<input type="text" id="q4LabelText" value="Consider This" class="q-label-input" placeholder="Label">
</div>
</div>
<div class="modal-footer">
<div class="modal-actions">
<button class="btn" id="resetSettingsBtn">Reset to Defaults</button>
<button class="btn btn-primary" id="saveSettingsBtn">Save Settings</button>
</div>
</div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>