-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
345 lines (317 loc) Β· 16.5 KB
/
index.html
File metadata and controls
345 lines (317 loc) Β· 16.5 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
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TimeBox β ADHD Focus Tool</title>
<meta name="description" content="TimeBox is a free ADHD-friendly time boxing & focus tool that helps reduce overwhelm, match tasks to your energy level, plan short work sessions, and build momentum with gentle step-by-step productivity support.">
<meta name="theme-color" content="#4f86f7">
<link rel="icon" type="image/png" href="TimeBox-Logo-Design.png">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
</head>
<body>
<div class="site-shell">
<header class="site-header">
<a href="https://davidjenner.github.io/TimeBox/" class="site-brand" aria-label="TimeBox home">
<span class="site-brand-icon"><img src="TimeBox-Logo-Design.png" alt="" class="site-brand-logo"></span>
<span class="site-brand-text">
<strong>TimeBox</strong>
<small>Part of David Jenner's accessibility-focused tools</small>
</span>
</a>
<nav class="site-nav" aria-label="Project links">
<a href="https://davidjenner.github.io/OpenDyslexic-Converter/" target="_blank" rel="noopener noreferrer">OpenDyslexic Converter</a>
<a href="https://outseek.davidjenner.workers.dev/" target="_blank" rel="noopener noreferrer">Outseek</a>
<a href="https://github.com/davidjenner" target="_blank" rel="noopener noreferrer">GitHub</a>
</nav>
</header>
<div class="app-card">
<!-- Header -->
<div class="app-header">
<div class="header-logo-row">
<img src="TimeBox-Logo-Design.png" alt="TimeBox logo" class="header-logo-img">
<div class="header-title-block">
<h1>TimeBox</h1>
<p>ADHD-friendly time boxing & focus tool designed to reduce overwhelm, build momentum, and make it easier to start and finish meaningful tasks.</p>
</div>
<div class="xp-badge">
<div class="xp-badge-inner">
<span class="xp-icon">β‘</span>
<span id="xpValue">0</span>
<span class="xp-unit">XP</span>
</div>
<div class="xp-level" id="xpLevel">Level 1</div>
</div>
</div>
</div>
<!-- Steps -->
<div class="steps">
<div class="step-dot active" id="dot1"></div>
<div class="step-dot" id="dot2"></div>
<div class="step-dot" id="dot3"></div>
<div class="step-dot" id="dot4"></div>
</div>
<div class="app-body">
<!-- Step 1: Energy Level -->
<div class="section" id="step1">
<div class="section-label">Step 1 β How's your energy right now?</div>
<div class="energy-btn-group">
<button class="energy-btn" id="highEnergyBtn">
<span class="energy-icon">β‘</span>
<span class="energy-label">High Energy</span>
<span class="energy-desc">Ready to tackle big tasks</span>
</button>
<button class="energy-btn" id="lowEnergyBtn">
<span class="energy-icon">π</span>
<span class="energy-label">Low Energy</span>
<span class="energy-desc">Need something gentle</span>
</button>
</div>
</div>
<!-- Step 2: Duration -->
<div class="section hidden animate-in" id="step2">
<div class="divider" style="margin-top:0"></div>
<div class="section-label">Step 2 β How long do you have?</div>
<select id="durationSelect" class="styled-select">
<option value="">Pick a durationβ¦</option>
<option value="10">10 minutes β Quick burst</option>
<option value="20">20 minutes β Short session</option>
<option value="30">30 minutes β Solid block</option>
<option value="60">60 minutes β Deep work</option>
</select>
</div>
<!-- Step 3: Suggested Tasks -->
<div class="section hidden animate-in" id="step3">
<div class="divider" style="margin-top:0"></div>
<div class="section-label">Step 3 β Pick a task (or write your own)</div>
<ul id="taskList" class="task-suggestion-list"></ul>
<div class="add-task-row" style="margin-top: 0.75rem;">
<input type="text" id="taskInput" class="task-text-input" placeholder="Or type your own taskβ¦">
<button id="addTaskBtn" class="btn-primary">Add</button>
</div>
</div>
<!-- Added tasks -->
<div class="section hidden animate-in" id="addedTasksSection">
<div class="section-label">Your focus list</div>
<ul id="addedTaskList" class="added-task-list"></ul>
<div class="empty-state" id="emptyState">No tasks added yet β pick one above</div>
</div>
<!-- Step 4: Timer -->
<div class="section hidden animate-in" id="step4">
<div class="divider" style="margin-top:0"></div>
<div class="section-label" style="text-align:center">Step 4 β Start your timer</div>
<div class="timer-section">
<div class="timer-ring-wrapper" id="timerRingWrapper">
<svg width="180" height="180" viewBox="0 0 180 180">
<defs>
<linearGradient id="timerGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#43d4c6"/>
<stop offset="100%" style="stop-color:#8a63f6"/>
</linearGradient>
<linearGradient id="timerRunningGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#f59e0b"/>
<stop offset="100%" style="stop-color:#ef4444"/>
</linearGradient>
<filter id="glow">
<feGaussianBlur stdDeviation="3" result="coloredBlur"/>
<feMerge>
<feMergeNode in="coloredBlur"/>
<feMergeNode in="SourceGraphic"/>
</feMerge>
</filter>
</defs>
<circle class="timer-ring-bg" cx="90" cy="90" r="75"/>
<circle class="timer-ring-progress" id="timerRing" cx="90" cy="90" r="75"/>
</svg>
<div class="timer-display">
<div class="timer-time" id="timer">25:00</div>
<div class="timer-label" id="timerStatus">Ready</div>
</div>
</div>
<div class="timer-btn-group">
<button id="startTimerBtn" class="btn-timer-start">βΆ Start</button>
<button id="resetTimerBtn" class="btn-timer-reset">βΊ Reset</button>
</div>
<button id="fullscreenBtn" class="btn-fullscreen hidden">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/>
<line x1="21" y1="3" x2="14" y2="10"/><line x1="3" y1="21" x2="10" y2="14"/>
</svg>
Full Screen
</button>
</div>
</div>
<!-- Schedule it later trigger -->
<div class="section hidden animate-in" id="schedulePrompt" style="margin-bottom:0">
<div class="divider" style="margin-top:0"></div>
<button id="scheduleLaterBtn" class="btn-schedule-later">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="4" width="18" height="18" rx="2"/>
<line x1="16" y1="2" x2="16" y2="6"/>
<line x1="8" y1="2" x2="8" y2="6"/>
<line x1="3" y1="10" x2="21" y2="10"/>
</svg>
Schedule this session for later
<svg class="chevron" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="6 9 12 15 18 9"/>
</svg>
</button>
</div>
<!-- Calendar -->
<div class="section hidden animate-in" id="calendarSection" style="margin-bottom:0">
<div class="divider"></div>
<div class="calendar-label">π
Schedule this session</div>
<div class="cal-datetime-row">
<div class="cal-datetime-field">
<label for="calDate" class="cal-field-label">Date</label>
<input type="date" id="calDate" class="cal-input">
</div>
<div class="cal-datetime-field">
<label for="calTime" class="cal-field-label">Start time</label>
<input type="time" id="calTime" class="cal-input">
</div>
</div>
<div class="calendar-btn-group">
<button id="googleCalendarBtn" class="btn-calendar">
<svg class="cal-logo" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<rect x="3" y="3" width="18" height="18" rx="2" fill="white" stroke="#dadce0" stroke-width="1.2"/>
<rect x="3" y="3" width="18" height="5.5" rx="1.5" fill="#4285F4"/>
<rect x="3" y="7" width="18" height="1.5" fill="#4285F4"/>
<rect x="7.5" y="1.5" width="2" height="3.5" rx="1" fill="#4285F4"/>
<rect x="14.5" y="1.5" width="2" height="3.5" rx="1" fill="#4285F4"/>
<line x1="3" y1="13.5" x2="21" y2="13.5" stroke="#dadce0" stroke-width="0.7"/>
<line x1="3" y1="18" x2="21" y2="18" stroke="#dadce0" stroke-width="0.7"/>
<line x1="9" y1="8.5" x2="9" y2="21" stroke="#dadce0" stroke-width="0.7"/>
<line x1="15" y1="8.5" x2="15" y2="21" stroke="#dadce0" stroke-width="0.7"/>
<text x="12.2" y="21" font-size="5.5" font-weight="800" fill="#4285F4" font-family="Arial" text-anchor="middle">31</text>
</svg>
Google Calendar
</button>
<button id="outlookCalendarBtn" class="btn-calendar">
<svg class="cal-logo" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<rect x="2" y="3" width="14" height="18" rx="2" fill="#0078D4"/>
<rect x="9" y="6" width="13" height="14" rx="1.5" fill="white" stroke="#e0e0e0" stroke-width="0.8"/>
<rect x="9" y="6" width="13" height="3.5" rx="1" fill="#0078D4"/>
<line x1="9" y1="13" x2="22" y2="13" stroke="#e0e0e0" stroke-width="0.7"/>
<line x1="9" y1="16.5" x2="22" y2="16.5" stroke="#e0e0e0" stroke-width="0.7"/>
<line x1="15.5" y1="9.5" x2="15.5" y2="20" stroke="#e0e0e0" stroke-width="0.7"/>
<ellipse cx="8.5" cy="13.5" rx="4" ry="4.5" fill="none" stroke="white" stroke-width="1.5"/>
</svg>
Outlook
</button>
<button id="icalCalendarBtn" class="btn-calendar">
<svg class="cal-logo" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<rect x="2" y="4" width="20" height="18" rx="3" fill="white" stroke="#d1d5db" stroke-width="1.2"/>
<rect x="2" y="4" width="20" height="6" rx="2.5" fill="#FF3B30"/>
<rect x="2" y="8" width="20" height="2" fill="#FF3B30"/>
<rect x="7" y="2" width="2.2" height="4" rx="1.1" fill="#6b7280"/>
<rect x="14.8" y="2" width="2.2" height="4" rx="1.1" fill="#6b7280"/>
<text x="12" y="19.5" font-size="7.5" font-weight="800" fill="#1f2937" font-family="Arial" text-anchor="middle">31</text>
</svg>
Apple Calendar
</button>
</div>
</div>
</div>
</div>
<!-- Fullscreen Timer Overlay -->
<div id="fullscreenTimer" class="fullscreen-timer hidden">
<button id="fsExitBtn" class="fs-exit-btn">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/>
<line x1="10" y1="14" x2="21" y2="3"/><line x1="3" y1="21" x2="14" y2="10"/>
</svg>
Exit Fullscreen
</button>
<div class="fs-content">
<div class="fs-energy-tag" id="fsEnergyTag">β‘ High Energy Β· 25 min</div>
<div class="fs-tasks-display" id="fsTasksDisplay">
<p class="fs-task-main" id="fsTaskMain">Focus Session</p>
<ul class="fs-task-extra" id="fsTaskExtra"></ul>
</div>
<div class="fs-ring-wrapper" id="fsRingWrapper">
<svg width="280" height="280" viewBox="0 0 280 280">
<defs>
<linearGradient id="fsGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#43d4c6"/>
<stop offset="100%" style="stop-color:#8a63f6"/>
</linearGradient>
<filter id="fsGlow">
<feGaussianBlur stdDeviation="5" result="coloredBlur"/>
<feMerge><feMergeNode in="coloredBlur"/><feMergeNode in="SourceGraphic"/></feMerge>
</filter>
</defs>
<circle class="fs-ring-bg" cx="140" cy="140" r="120"/>
<circle class="fs-ring-progress" id="fsRing" cx="140" cy="140" r="120"/>
</svg>
<div class="fs-time-center">
<div class="fs-timer-time" id="fsTimer">00:00</div>
<div class="fs-timer-status" id="fsStatus">Focusingβ¦</div>
</div>
</div>
<div class="fs-controls">
<button id="fsPauseBtn" class="fs-pause-btn">βΈ Pause</button>
</div>
</div>
</div>
<!-- XP Float Toast -->
<div id="xpToast" class="xp-toast hidden">+10 XP β‘</div>
<!-- Victory Overlay -->
<div id="victoryOverlay" class="victory-overlay hidden">
<div class="victory-card">
<div class="victory-trophy">π</div>
<h2 class="victory-title">Session Complete!</h2>
<p class="victory-sub" id="victorySub">Incredible focus! You crushed it.</p>
<div class="victory-stats" id="victoryStats"></div>
<button id="victoryClose" class="btn-victory-close">Start Another Session βΊ</button>
</div>
</div>
<footer class="site-footer">
<div class="footer-inner">
<div class="footer-top">
<div class="footer-brand">
<div class="footer-logo">
<img src="TimeBox-Logo-Design.png" alt="" class="footer-logo-img">
<span>TimeBox</span>
</div>
<p>ADHD-friendly time boxing and focus support β calm, colourful, and free to use.</p>
</div>
<div class="footer-feedback">
<h3>Leave Feedback</h3>
<p>Found a bug or have a suggestion? I'd love to hear from you.</p>
<a href="https://github.com/davidjenner/TimeBox/issues" target="_blank" rel="noopener noreferrer" class="btn-feedback">
<i class="fab fa-github"></i> Open an Issue on GitHub
</a>
</div>
<div class="footer-social">
<h3>Other Projects</h3>
<div class="social-links">
<a href="https://davidjenner.github.io/OpenDyslexic-Converter/" target="_blank" rel="noopener noreferrer" class="social-link" title="OpenDyslexic Converter" aria-label="OpenDyslexic Converter">
<i class="fas fa-font"></i>
</a>
<a href="https://outseek.davidjenner.workers.dev/" target="_blank" rel="noopener noreferrer" class="social-link" title="Outseek" aria-label="Outseek">
<i class="fas fa-search"></i>
</a>
<a href="https://github.com/davidjenner" target="_blank" rel="noopener noreferrer" title="GitHub" class="social-link" aria-label="GitHub">
<i class="fab fa-github"></i>
</a>
<a href="https://buymeacoffee.com/godavid" target="_blank" rel="noopener noreferrer" title="Buy Me a Coffee" class="social-link" aria-label="Buy Me a Coffee">
<i class="fas fa-coffee"></i>
</a>
</div>
</div>
</div>
<div class="footer-bottom">
<p>© 2026 David Jenner. All rights reserved.</p>
<p class="footer-note"><i class="fas fa-heart"></i> Built with accessibility and neurodivergent-friendly design in mind.</p>
</div>
</div>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.9.3/dist/confetti.browser.min.js"></script>
<script src="app.js"></script>
<script data-name="BMC-Widget" data-cfasync="false" src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="godavid" data-description="Support me on Buy me a coffee!" data-message="" data-color="#FF813F" data-position="Right" data-x_margin="18" data-y_margin="18"></script>
</body>
</html>