-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinfo.html
More file actions
325 lines (294 loc) · 10.5 KB
/
info.html
File metadata and controls
325 lines (294 loc) · 10.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Randoro: Turn work into a game of chance!</title>
<!-- Favicon -->
<link
rel="icon"
type="image/png"
sizes="192x192"
href="./img/icon-192.png"
/>
<link
rel="icon"
type="image/png"
sizes="512x512"
href="./img/icon-512.png"
/>
<link rel="apple-touch-icon" href="./img/icon-192.png" />
<!-- Tailwind CSS CDN (fallback if offline build is missing) -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Local Tailwind build (overrides CDN) -->
<link rel="stylesheet" href="./css/tailwind.css" />
<style>
/* Balatro theme colors */
.color-red {
background-color: #fd5f55;
color: #ffffff;
border: none;
}
.color-orange {
background-color: #fda200;
color: #ffffff;
border: none;
}
.color-blue {
background-color: #009cfd;
color: #ffffff;
border: none;
}
.color-dark {
background-color: #4f6367;
color: #ffffff;
border: none;
}
.color-pink {
background-color: #d58ac0;
color: #ffffff;
border: none;
}
.color-white {
background-color: #ffffff;
color: #4f6367;
border: none;
}
.container-bg {
background: linear-gradient(145deg, #4f6367, #009cfd, #fd5f55);
color: #ffffff;
}
.container-bg-light {
background: rgba(79, 99, 103, 0.8);
color: #ffffff;
}
</style>
</head>
<body class="min-h-screen flex flex-col items-center p-6 font-sans">
<!-- Canvas Starfield -->
<canvas
id="starfield"
class="fixed top-0 left-0 w-full h-full -z-10"
></canvas>
<!-- Main container -->
<div class="w-full max-w-lg space-y-2">
<!-- Randoro Info Section -->
<div class="w-full max-w-lg mt-6 mx-auto space-y-6">
<!-- Title -->
<a href="./index.html">
<img
src="./img/randoro-logo.png"
srcset="
./img/randoro-logo.png 1x,
./img/randoro-logo@2x.png 2x,
./img/randoro-logo@4x.png 4x
"
alt="Randoro Logo"
class="mx-auto mt-4 mb-6 h-auto w-[180px] sm:w-[220px] md:w-[260px]"
style="image-rendering: pixelated"
onclick="window.location.href='./index.html'"
/>
</a>
<!-- What is Randoro -->
<div
class="p-4 bg-gray-800 bg-opacity-90 rounded-xl shadow-lg border-2 border-pink-500 space-y-2"
>
<h3 class="text-xl font-bold text-pink-400">What is Randoro?</h3>
<p class="text-white">
Randoro is a modern Pomodoro timer that gamifies your focus
sessions. You can choose <strong>classic mode</strong> for fixed
durations, or <strong>random mode</strong> for unpredictable session
lengths, making every focus session exciting.
</p>
</div>
<!-- Pomodoro Cycle -->
<div
class="p-4 bg-gray-800 bg-opacity-90 rounded-xl shadow-lg space-y-4 border-2 border-red-500"
>
<h3 class="text-2xl font-bold text-pink-400 text-center">
Pomodoro Cycle
</h3>
<p class="text-white text-center">
A full cycle consists of three Pomodoros and breaks:
</p>
<!-- Gamified Timeline -->
<div class="flex justify-center items-center flex-wrap gap-2">
<div
class="px-3 py-2 rounded-full bg-red-500 text-white font-bold text-sm shadow-md"
>
Pomodoro (1)
</div>
<div class="text-white">→</div>
<div
class="px-3 py-2 rounded-full bg-blue-500 text-white font-bold text-sm shadow-md"
>
Short Break (2)
</div>
<div class="text-white">→</div>
<div
class="px-3 py-2 rounded-full bg-red-500 text-white font-bold text-sm shadow-md"
>
Pomodoro (3)
</div>
<div class="text-white">→</div>
<div
class="px-3 py-2 rounded-full bg-blue-500 text-white font-bold text-sm shadow-md"
>
Short Break (4)
</div>
<div class="text-white">→</div>
<div
class="px-3 py-2 rounded-full bg-red-500 text-white font-bold text-sm shadow-md"
>
Pomodoro (5)
</div>
<div class="text-white">→</div>
<div
class="px-3 py-2 rounded-full bg-green-500 text-white font-bold text-sm shadow-md"
>
Long Break (6)
</div>
</div>
</div>
<!-- Random Mode -->
<!-- Random Mode -->
<div
class="p-4 bg-gray-800 bg-opacity-90 rounded-xl shadow-lg border-2 border-blue-500 space-y-2"
>
<h3 class="text-xl font-bold text-blue-400">Random Mode</h3>
<p class="text-white">
Each Pomodoro duration is randomly generated between your chosen
minimum and maximum.
</p>
<p class="text-white">
• Short Break = <span class="text-blue-300">20%</span> of your
Pomodoro length.
</p>
<p class="text-white">
• Long Break = <span class="text-blue-300">60%</span> of the average
of your last 3 Pomodoro sessions.
</p>
</div>
<!-- Negative Timer -->
<div
class="p-4 bg-gray-800 bg-opacity-90 rounded-xl shadow-lg border-2 border-red-500 space-y-2"
>
<h3 class="text-xl font-bold text-red-400">
Negative Timer / Stopwatch
</h3>
<p class="text-white">
Once a Pomodoro ends, you can continue counting down into negative
time to stay in the zone without interruptions. Ideal for deep focus
sessions.
</p>
</div>
<!-- Tasks & New Game -->
<div
class="p-4 bg-gray-800 bg-opacity-90 rounded-xl shadow-lg border-2 border-yellow-500 space-y-2"
>
<h3 class="text-xl font-bold text-yellow-400">Tasks & New Game</h3>
<p class="text-white">
You can add up to <strong>3 focus(Poomdoro) tasks</strong> at a
time. Once completed, mark them off and free up space for the next.
<br />
You can add unlimited amount of tasks in <strong>Day List</strong>,
and move them to <strong> Pomodoro Tasks</strong> when there is
space. <br /><br />
If you want to start fresh, use the
<span class="font-bold">New Game</span> button. This clears your
tasks and cycles, sessions, but <em>keeps your sound settings</em>.
</p>
</div>
<!-- Custom Sounds -->
<div
class="p-4 bg-gray-800 bg-opacity-90 rounded-xl shadow-lg border-2 border-orange-500 space-y-2"
>
<h3 class="text-xl font-bold text-orange-400">Custom Sounds</h3>
<p class="text-white">
You can upload your own alarm sound in the
<strong>Notification Sound</strong> panel. This allows you to use
<em>any MP3 file</em> – from motivational speeches to funny clips.
Uploaded sounds are stored locally in your browser, so they’ll still
work even after you close and reopen Randoro.
<br />
<strong>Note:</strong> Clearing browser cache/site data will remove
custom sounds.
</p>
</div>
<!-- Website Features -->
<div
class="p-4 bg-gray-800 bg-opacity-90 rounded-xl shadow-lg border-2 border-green-500 space-y-2"
>
<h3 class="text-xl font-bold text-green-400">
Download & Font Features
</h3>
<p class="text-white">
<strong>Download Button:</strong> Allows you to install Randoro as a
standalone app on your device. Once installed, the button
disappears. This is powered by a <em>PWA service worker</em>.
</p>
<p class="text-white">
<strong>Font Button:</strong> If the default gamified font is hard
to read, you can switch to a clearer font. This improves
readability, though it may slightly reduce the “8-bit/gamified” feel
of the interface.
</p>
</div>
</div>
</div>
<!-- Starfield Script -->
<script>
const canvas = document.getElementById("starfield");
const ctx = canvas.getContext("2d");
const stars = [];
const STAR_COUNT = 500;
function resizeCanvas() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
}
function initStars() {
stars.length = 0;
let starCount =
canvas.width < 500 ? 150 : canvas.width < 800 ? 300 : 500;
for (let i = 0; i < starCount; i++) {
stars.push({
x: Math.random() * canvas.width,
y: Math.random() * canvas.height,
r: Math.random() * 2 + 1,
alpha: Math.random() * 0.8 + 0.2,
offset: Math.random() * 1000, // random phase for sine
});
}
}
function drawStars() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
// Background gradient
const gradient = ctx.createLinearGradient(0, 0, 0, canvas.height);
gradient.addColorStop(0, "#001f3f");
gradient.addColorStop(1, "#003366");
ctx.fillStyle = gradient;
ctx.fillRect(0, 0, canvas.width, canvas.height);
const time = Date.now() * 0.002; // controls twinkle speed
// Draw each star
for (let star of stars) {
const alpha = star.alpha + Math.sin(time + star.offset) * 0.3; // smooth oscillation
ctx.beginPath();
ctx.arc(star.x, star.y, star.r, 0, Math.PI * 2);
ctx.fillStyle = `rgba(255,255,255,${Math.max(
0,
Math.min(1, alpha)
)})`;
ctx.fill();
}
requestAnimationFrame(drawStars);
}
function startStarfield() {
resizeCanvas();
initStars();
drawStars();
}
window.addEventListener("resize", startStarfield);
startStarfield();
</script>
</body>
</html>