-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
467 lines (438 loc) · 14.6 KB
/
index.html
File metadata and controls
467 lines (438 loc) · 14.6 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
455
456
457
458
459
460
461
462
463
464
465
466
467
<!doctype html>
<html
lang="en-us"
data-bs-core="modern"
data-bs-theme="light"
data-theme="default"
>
<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 class="container-fluid gradient bg-opacity-100 w-100 h-100 bg-fixed subpixel-antialiased text-body">
<div
id="header"
class="card container glass me-auto fixed-top rounded-pill rounded-top-0 rounded-start-0 align-self-start w-85 text-start m-0 justify-content-start p-3 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"
>
<h1 class="align-bottom display-2 text-center title">Sci-Fi Theme Switcher
</h1>
</header>
</div>
<span class="d-block my-5 py-5"></span>
<div
id="content"
class="container rounded mx-auto text-start justify-content-start shadow p-0"
>
<main class="card glass">
<header class="card-header bg-theme-accent rounded p-0">
<h2 class="text-center card-title display-6">
Welcome to the Sci-Fi Theme Switcher!
</h2>
</header>
<article class="card-body container border-5 rounded-5 rounded-top-0">
<section class="container bg-transparent w-75">
<p
id="info"
class="container d-block rounded-bottom-5 my-5"
>
<h3 class="text-center bg-info bg-opacity-10 border border-info mx-auto rounded p-3 shadow">Below are some
frequently asked questions</h3>
<span class="container align-middle">
<span class="container">
<h3 class="text-center border border-top-0 border-start-0 border-end-0">What?</h3>
</span>
<span class="w-100 d-block text-center">
<p>
<u>The Theme Switcher</u> is a project for web written in
</p>
<span class="d-inline-block bg-primary border rounded p-1 pt-3 px-3 m-2 shadow">
<figure class="d-inline-block"><img
src="https://raw.githubusercontent.com/devicons/devicon/master/icons/html5/html5-original-wordmark.svg"
height="64"
width="64"
/>
<figcaption class="text-center">HTML5</figcaption>
</figure>
<figure class="d-inline-block"><img
src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-original-wordmark.svg"
height="64"
width="64"
/>
<figcaption class="text-center">CSS3</figcaption>
</figure>
<figure class="d-inline-block"><img
src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg"
height="64"
width="64"
/>
<figcaption class="text-center">JavaScript</figcaption>
</figure>
</span>
<br />
<br />
<p>
It uses CSS custom properties (A.K.A. variables) to change the
color scheme of the page.
</p>
<p>
To demo the project and change the theme, follow the instructions below.
</p>
<p>
There are three
sections:
</p>
<p class="d-block text-center">
<ul>
<li>
light themes
</li>
<li>
default theme
</li>
<li>
dark themes
</li>
</ul>
</p>
</span>
</span>
<span class="align-middle text-center">
<h3 class="text-center border border-top-0 border-start-0 border-end-0">How?</h3>
<p class="p-3">
Select a theme from the Theme-switcher panel by following the steps below.
</p>
<ol class="text-center">
<li class="">
<p>Open the Theme-switcher Control Panel by clicking the following button:<br>
</p>
<input
type="button"
class="btn btn-outline-info topcoat-button--large--cta mx-auto mx-auto"
style="max-width:90vw;font-size:1rem;"
data-bs-toggle="offcanvas"
data-bs-target="#theme-switcher-panel"
value="🎛️ Control Panel"
/>
</li>
<li>
From the panel that appears on the right-hand side of the screen, select a theme by clicking on the
cooresponding switch.
</li>
</ol>
</span>
</p>
</section>
</article>
</main>
<aside
class="card offcanvas offcanvas-end glass rounded-5 rounded-end-0 shadow mt-5"
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">
<h2
id="theme-switcher-title"
class="offcanvas-title text-center"
></h2>
<button
type="button"
class="btn btn-close btn-outline-danger bg-opacity-0 border border-danger"
data-bs-dismiss="offcanvas"
aria-label="Close"
></button>
</header>
<form
id="theme-select"
class="container-fluid glass offcanvas-body text-body text-center rounded p-0"
>
<fieldset
id="light-themes"
form="theme-select"
class="container text-end rounded rounded-bottom-0 d-block border border-bottom-0 px-5"
>
<legend class="">
<h2 class="text-center">Light</h2>
</legend>
<label
for="theme-0"
class="my-1"
>
Alien
<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>
<br />
<label
for="theme-1"
class="my-1"
>
Back To The Future
<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>
<br />
<label
for="theme-2"
class="my-1"
>
Tatooine
<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>
<br />
<label
for="theme-3"
class="my-1"
>
The 5<sup>th</sup> Element
<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>
<br />
<label
for="theme-4"
class="my-1"
>
Close Encounters
<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>
<br />
</fieldset>
<fieldset
id="reset-to-default"
form="theme-select"
class="container text-end d-block border border-top-0 border-bottom-0 px-5"
>
<legend>
<h2 class="text-center">Reset</h2>
</legend>
<label
for="reset"
class="my-1"
>
Default
<span class="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>
<fieldset
id="dark-themes"
form="theme-select"
class="container text-end rounded-bottom d-block border border-top-0 px-5"
>
<legend>
<h2 class="text-center">Dark</h2>
</legend>
<label
for="theme-5"
class="my-1"
>
Blade Runner
<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>
<br />
<label
for="theme-6"
class="my-1"
>
Jurassic Park
<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>
<br />
<label
for="theme-7"
class="my-1"
>
Death Star
<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>
<br />
<label
for="theme-8"
class="my-1"
>
The Matrix
<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>
<br />
<label
for="theme-9"
class="my-1"
>
Dune
<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>
<br />
</fieldset>
</form>
</aside>
</div>
<div
id="page-footer"
class="container ms-auto fixed-bottom rounded-pill rounded-bottom-0 rounded-end-0 align-self-end w-85 text-end m-0 justify-content-end shadow border border-end-0 border-top-0 p-2 pe-0 pb-0 pt-1"
>
<footer
class="card bg-body bg-opacity-25 jumbotron jumbotron-fluid w-100 text-start rounded-pill rounded-bottom-0 rounded-end-0 p-1 pb-0 pe-0 ps-0"
>
<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="./src/js/theme-switcher.js"></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>
</div>
</body>
</html>