-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
246 lines (240 loc) · 11.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Weather App</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<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=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./src/css/style.css" />
<script type="module" src="./src/js/script.js" defer></script>
</head>
<body>
<header class="header">
<h1>Weather App</h1>
</header>
<main>
<section id="search-section">
<div class="search-container">
<form class="search-form">
<label class="search-label">
<p class="search-title">Search</p>
<img
src="./src/assets/icons/search-svgrepo-com.svg"
alt="Search"
/>
<input
type="text"
id="search-input"
class="search-input-shadow"
placeholder="Enter city name"
maxlength="30"
required
/>
</label>
</form>
<ul class="search-results hidden" data-search-results></ul>
</div>
</section>
<section id="current-section" class="hidden" data-current-section>
<div class="current-wrapper card">
<div class="location">
<h2 class="city-name" data-city-name></h2>
<p class="city-other" data-city-other></p>
</div>
<div class="current-temp-icon">
<div class="temp">
<h1 class="current-temp"><span data-temp></span>°</h1>
<p class="descr" data-descr></p>
<p class="apparent-temp"><span data-apparent-temp></span>°</p>
</div>
<img src="" alt="" class="icon" data-icon />
</div>
</div>
</section>
<section id="hourly-section" class="hidden" data-hourly-section>
<div class="card">
<div class="hourly">
<p class="time" data-time-0>12:00</p>
<p class="time" data-time-1>12:00</p>
<p class="time" data-time-2>13:00</p>
<p class="time" data-time-3>14:00</p>
<p class="time" data-time-4>15:00</p>
<p class="time" data-time-5>16:00</p>
<p class="time" data-time-6>17:00</p>
<p class="time" data-time-7>18:00</p>
<p class="time" data-time-8>19:00</p>
<p class="time" data-time-9>20:00</p>
<p class="time" data-time-10>21:00</p>
<p class="time" data-time-11>22:00</p>
<p class="time" data-time-12>23:00</p>
<p class="time" data-time-13>00:00</p>
<p class="time" data-time-14>01:00</p>
<p class="time" data-time-15>02:00</p>
<p class="time" data-time-16>03:00</p>
<p class="time" data-time-17>04:00</p>
<p class="time" data-time-18>05:00</p>
<p class="time" data-time-19>06:00</p>
<p class="time" data-time-20>07:00</p>
<p class="time" data-time-21>08:00</p>
<p class="time" data-time-22>09:00</p>
<p class="time" data-time-23>10:00</p>
<img src="" alt="" data-icon-0 />
<img src="" alt="" data-icon-1 />
<img src="" alt="" data-icon-2 />
<img src="" alt="" data-icon-3 />
<img src="" alt="" data-icon-4 />
<img src="" alt="" data-icon-5 />
<img src="" alt="" data-icon-6 />
<img src="" alt="" data-icon-7 />
<img src="" alt="" data-icon-8 />
<img src="" alt="" data-icon-9 />
<img src="" alt="" data-icon-10 />
<img src="" alt="" data-icon-11 />
<img src="" alt="" data-icon-12 />
<img src="" alt="" data-icon-13 />
<img src="" alt="" data-icon-14 />
<img src="" alt="" data-icon-15 />
<img src="" alt="" data-icon-16 />
<img src="" alt="" data-icon-17 />
<img src="" alt="" data-icon-18 />
<img src="" alt="" data-icon-19 />
<img src="" alt="" data-icon-20 />
<img src="" alt="" data-icon-21 />
<img src="" alt="" data-icon-22 />
<img src="" alt="" data-icon-23 />
<p class="temp"><span data-temp-0>19</span>°</p>
<p class="temp"><span data-temp-1>19</span>°</p>
<p class="temp"><span data-temp-2>19</span>°</p>
<p class="temp"><span data-temp-3>19</span>°</p>
<p class="temp"><span data-temp-4>19</span>°</p>
<p class="temp"><span data-temp-5>19</span>°</p>
<p class="temp"><span data-temp-6>19</span>°</p>
<p class="temp"><span data-temp-7>19</span>°</p>
<p class="temp"><span data-temp-8>19</span>°</p>
<p class="temp"><span data-temp-9>19</span>°</p>
<p class="temp"><span data-temp-10>19</span>°</p>
<p class="temp"><span data-temp-11>19</span>°</p>
<p class="temp"><span data-temp-12>19</span>°</p>
<p class="temp"><span data-temp-13>19</span>°</p>
<p class="temp"><span data-temp-14>19</span>°</p>
<p class="temp"><span data-temp-15>19</span>°</p>
<p class="temp"><span data-temp-16>19</span>°</p>
<p class="temp"><span data-temp-17>19</span>°</p>
<p class="temp"><span data-temp-18>19</span>°</p>
<p class="temp"><span data-temp-19>19</span>°</p>
<p class="temp"><span data-temp-20>19</span>°</p>
<p class="temp"><span data-temp-21>19</span>°</p>
<p class="temp"><span data-temp-22>19</span>°</p>
<p class="temp"><span data-temp-23>19</span>°</p>
<p class="precip"><span data-precip-0>4</span>%</p>
<p class="precip"><span data-precip-1>4</span>%</p>
<p class="precip"><span data-precip-2>4</span>%</p>
<p class="precip"><span data-precip-3>4</span>%</p>
<p class="precip"><span data-precip-4>4</span>%</p>
<p class="precip"><span data-precip-5>4</span>%</p>
<p class="precip"><span data-precip-6>4</span>%</p>
<p class="precip"><span data-precip-7>4</span>%</p>
<p class="precip"><span data-precip-8>4</span>%</p>
<p class="precip"><span data-precip-9>4</span>%</p>
<p class="precip"><span data-precip-10>4</span>%</p>
<p class="precip"><span data-precip-11>4</span>%</p>
<p class="precip"><span data-precip-12>4</span>%</p>
<p class="precip"><span data-precip-13>4</span>%</p>
<p class="precip"><span data-precip-14>4</span>%</p>
<p class="precip"><span data-precip-15>4</span>%</p>
<p class="precip"><span data-precip-16>4</span>%</p>
<p class="precip"><span data-precip-17>4</span>%</p>
<p class="precip"><span data-precip-18>4</span>%</p>
<p class="precip"><span data-precip-19>4</span>%</p>
<p class="precip"><span data-precip-20>4</span>%</p>
<p class="precip"><span data-precip-21>4</span>%</p>
<p class="precip"><span data-precip-22>4</span>%</p>
<p class="precip"><span data-precip-23>4</span>%</p>
</div>
</div>
</section>
<section id="daily-section" class="hidden" data-daily-section>
<div class="card">
<div class="daily">
<p class="day" data-day-0>ligma</p>
<p class="precip"><span data-precip-0>4</span>%</p>
<img src="" alt="" data-icon-0 />
<p class="temp"><span data-temp-max-0>19</span>°</p>
<p class="temp"><span data-temp-min-0>19</span>°</p>
<p class="day" data-day-1>Saturday</p>
<p class="precip"><span data-precip-1>4</span>%</p>
<img src="" alt="" data-icon-1 />
<p class="temp"><span data-temp-max-1>19</span>°</p>
<p class="temp"><span data-temp-min-1>19</span>°</p>
<p class="day" data-day-2>tortoise</p>
<p class="precip"><span data-precip-2>4</span>%</p>
<img src="" alt="" data-icon-2 />
<p class="temp"><span data-temp-max-2>19</span>°</p>
<p class="temp"><span data-temp-min-2>19</span>°</p>
<p class="day" data-day-3>Monday</p>
<p class="precip"><span data-precip-3>4</span>%</p>
<img src="" alt="" data-icon-3 />
<p class="temp"><span data-temp-max-3>19</span>°</p>
<p class="temp"><span data-temp-min-3>19</span>°</p>
<p class="day" data-day-4>Tuesday</p>
<p class="precip"><span data-precip-4>4</span>%</p>
<img src="" alt="" data-icon-4 />
<p class="temp"><span data-temp-max-4>19</span>°</p>
<p class="temp"><span data-temp-min-4>19</span>°</p>
<p class="day" data-day-5>Wednesday</p>
<p class="precip"><span data-precip-5>4</span>%</p>
<img src="" alt="" data-icon-5 />
<p class="temp"><span data-temp-max-5>19</span>°</p>
<p class="temp"><span data-temp-min-5>19</span>°</p>
<p class="day" data-day-6>Thursday</p>
<p class="precip"><span data-precip-6>4</span>%</p>
<img src="" alt="" data-icon-6 />
<p class="temp"><span data-temp-max-6>19</span>°</p>
<p class="temp"><span data-temp-min-6>19</span>°</p>
</div>
</div>
</section>
<section id="current-other-section" class="hidden">
<div class="current-other-wrapper">
<div class="aqi card">
<p class="title">AQI</p>
<p class="value" data-aqi></p>
</div>
<div class="uv-index card">
<p class="title">UV index</p>
<p class="value" data-uv-index></p>
</div>
<div class="humidity card">
<p class="title">Humidity</p>
<p class="value"><span data-humidity></span>%</p>
</div>
<div class="wind card">
<p class="title">Wind</p>
<p class="value"><span data-wind></span> km/h</p>
</div>
<div class="dew-point card">
<p class="title">Dew point</p>
<p class="value"><span data-dew-point></span>°</p>
</div>
<div class="pressure card">
<p class="title">Pressure</p>
<p class="value"><span data-pressure></span> mb</p>
</div>
<div class="visibility card">
<p class="title">Visibility</p>
<p class="value"><span data-visibility></span> km</p>
</div>
<!-- <div class="daylight card"></div> -->
</div>
</section>
</main>
<footer class="footer">
<p>Built with <a href="https://open-meteo.com">Open Meteo API.</a></p>
</footer>
</body>
</html>