-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
331 lines (299 loc) · 13.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Roy Chan" />
<meta name="description"
content="Wish You Safe And Sound gives current weather conditions based on your location and can be searched based on location. This site was built with CSS for styling, JavaScript for functionality, and APIs for live weather data and forecasting." />
<title>Wish You Safe And Sound</title>
<link rel="shortcut icon" href="assets/images/static-image//shortcut.svg" type="image/x-icon" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css" />
<link rel="stylesheet" href="assets/styles/styles.css" />
</head>
<body>
<div class="flex flex-column main-container">
<header class="flex heading">
<h1>Wish You Safe And Sound</h1>
<div class="flex search-container">
<div class="flex search-form">
<svg class="location-btn flex">
<use xlink:href="assets/images/icons.svg#IcBaselineLocationOn"></use>
</svg>
<input type="text" placeholder="Search for Cities..." id="location-search-btn" autocomplete="off" />
<svg class="search-btn flex">
<use xlink:href="assets/images/icons.svg#OcticonSearch16"></use>
</svg>
</div>
<button class="dark-light-mode flex">
<img class="mode-toggle" src="assets/images/animation-image/moon-first-quarter.svg" width="150%" height="150%"
alt="" />
</button>
</div>
</header>
<section class="flex location-panel">
<div class="location-details">
<h2><strong id="location"> Singapore , SG</strong></h2>
<div class="date-time">
<p id="date-time">Thursday, May 4 at 2:11 PM</p>
</div>
</div>
</section>
<section class="dashboard">
<div class="flex flex-column weather-info">
<div class="flex weather-info-card-1">
<div class="flex flex-column weather-location-card-1">
<div class="flex temperature-container-1">
<h1 class="temp">
32
<span class="unit-conversion" id="metric"><span>° </span> C
</span>
<sup>
<span class="slash">
/ <a class="imperial" id="imperial" active>F</a></span>
</sup>
</h1>
<div class="flex day-card">
<img id="day-card" src="assets/images/animation-image/thunderstorms-day-rain.svg" alt="" />
</div>
</div>
<div class="flex temperature-container-2">
<div class="flex weather-condition">
<p>
<span id="description-temp">Clouds </span>
<br />
Feels like
<span class="temps" id="feels-like"> 32 ° C</span>
<br />
<small id="condition-msg">
<img class="condition-icon" src="assets/images/animation-image/umbrella.svg" alt="broken" />
Ideal Conditions</small>
</p>
</div>
<div class="flex location-image">
<img class="current-temp-image" src="assets/images/static-image/rainy_image.png" alt="Rainy Image" />
</div>
</div>
</div>
<div class="flex flex-column weather-location-card-2">
<div class="weather-location-small-1">
<div class="weather-additional-info">
<h2>Air Quality</h2>
<p>Main pollutant : PM 2.5</p>
</div>
<div class="flex weather-icons-btn">
<button class="active flex" id="airquality-mask">
<img src="assets/images/static-image/protection-mask.png" alt="broken" />
</button>
</div>
</div>
<div class="flex flex-column weather-location-small-2" id="#weather-location-small-2a">
<h1 class="card-value">
35 <sup class="aqi-card1-background">EU AQI</sup>
</h1>
<div class="flex aqi-card">
<p class="aqi-card2-background">North-East Wind</p>
<img class="compass" src="assets/images/animation-image/compass.svg" alt="" />
</div>
</div>
<div class="flex weather-location-small-3">
<div class="flex flex-column skill-box">
<div class="flex top">
<span class="title">Good</span>
<span class="title">Hazardous</span>
</div>
<br />
<div class="flex skill-bar">
<span class="skill-per">
<span class="flex tooltip" data-value="20">Standard</span>
</span>
</div>
</div>
</div>
</div>
<div class="weather-location-card-3">
<ul class="weather-additional-details">
<li>
<img src="assets/images/animation-image/uv-index.svg" alt="broken" />
<div class="flex flex-column li-content">
<strong class="flex uv-index">
2 UVI
<img class="uv_index_warning" src="assets/images/animation-image/code-green.svg" />
</strong>
<description class="uv-index-description">
low risk from UV rays
</description>
</div>
</li>
<li>
<img src="assets/images/animation-image/humidity.svg" alt="broken" />
<div class="flex flex-column li-content">
<strong class="flex humidity">
40%
<img class="humidity_warning" src="assets/images/animation-image/code-yellow.svg" />
</strong>
<description class="humidity-description">
Comfortable levels of Humidity
</description>
</div>
</li>
<li>
<img src="assets/images/animation-image/windsock.svg" alt="broken" />
<div class="flex flex-column li-content">
<strong class="flex wind-speed">
20 kmph
<img class="wind_speed_warning" src="assets/images/animation-image/code-green.svg" />
</strong>
<description class="wind-speed-description">
Calm, perfect weather for a walk
</description>
</div>
</li>
<li>
<img src="assets/images/animation-image/pollen-grass.svg" alt="broken" />
<div class="flex flex-column li-content">
<strong class="flex pollen">
0.2
<img class="pollen_warning" src="assets/images/animation-image/code-yellow.svg" />
</strong>
<description class="pollen-description">
Low risk from Alder pollen
</description>
</div>
</li>
</ul>
</div>
</div>
<div class="flex flex-column weather-info-card-2">
<div class="flex toggle-btn">
<h2>Future forecast</h2>
<span class="flex button">
<button class="hourly">Today</button>
<button class="flex week active">Weekly</button>
</span>
</div>
<div class="flex weekly-forecast">
<ul class="flex daily-weekly-forecast">
<li class="flex flex-column day">
<span class="forecast-date">Monday</span>
<img class="weekly-forecast-icon" src="assets/images/animation-image/overcast-night.svg" alt="" />
<span class="forecast-temp-high"> 42 ° C</span>
<span class="forecast-temp-low"> 32 ° C</span>
</li>
<li class="flex flex-column day">
<span class="forecast-date">Tuesday</span>
<img class="weekly-forecast-icon" src="assets/images/animation-image/thunderstorms-night-rain.svg"
alt="broken" />
<span class="forecast-temp-high"> 42 ° C</span>
<span class="forecast-temp-low"> 32 ° C</span>
</li>
<li class="flex flex-column day">
<span class="forecast-date">Wednesday</span>
<img class="weekly-forecast-icon" src="assets/images/animation-image/partly-cloudy-night-snow.svg"
alt="" />
<span class="forecast-temp-high"> 42 ° C</span>
<span class="forecast-temp-low"> 32 ° C</span>
</li>
<li class="flex flex-column day">
<span class="forecast-date">Thursday</span>
<img class="weekly-forecast-icon" src="assets/images/animation-image/clear-day.svg" alt="" />
<span class="forecast-temp-high"> 42 ° C</span>
<span class="forecast-temp-low"> 32 ° C</span>
</li>
<li class="flex flex-column day">
<span class="forecast-date">Friday</span>
<img class="weekly-forecast-icon" src="assets/images/animation-image/overcast-day.svg" alt="" />
<span class="forecast-temp-high"> 42 ° C</span>
<span class="forecast-temp-low"> 32 ° C</span>
</li>
<li class="flex flex-column day">
<span class="forecast-date">Saturday</span>
<img class="weekly-forecast-icon" src="assets/images/animation-image/mist.svg" alt="" />
<span class="forecast-temp-high"> 42 ° C</span>
<span class="forecast-temp-low"> 32 ° C</span>
</li>
<li class="flex flex-column day">
<span class="forecast-date">Sunday</span>
<img class="weekly-forecast-icon" src="assets/images/animation-image/rain.svg" alt="" />
<span class="forecast-temp-high"> 42 ° C</span>
<span class="forecast-temp-low"> 32 ° C</span>
</li>
</ul>
</div>
<div class="flex daily-forecast hidden">
<ul class="flex daily-weekly-forecast">
<li class="flex flex-column day">
<span class="forecast-time">5am</span>
<img class="daily-forecast-icon" src="assets/images/animation-image/overcast.svg" alt="" />
<span class="daily-forecast-temp"> 42 ° C</span>
</li>
<li class="flex flex-column day">
<span class="forecast-time">8am</span>
<img class="daily-forecast-icon" src="assets/images/animation-image/thunderstorms-day-rain.svg"
alt="broken" />
<span class="daily-forecast-temp"> 42 ° C</span>
</li>
<li class="flex flex-column day">
<span class="forecast-time">11am</span>
<img class="daily-forecast-icon" src="assets/images/animation-image/hail.svg" alt="" />
<span class="daily-forecast-temp"> 42 ° C</span>
</li>
<li class="flex flex-column day">
<span class="forecast-time">2pm</span>
<img class="daily-forecast-icon" src="assets/images/animation-image/partly-cloudy-day-rain.svg"
alt="" />
<span class="daily-forecast-temp"> 42 ° C</span>
</li>
<li class="flex flex-column day">
<span class="forecast-time">5pm</span>
<img class="daily-forecast-icon" src="assets/images/animation-image/raindrops.svg" alt="" />
<span class="daily-forecast-temp"> 42 ° C</span>
</li>
<li class="flex flex-column day">
<span class="forecast-time">8pm</span>
<img class="daily-forecast-icon" src="assets/images/animation-image/clear-day.svg" alt="" />
<span class="daily-forecast-temp"> 42 ° C</span>
</li>
<li class="flex flex-column day">
<span class="forecast-time">11pm</span>
<img class="daily-forecast-icon" src="assets/images/animation-image/clear-night.svg" alt="" />
<span class="daily-forecast-temp"> 42 ° C</span>
</li>
</ul>
</div>
</div>
</div>
</section>
<footer class="flex footer">
<div class="socials">
<i class="fa-solid fa-code"></i>
<strong>
<a href="https://roychan-bitcooker.netlify.app/" target="_blank">BitCookr
</a>
</strong>
<a href="
https://github.com/bitcooker/wish-you-safe-and-sound" target="_blank">
<i class="fa-brands fa-github"></i>
</a>
</div>
<div class="flex socialsCredits">
Credits
<a href="https://bas.dev/work/meteocons" target="_blank">
<img src="./assets/images/static-image/meteocons.svg" width="24px" height="24px" alt="" />
</a>
<a href="https://open-meteo.com/" target="_blank">
<img src="./assets/images/animation-image/clear-day.svg" width="24px" height="24px" alt="open-meteo.com" />
</a>
<a href="https://openweathermap.org" target="_blank">
<img src="./assets/images/static-image/openweather.png" width="36px" height="36px" alt="openweathermap.org" />
</a>
</div>
</footer>
</div>
<script src="scripts/index.js"></script>
</body>
</html>