-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtimer.html
More file actions
82 lines (75 loc) · 3.79 KB
/
Copy pathtimer.html
File metadata and controls
82 lines (75 loc) · 3.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Timer - NoMoreBS</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {}
}
}
</script>
<script src="./env-config.js"></script>
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#dc2626">
</head>
<body class="dark bg-gray-900 min-h-screen">
<header class="bg-gray-800 border-b border-gray-700">
<div class="max-w-7xl mx-auto px-4 py-4">
<div class="flex items-center justify-between">
<img src="./assets/LOGO.png" alt="NoMoreBS" class="h-10">
<nav class="flex gap-6 text-xs uppercase tracking-widest font-bold">
<a href="dashboard.html" class="text-gray-500 hover:text-white transition">Back to Reality</a>
<a href="timer.html" class="text-red-500">Suffering</a>
<a href="tasks.html" class="text-gray-500 hover:text-white transition">Failures</a>
<a href="settings.html" class="text-gray-500 hover:text-white transition">Abuse</a>
</nav>
</div>
</div>
</header>
<main class="flex items-center justify-center min-h-[calc(100vh-80px)] px-4">
<div class="w-full max-w-4xl">
<div class="text-center">
<div class="flex flex-wrap gap-2 justify-center mb-16">
<button id="pomodoroBtn" class="px-6 py-2 bg-white text-black font-black uppercase text-xs tracking-tighter hover:bg-gray-200 transition">
work, you lazy fuck
</button>
<button id="shortBreakBtn" class="px-6 py-2 bg-transparent text-white font-black uppercase text-xs tracking-tighter border border-white/20 hover:bg-white/10 transition">
undeserved break
</button>
<button id="longBreakBtn" class="px-6 py-2 bg-transparent text-white font-black uppercase text-xs tracking-tighter border border-white/20 hover:bg-white/10 transition">
slacker mode
</button>
</div>
<div id="timerDisplay" class="text-[180px] md:text-[240px] font-black text-white mb-16 font-mono tracking-tighter leading-none">
25:00
</div>
<div class="flex gap-4 justify-center items-center">
<button id="startBtn" class="px-16 py-6 bg-red-600 text-white font-black uppercase tracking-widest hover:bg-red-700 transition text-2xl">
start suffering
</button>
<button id="pauseBtn" class="px-16 py-6 bg-white text-black font-black uppercase tracking-widest hover:bg-gray-200 transition text-2xl hidden">
cowardice
</button>
<button id="resetBtn" class="p-6 bg-transparent text-gray-600 hover:text-white transition uppercase text-xs font-bold tracking-widest">
give up
</button>
</div>
<div id="timerMessage" class="mt-20 p-8 border-t border-gray-800 text-red-500 text-2xl font-black uppercase tracking-tighter hidden"></div>
</div>
</div>
</main>
<script type="module">
import { checkAuthentication } from './js/auth.js';
import { initTimer } from './js/timer.js';
import { initSupport } from './js/satire.js';
await checkAuthentication();
initTimer();
initSupport();
</script>
</body>
</html>