-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathminimal-timer.html
More file actions
454 lines (401 loc) · 14.5 KB
/
Copy pathminimal-timer.html
File metadata and controls
454 lines (401 loc) · 14.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- SEO Meta Tags -->
<title>Minimal Timer - Zeroconfig Command-Line Timer</title>
<meta name="description"
content="Minimalist zeroconfig command-line timer with smart time parsing. Works on Windows, macOS, Linux, and Unix. Features natural language input, named timers, and system integration.">
<meta name="keywords"
content="timer, command-line, terminal, cli, productivity, pomodoro, python, pypi, homebrew, snap, winget">
<meta name="author" content="Danil Kodolov">
<!-- Open Graph / Social Media Meta Tags -->
<meta property="og:type" content="website">
<meta property="og:title" content="Minimal Timer - Universal Command-Line Timer">
<meta property="og:description"
content="Minimalist command-line timer with smart time parsing. Works on Windows, macOS, Linux, and Unix.">
<meta property="og:url" content="https://github.com/dandaniel5/minimal-timer">
<meta property="og:site_name" content="Minimal Timer">
<!-- 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=JetBrains+Mono:wght@400;700&family=Inter:wght@400;600;800&display=swap"
rel="stylesheet">
<style>
:root {
--bg-color: #0f172a;
--card-bg: rgba(30, 41, 59, 0.7);
--accent-color: #3b82f6;
--accent-hover: #2563eb;
--text-primary: #f8fafc;
--text-secondary: #94a3b8;
--code-bg: #1e293b;
--success: #10b981;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background-color: var(--bg-color);
background-image:
radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
color: var(--text-primary);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
line-height: 1.6;
}
.container {
max-width: 900px;
width: 100%;
padding: 60px 20px;
}
/* Hero Section */
.hero {
text-align: center;
margin-bottom: 60px;
animation: fadeIn 0.8s ease-out;
}
.hero h1 {
font-size: 3.5em;
font-weight: 800;
margin-bottom: 20px;
background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: -1px;
}
.hero p {
font-size: 1.25em;
color: var(--text-secondary);
max-width: 600px;
margin: 0 auto 30px;
}
.badges {
display: flex;
gap: 10px;
justify-content: center;
margin-bottom: 30px;
flex-wrap: wrap;
}
.badge {
background: var(--card-bg);
padding: 6px 12px;
border-radius: 20px;
font-size: 0.9em;
font-weight: 600;
border: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
gap: 6px;
}
/* Installation Section */
.install-section {
background: var(--card-bg);
border-radius: 24px;
padding: 2px;
/* For gradient border */
background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
margin-bottom: 50px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
backdrop-filter: blur(12px);
}
.install-content {
background: var(--bg-color);
border-radius: 22px;
padding: 30px;
}
.tabs {
display: flex;
gap: 10px;
margin-bottom: 20px;
overflow-x: auto;
padding-bottom: 10px;
}
.tab-btn {
background: transparent;
border: none;
color: var(--text-secondary);
padding: 8px 16px;
cursor: pointer;
font-weight: 600;
border-radius: 8px;
transition: all 0.2s;
white-space: nowrap;
}
.tab-btn.active {
background: var(--code-bg);
color: var(--accent-color);
}
.tab-btn:hover:not(.active) {
color: var(--text-primary);
}
.command-box {
background: var(--code-bg);
padding: 20px;
border-radius: 12px;
font-family: 'JetBrains Mono', monospace;
display: flex;
justify-content: space-between;
align-items: center;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.command-text {
color: var(--success);
}
.copy-btn {
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.2);
color: var(--text-secondary);
padding: 6px 12px;
border-radius: 6px;
cursor: pointer;
font-size: 0.85em;
transition: all 0.2s;
}
.copy-btn:hover {
background: rgba(255, 255, 255, 0.1);
color: var(--text-primary);
}
/* Features Grid */
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-bottom: 50px;
}
.feature-card {
background: var(--card-bg);
padding: 25px;
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.05);
transition: transform 0.2s;
}
.feature-card:hover {
transform: translateY(-5px);
background: rgba(30, 41, 59, 0.9);
}
.feature-icon {
font-size: 2em;
margin-bottom: 15px;
display: block;
}
.feature-card h3 {
margin-bottom: 10px;
font-weight: 600;
}
.feature-card p {
color: var(--text-secondary);
font-size: 0.95em;
}
/* Usage Examples */
.usage-section {
margin-bottom: 50px;
}
.usage-section h2 {
text-align: center;
margin-bottom: 30px;
font-size: 2em;
}
.code-example {
background: var(--code-bg);
padding: 15px 20px;
border-radius: 8px;
font-family: 'JetBrains Mono', monospace;
margin-bottom: 10px;
border-left: 4px solid var(--accent-color);
color: var(--text-secondary);
}
.code-example span {
color: var(--text-primary);
}
/* Footer */
footer {
margin-top: auto;
padding: 40px 0;
text-align: center;
color: var(--text-secondary);
border-top: 1px solid rgba(255, 255, 255, 0.1);
width: 100%;
}
footer a {
color: var(--text-primary);
text-decoration: none;
transition: color 0.2s;
}
footer a:hover {
color: var(--accent-color);
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 768px) {
.hero h1 {
font-size: 2.5em;
}
.container {
padding: 40px 20px;
}
}
</style>
</head>
<body>
<div class="container">
<section class="hero">
<h1>Minimal Timer</h1>
<p>A universal, zeroconfig, distraction-free command-line timer for developers. Works on Windows, macOS, and
Linux.</p>
<div class="badges">
<span class="badge">🐍 Python 3.6+</span>
<span class="badge">⚖️ GPL v3</span>
<span class="badge">📦 v1.0.6</span>
</div>
<div class="install-section">
<div class="install-content">
<div class="tabs">
<button class="tab-btn active" onclick="showCmd('pip')">PyPI (Universal)</button>
<button class="tab-btn" onclick="showCmd('brew')">Homebrew (macOS)</button>
</div>
<div class="command-box" id="cmd-box">
<span class="command-text" id="cmd-text">pip install minimal-timer</span>
<button class="copy-btn" onclick="copyCmd()">Copy</button>
</div>
</div>
</div>
</section>
<section class="features-grid">
<div class="feature-card">
<span class="feature-icon">🧠</span>
<h3>Smart Parsing</h3>
<p>Natural language input like <code>10m</code>, <code>1h 30s</code>, or <code>2d 5h</code>. No complex
flags needed.</p>
</div>
<div class="feature-card">
<span class="feature-icon">📝</span>
<h3>Named Timers</h3>
<p>Label your timers with <code>-n</code> to keep track of multiple tasks simultaneously.</p>
</div>
<div class="feature-card">
<span class="feature-icon">🔄</span>
<h3>Sync Mode</h3>
<p>Loop timer with beep using <code>-sync</code> flag. Perfect for recurring tasks.</p>
</div>
<div class="feature-card">
<span class="feature-icon">💤</span>
<h3>System Integration</h3>
<p>Auto-sleep system (<code>-s</code>) or display (<code>-sd</code>) when the timer completes.</p>
</div>
<div class="feature-card">
<span class="feature-icon">🔔</span>
<h3>Notifications</h3>
<p>Audio alerts on completion and clean, distraction-free terminal output.</p>
</div>
<div class="feature-card">
<span class="feature-icon">🚀</span>
<h3>Execute Command</h3>
<p>Run any shell command when the timer finishes using the <code>-e</code> flag. Great for custom
notifications.</p>
</div>
<div class="feature-card">
<span class="feature-icon">❓</span>
<h3>Help & Support</h3>
<p>Stuck? Use <code>-h</code> or <code>--help</code> to see all available commands and options.</p>
</div>
<div class="feature-card">
<span class="feature-icon">🛡️</span>
<h3>Smart Errors</h3>
<p>Friendly error messages that tell you exactly what went wrong and how to fix it.</p>
</div>
<div class="feature-card">
<span class="feature-icon">ℹ️</span>
<h3>Version Info</h3>
<p>Check your installed version with <code>-v</code> or <code>--version</code> flag.</p>
</div>
</section>
<section class="usage-section">
<h2>Quick Examples</h2>
<div class="code-example">
# Simple 10 minute timer<br>
<span>timer 10m</span>
</div>
<div class="code-example">
# Pomodoro with name<br>
<span>timer 25m -n "Deep Work"</span>
</div>
<div class="code-example">
# Sleep display after 1 hour<br>
<span>timer 1h -sd</span>
</div>
<div class="code-example">
# List all running timers<br>
<span>timer -ls</span>
</div>
<div class="code-example">
# Execute command when done<br>
<span>timer 5m -e "say 'Timer finished'"</span>
</div>
<div class="code-example">
# Get help<br>
<span>timer --help</span>
</div>
<div class="code-example">
# Check version<br>
<span>timer -v</span>
</div>
</section>
</div>
<footer>
<p>Created by <a href="https://github.com/dandaniel5">Danil Kodolov</a></p>
<p style="font-size: 0.9em; margin-top: 10px;">
Licensed under <a href="https://www.gnu.org/licenses/gpl-3.0">GPL v3</a> •
<a href="https://github.com/dandaniel5/minimal-timer">View on GitHub</a>
</p>
</footer>
<script>
const commands = {
'pip': 'pip install minimal-timer',
'brew': 'brew install dandaniel5/timer/timer'
};
function showCmd(type) {
// Update buttons
document.querySelectorAll('.tab-btn').forEach(btn => btn.classList.remove('active'));
event.target.classList.add('active');
// Update text
const cmd = commands[type];
document.getElementById('cmd-text').textContent = cmd;
// Reset copy button
const btn = document.querySelector('.copy-btn');
btn.textContent = 'Copy';
btn.style.color = '';
}
function copyCmd() {
const text = document.getElementById('cmd-text').textContent;
navigator.clipboard.writeText(text).then(() => {
const btn = document.querySelector('.copy-btn');
btn.textContent = 'Copied!';
btn.style.color = 'var(--success)';
setTimeout(() => {
btn.textContent = 'Copy';
btn.style.color = '';
}, 2000);
});
}
</script>
</body>
</html>