-
Notifications
You must be signed in to change notification settings - Fork 7
/
settings.html
190 lines (178 loc) · 9.3 KB
/
settings.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
<!DOCTYPE html>
<html lang="en" id="settingsPage">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Settings — actuallyaridan</title>
<link href="/src/styles/styles.css" rel="stylesheet">
<link href="/src/styles/settings.css" rel="stylesheet">
<script src="/src/scripts/settings.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@twemoji/api@latest/dist/twemoji.min.js" crossorigin="anonymous"></script>
<script src="/src/scripts/general.js"></script>
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="/src/favicons/apple-touch-icon.png">
<link rel="apple-touch-icon" type="image/png" sizes="512x512" href="/src/favicons/icon-512.png">
<link rel="apple-touch-icon" type="image/png" sizes="192x192" href="/src/favicons/icon-192.png">
<link rel="icon" type="image/png" sizes="512x512" href="/src/favicons/icon-512.png">
<link rel="icon" type="image/png" sizes="192x192" href="/src/favicons/icon-192.png">
</head>
<body class="settings">
<header>
<nav>
<menu class="navWrapper">
<li>
<a class="navButton" href="/"><img draggable="false" class="emoji" alt=""
src="/src/images/emojis/house.svg"> Home</a>
</li>
<li>
<a class="navButton" href="experiences"><img draggable="false" class="emoji" alt=""
src="/src/images/emojis/brain.svg"> Experience</a>
</li>
<li>
<a class="navButton" href="projects"><img draggable="false" class="emoji" alt=""
src="/src/images/emojis/tools.svg"> Projects</a>
</li>
<li>
<a class="navButton" href="contact"><img draggable="false" class="emoji" alt=""
src="/src/images/emojis/speak.svg"> Contact</a>
</li>
<li class="right-link">
<a class="navButton activeChoice" href="settings"><img draggable="false" class="emoji"
alt="" src="/src/images/emojis/setttings.svg"> Settings</a>
</li>
</menu>
<menu class="navWrapperMobile">
<li>
<a class="navButton" href="/">aridan.net</a>
</li>
<li class="right-link">
<button onclick="toggleMenu()" type="button" class="navButton right-link">
<img draggable="false" class="emoji" alt="" src="/src/images/icons/menu.svg">
Menu
</button>
</li>
</menu>
<menu class="mobileMenu" id="mobileMenuID">
<li>
<a class="navButton" href="experiences"><img draggable="false" class="emoji" alt=""
src="/src/images/emojis/brain.svg"> Experience</a>
</li>
<li>
<a class="navButton" href="projects"><img draggable="false" class="emoji" alt=""
src="/src/images/emojis/tools.svg"> Projects</a>
</li>
<li>
<a class="navButton" href="contact"><img draggable="false" class="emoji" alt=""
src="/src/images/emojis/speak.svg"> Contact</a>
</li>
<li>
<a class="navButton activeChoice" href="settings"><img draggable="false" class="emoji" alt=""
src="/src/images/emojis/setttings.svg"> Settings</a>
</li>
</menu>
</nav>
</header>
<main class="settings">
<h1>Settings</h1>
<form id="settings" action="/src/scripts/settings.js">
<section class="settingGroup" id="content">
<p>Content you see</p>
<div class="setting">
<ul>
<li>
<p><label for="language-select">🌐 Language</label></p>
<div>
<select class="button" id="language-select">
<option value="en" selected>English</option>
<option value="sv">Svenska</option>
<option value="hr" disabled>Hrvatski</option>
<option value="bs" disabled>Bosanski</option>
<option value="sr" disabled>Српски</option>
</select>
</div>
</li>
</ul>
</div>
</section>
<section class="settingGroup" id="appearance">
<p>Appearance</p>
<div class="setting">
<ul>
<li>
<p>💡 Theme</p>
<div>
<input type="radio" id="auto" name="theme-color" value="auto" class="theme-option" checked>
<label for="auto" class="auto button theme-label">Follow system</label>
<input type="radio" id="light" name="theme-color" value="light" class="theme-option">
<label for="light" class="light button theme-label">Light</label>
<input type="radio" id="dark" name="theme-color" value="dark" class="theme-option">
<label for="dark" class="dark button theme-label">Dark</label>
</div>
</li>
<li>
<p>🎨 Color</p>
<div>
<input type="radio" id="purple" name="accent-color" value="113, 10, 151" checked>
<label for="purple" class="purple button">Purple</label>
<input type="radio" id="red" name="accent-color" value="151, 10, 10">
<label for="red" class="red button">Red</label>
<input type="radio" id="green" name="accent-color" value="10, 151, 33">
<label for="green" class="green button">Green</label>
<input type="radio" id="blue" name="accent-color" value="10, 66, 151">
<label for="blue" class="blue button">Blue</label>
<input type="radio" id="orange" name="accent-color" value="151, 78, 10">
<label for="orange" class="orange button">Orange</label>
</div>
</li>
</ul>
</div>
</section>
<section class="settingGroup" id="accessibility">
<p>Accessibility</p>
<div class="setting">
<ul>
<li>
<p><label for="animations">🏃➡️ Perform animations</label></p>
<div>
<label class="switch">
<input type="checkbox" id="animations" name="show-animations" value="true" checked>
<span class="slider round"></span>
</label>
</div>
</li>
<li>
<p class="uppercaseTextLabel"><label for="uppercase">🔠 Use only uppercase fonts</label></p>
<div>
<label class="switch">
<input type="checkbox" id="uppercase" name="uppercase" value="true">
<span class="slider round"></span>
</label>
</div>
</li>
</ul>
</div>
</section>
<section class="saveSettings">
<div class="messages">
<div>
<div id="failSave" class="savedMessage failed">
<span class="closebtn" onclick="clearSettingsAlerts()">✕</span>
Failed to save settings. Try again.
</div>
<div id="sucessfullSave" class="savedMessage sucessfull">
<span class="closebtn" onclick="clearSettingsAlerts()">✕</span>
Settings saved successfully!
</div>
</div>
</div>
<div class="bottomButton">
<button class="saveButton" type="submit">Apply</button>
</div>
</section>
</form>
</main>
<footer class="footer">
<p>Version 2.2 (released 2024-05-25)</p>
<p>© Copyright 2024 by Adnan Bukvic unless stated otherwise. This project uses the MIT license.</p>
<p>Twemoji by Twitter Inc/X Corp is licensed under CC-BY 4.0.</p>
</footer>
</body></html>