-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (63 loc) · 1.54 KB
/
index.html
File metadata and controls
63 lines (63 loc) · 1.54 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Installation Complete</title>
<style>
body {
background-color: #343a40;
color: #f8f9fa;
transition: background-color 0.3s ease, color 0.3s ease;
}
.container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
h1 {
font-weight: bold;
}
.theme-switch {
position: absolute;
right: 1rem;
top: 1rem;
}
.theme-switch label {
display: inline-block;
margin-bottom: 0;
font-weight: 700;
cursor: pointer;
user-select: none;
}
.theme-switch input {
display: none;
}
.theme-switch input:checked + label:before {
content: '🌞';
}
.theme-switch input:not(:checked) + label:before {
content: '🌙';
}
</style>
</head>
<body>
<div class="container">
<div>
<h1>Installation Complete</h1>
<p>You have successfully installed and configured your installation.</p>
</div>
</div>
<div class="theme-switch">
<input type="checkbox" id="theme-switch" checked>
<label for="theme-switch"></label>
</div>
<script>
const themeSwitch = document.querySelector('#theme-switch');
const body = document.querySelector('body');
themeSwitch.addEventListener('change', () => {
body.classList.toggle('theme-dark');
});
</script>
</body>
</html>