-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflasher.html
More file actions
417 lines (369 loc) · 13.5 KB
/
Copy pathflasher.html
File metadata and controls
417 lines (369 loc) · 13.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>reboot_the_rise_of_the_robots // tools</title>
<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=Pixelify+Sans:wght@400;700&display=swap" rel="stylesheet">
<style>
:root {
--bg-color: #0a0a0a;
--text-primary: #f2ede7;
--accent-color: #f2ede7;
--dim-text: rgba(242, 237, 231, 0.5);
--border-color: rgba(242, 237, 231, 0.2);
color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
@font-face {
font-family: 'Mono';
src: local('Courier New'), local('Courier'), monospace;
}
body {
font-family: 'Mono', monospace;
background: var(--bg-color);
color: var(--text-primary);
line-height: 1.4;
min-height: 100vh;
overflow-x: hidden;
display: flex;
flex-direction: column;
padding: 2rem;
position: relative;
}
/* --- SPINNING RAYS --- */
.rays-tl {
position: absolute;
top: -125px;
left: -125px;
width: 375px;
height: 375px;
z-index: 0;
opacity: 0.15;
pointer-events: none;
}
.rays-tl::before {
content: "";
position: absolute;
top: 50%; left: 50%;
width: 750px; height: 750px;
transform: translate(-50%, -50%);
background: repeating-conic-gradient(from 0deg, var(--text-primary) 0deg 0.5deg, transparent 0.5deg 3deg);
border-radius: 50%;
mask-image: radial-gradient(circle, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 70%);
-webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 70%);
animation: spin-slow 40s linear infinite;
}
.sunburst {
position: absolute;
bottom: -150px;
left: -150px;
width: 500px;
height: 500px;
z-index: 0;
pointer-events: none;
opacity: 0.1;
}
.sunburst::before {
content: "";
position: absolute;
top: 50%; left: 50%;
width: 1125px; height: 1125px;
transform: translate(-50%, -50%);
background: repeating-conic-gradient(from 0deg, var(--accent-color) 0deg 1deg, transparent 1deg 3deg);
border-radius: 50%;
mask-image: radial-gradient(circle, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 90%);
-webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 90%);
animation: spin 20s linear infinite;
}
@keyframes spin {
from { transform: translate(-50%, -50%) rotate(0deg); }
to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes spin-slow {
from { transform: translate(-50%, -50%) rotate(0deg); }
to { transform: translate(-50%, -50%) rotate(-360deg); }
}
/* --- LAYOUT DECORATIONS --- */
.grid-overlay {
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background-image: radial-gradient(circle, var(--border-color) 1px, transparent 1px);
background-size: 40px 40px;
z-index: -1;
opacity: 0.3;
}
.system-meta {
position: fixed;
top: 2rem;
left: 2rem;
font-size: 0.7rem;
color: var(--dim-text);
text-transform: uppercase;
letter-spacing: 2px;
z-index: 10;
}
/* --- NAVIGATION --- */
.top-nav {
width: 100%;
display: flex;
justify-content: flex-end;
gap: 2rem;
margin-bottom: 4rem;
padding-top: 0.5rem;
}
.top-nav a {
color: var(--dim-text);
text-decoration: none;
font-size: 0.9rem;
}
.top-nav a:hover {
color: var(--text-primary);
}
/* --- MAIN CONTENT --- */
.content-wrapper {
max-width: 1000px;
width: 100%;
margin-left: auto;
position: relative;
z-index: 5;
display: flex;
flex-direction: column;
align-items: flex-end;
}
header {
margin-bottom: 5rem;
text-align: right;
}
.glitch-title {
font-family: 'Pixelify Sans', sans-serif;
font-size: clamp(1rem, 3vw, 2.5rem);
font-weight: 700;
text-transform: lowercase;
line-height: 1.5;
letter-spacing: -1px;
position: relative;
}
.section-tag {
font-size: 0.8rem;
color: var(--dim-text);
margin-bottom: 1rem;
display: block;
}
/* --- TOOLS SECTION --- */
.tools-container {
width: 100%;
display: flex;
flex-direction: column;
align-items: flex-end;
margin-bottom: 4rem;
flex-grow: 1;
}
.synth-flasher {
border: 1px solid var(--border-color);
background: rgba(255, 255, 255, 0.02);
padding: 2.5rem;
width: 100%;
max-width: 600px;
display: flex;
flex-direction: column;
align-items: flex-end;
text-align: right;
position: relative;
}
.synth-flasher::before {
content: "[ ]";
position: absolute;
top: 10px;
left: 10px;
font-size: 0.8rem;
color: var(--dim-text);
}
.synth-flasher h3 {
font-family: 'Pixelify Sans', sans-serif;
font-size: 1.8rem;
margin-bottom: 0.5rem;
color: var(--text-primary);
font-weight: 700;
text-transform: uppercase;
}
.synth-flasher p {
font-size: 0.9rem;
color: var(--dim-text);
margin-bottom: 2rem;
max-width: 80%;
}
/* --- CUSTOM FLASH BUTTON & SELECTOR --- */
.retro-btn {
font-family: 'Mono', monospace;
background: transparent;
color: var(--text-primary);
border: 1px solid var(--text-primary);
padding: 0.8rem 1.5rem;
cursor: pointer;
text-transform: uppercase;
font-size: 1rem;
transition: all 0.2s ease;
letter-spacing: 1px;
}
.retro-btn:hover, .retro-btn:active {
background: var(--text-primary);
color: var(--bg-color);
}
.board-selector {
display: flex;
gap: 1.5rem;
margin-bottom: 2rem;
font-family: 'Mono', monospace;
}
.board-option {
display: flex;
align-items: center;
cursor: pointer;
color: var(--dim-text);
transition: color 0.2s;
}
.board-option:hover {
color: var(--text-primary);
}
.board-option input[type="radio"] {
appearance: none;
-webkit-appearance: none;
width: 14px;
height: 14px;
border: 1px solid var(--dim-text);
margin-right: 8px;
position: relative;
cursor: pointer;
transition: all 0.2s;
}
.board-option input[type="radio"]:checked {
background: var(--text-primary);
border-color: var(--text-primary);
}
.board-option input[type="radio"]:checked + span {
color: var(--text-primary);
}
/* Web component specific overrides */
esp-web-install-button {
display: block;
margin-top: 1rem;
}
@media (max-width: 768px) {
.content-wrapper { align-items: stretch; }
.top-nav { justify-content: flex-start; flex-wrap: wrap; gap: 1rem; }
header { text-align: left; }
.tools-container { align-items: stretch; }
.synth-flasher { align-items: flex-start; text-align: left; }
.synth-flasher p { max-width: 100%; }
.board-selector { flex-direction: column; gap: 1rem; align-items: flex-start; }
}
/* --- FOOTER --- */
footer {
margin-top: auto;
border-top: 1px solid var(--border-color);
padding-top: 2rem;
width: 100%;
display: flex;
justify-content: space-between;
align-items: flex-end;
font-size: 0.75rem;
color: var(--dim-text);
}
.status-pulse {
display: inline-block;
width: 8px;
height: 8px;
background: var(--accent-color);
border-radius: 50%;
margin-right: 5px;
box-shadow: 0 0 10px var(--accent-color);
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 0.4; }
50% { opacity: 1; }
100% { opacity: 0.4; }
}
</style>
</head>
<body>
<div class="rays-tl"></div>
<div class="sunburst"></div>
<div class="grid-overlay"></div>
<div class="system-meta">
status: <span id="current-time">00:00:00</span>
</div>
<div class="content-wrapper">
<nav class="top-nav">
<a href="https://reboot-the-rise-of-the-robots.neocities.org/tools" target="_parent">/tools</a>
<a href="https://reboot-the-rise-of-the-robots.neocities.org/index" target="_parent">/home</a>
<a href="https://reboot-the-rise-of-the-robots.neocities.org/about_me" target="_parent">/about_me</a>
<a href="https://github.com/antodale" target="_blank" rel="noopener noreferrer">/projects</a>
</nav>
<header>
<h1 class="glitch-title">
reboot_the<br>_rise_of_<br>the_robots
</h1>
</header>
<main class="tools-container">
<span class="section-tag" style="text-align: right; width: 100%; margin-bottom: 1.5rem;">[ DEPLOYMENT_MODULES ]</span>
<div class="synth-flasher">
<h3>COMPOSITE VIDEO SYNTH // FIRMWARE UPLINK</h3>
<p>Select target hardware and connect via USB. Compatible with Chromium-based browsers only.</p>
<div class="board-selector">
<label class="board-option">
<input type="radio" name="board" value="https://antodale.github.io/CompositeVideoSynth/CompositeVideoSynthBinary/MainBoard/manifest.json" checked>
<span>[ MAIN_BOARD // ESP32-WROOM ]</span>
</label>
<label class="board-option">
<input type="radio" name="board" value="https://antodale.github.io/CompositeVideoSynth/CompositeVideoSynthBinary/C3WebBoard/manifest.json">
<span>[ SERVER_BOARD // ESP32-C3 ]</span>
</label>
</div>
<script type="module" src="https://unpkg.com/esp-web-tools@9.4.2/dist/web/install-button.js?module"></script>
<esp-web-install-button id="flasher-btn" manifest="https://antodale.github.io/CompositeVideoSynth/CompositeVideoSynthBinary/MainBoard/manifest.json">
<button slot="activate" class="retro-btn">INITIALIZE_FLASH</button>
</esp-web-install-button>
</div>
</main>
<footer>
<div>
<span class="status-pulse"></span> SYSTEM ACTIVE // OUTPUT ENABLED
</div>
<div style="text-align: right; max-width: 400px;">
© 2025 REBOOT_THE_ROBOT // VERSION 2.0.4
</div>
</footer>
</div>
<script>
// Real-time clock for the system meta
function updateClock() {
const now = new Date();
const timeStr = now.getHours().toString().padStart(2, '0') + ":" +
now.getMinutes().toString().padStart(2, '0') + ":" +
now.getSeconds().toString().padStart(2, '0');
document.getElementById('current-time').textContent = timeStr;
}
setInterval(updateClock, 1000);
updateClock();
// Subtle parallax effect on the grid
window.addEventListener('mousemove', (e) => {
const x = e.clientX / window.innerWidth;
const y = e.clientY / window.innerHeight;
document.querySelector('.grid-overlay').style.transform = `translate(${x * 10}px, ${y * 10}px)`;
});
// Board Selector Logic
document.querySelectorAll('input[name="board"]').forEach(radio => {
radio.addEventListener('change', (e) => {
const btn = document.getElementById('flasher-btn');
if (btn) {
btn.setAttribute('manifest', e.target.value);
}
});
});
</script>
</body>
</html>