-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
335 lines (328 loc) · 7.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0" />
<!-- Standard SEO-related meta tags for search engines -->
<meta
name="description"
content="Minimalistic analog and digital time dashboard featuring over 550 timezones." />
<meta
name="keywords"
content="world clock, timezones, date and time, analog clock, digital clock" />
<meta
name="author"
content="Aniqa" />
<!-- Open Graph meta tags for social media sharing -->
<meta
property="og:title"
content="World Clock" />
<meta
property="og:description"
content="Minimalistic analog and digital time dashboard featuring over 550 timezones." />
<meta
property="og:image"
content="https://raw.githubusercontent.com/aniqatc/world-clock/main/assets/og-img.png" />
<meta
property="og:url"
content="https://clock.aniqa.dev" />
<meta
property="og:type"
content="website" />
<meta
property="og:site_name"
content="World Clock" />
<meta
property="og:locale"
content="en_US" />
<!-- Twitter-specific meta tags -->
<meta
name="twitter:card"
content="summary_large_image" />
<meta
property="twitter:site"
content="@aniqatc" />
<meta
property="twitter:image"
content="https://raw.githubusercontent.com/aniqatc/world-clock/main/assets/og-img.png" />
<meta
name="twitter:image:alt"
content="Screenshot of minimalistic time dashboard with analog and digital clock." />
<title>World Clock</title>
<!-- Links to CSS styling, custom/web fonts, favicon, icons, frameworks -->
<link
rel="icon"
type="image/svg+xml"
href="/assets/favicon.svg" />
<link
rel="stylesheet"
href="/src/styles.css" />
<link
rel="manifest"
href="manifest.json" />
<!-- Fonts & Icons -->
<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=Anonymous+Pro:wght@400;700&family=DM+Mono:wght@300;400;500&family=DM+Sans:opsz,wght@9..40,100;9..40,200;9..40,300;9..40,400;9..40,500;9..40,600;9..40,700;9..40,800;9..40,900;9..40,1000&display=swap"
rel="stylesheet" />
<link
href="https://fonts.cdnfonts.com/css/cursed-timer-ulil"
rel="stylesheet" />
<script
src="https://kit.fontawesome.com/50cde61edc.js"
crossorigin="anonymous"></script>
<!-- Moment.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.43/moment-timezone-with-data-1970-2030.min.js"></script>
<!-- Main JS -->
<script
defer
src="/src/script.js"></script>
</head>
<body>
<aside>
<div class="option-button-group">
<button id="shuffle-tz-btn">Shuffle Timezones</button>
<button id="list-tz-btn">List of Timezones</button>
<button id="user-tz-btn">
<i class="fa-solid fa-location-dot"></i>
</button>
</div>
<select
class="tz-dropdown"
id="tz-dropdown">
<option
value="#"
disabled
selected>
Find Your Timezone
</option>
</select>
</aside>
<main>
<section class="time-card-wrapper">
<div class="time-card--heading">
<h1>Your Location</h1>
<h2>Time Card</h2>
</div>
<div class="clock-wrapper">
<svg
class="clock--analog"
viewBox="-130 -130 260 340">
<rect
class="clock--digital-bg"
height="210"
width="260"
x="-130"
y="0" />
<circle
class="clock--ring-minutes"
r="120"
pathlength="60" />
<circle
class="clock--border"
cx="0"
cy="0"
r="125" />
<text
class="clock--text-hours"
x="0"
y="-95"
text-anchor="middle">
12
</text>
<text
class="clock--text-hours"
x="105"
y="5"
text-anchor="middle">
3
</text>
<text
class="clock--text-hours"
x="0"
y="105"
text-anchor="middle">
6
</text>
<text
class="clock--text-hours"
x="-105"
y="5"
text-anchor="middle">
9
</text>
<g transform="rotate(30)">
<line
class="clock--ring-hours"
x1="0"
y1="-100"
x2="0"
y2="-125" />
</g>
<g transform="rotate(60)">
<line
class="clock--ring-hours"
x1="0"
y1="-100"
x2="0"
y2="-125" />
</g>
<g transform="rotate(120)">
<line
class="clock--ring-hours"
x1="0"
y1="-100"
x2="0"
y2="-125" />
</g>
<g transform="rotate(150)">
<line
class="clock--ring-hours"
x1="0"
y1="-100"
x2="0"
y2="-125" />
</g>
<g transform="rotate(210)">
<line
class="clock--ring-hours"
x1="0"
y1="-100"
x2="0"
y2="-125" />
</g>
<g transform="rotate(240)">
<line
class="clock--ring-hours"
x1="0"
y1="-100"
x2="0"
y2="-125" />
</g>
<g transform="rotate(300)">
<line
class="clock--ring-hours"
x1="0"
y1="-100"
x2="0"
y2="-125" />
</g>
<g transform="rotate(330)">
<line
class="clock--ring-hours"
x1="0"
y1="-100"
x2="0"
y2="-125" />
</g>
<text
class="clock--branding-title"
x="-45"
y="-60">
World Clock
</text>
<text
class="clock--branding-author"
x="-28"
y="-45">
By Aniqa
</text>
<rect
class="clock--date-bg"
height="24"
width="105"
rx="6"
x="-50"
y="40" />
<text
class="clock--date"
x="-40"
y="57"></text>
<line
class="clock--hand-minute clock--hand"
x1="0"
y1="2"
x2="0"
y2="-90" />
<line
class="clock--hand-hour clock--hand"
x1="0"
y1="2"
x2="0"
y2="-50" />
<line
class="clock--hand-second clock--hand"
x1="0"
y1="10"
x2="0"
y2="-105" />
<circle
class="clock--center-ring"
r="3" />
<text
class="clock--digital clock--digital-time"
x="-90"
y="172"></text>
<text
class="clock--digital clock--digital-s"
x="25"
y="172"></text>
<text
class="clock--am"
x="40"
y="192">
AM
</text>
<text
class="clock--pm"
x="70"
y="192">
PM
</text>
</svg>
</div>
<div class="tz-data-wrapper">
<h3>Current Date</h3>
<ul>
<li>Region: <span id="tz-region"></span></li>
<li id="tz-official-name"></li>
<li>Day of Year: <span id="tz-day-year"></span></li>
<li>Daylight Saving Time: <span id="tz-daylight"></span></li>
</ul>
<p id="tz-google"></p>
</div>
</section>
<div class="timezone-wrapper">
<div class="timezone-button-group"></div>
</div>
</main>
<footer>
Coded by
<a
href="https://aniqa.dev"
target="_blank"
rel="noopener noreferrer">
Aniqa</a
>
<br />
<small
>View
<a
href="https://github.com/aniqatc/world-clock"
target="_blank"
rel="noopener noreferrer"
>Source Code</a
></small
>
</footer>
</body>
</html>