-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
256 lines (240 loc) · 9.39 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="description"
content="For any city obtain current and 5 days forcast. Includes: weather description, temperature, humidty, wind speed, UV index and more!"
/>
<meta
name="keywords"
content="web development, weather, HTML, CSS, JavaScript, Bootstrap, jQuery, Windy.com, OpenWeather"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
crossorigin="anonymous"
/>
<!-- Main CSS -->
<link rel="stylesheet" href="./style.css" />
<title>Weather Dashboard</title>
</head>
<body>
<header class="subtitle">
<h1>Weather Dashboard</h1>
</header>
<!-- Container -->
<main class="container">
<div class="row row-cols-1 row-cols-lg-2">
<!-- Search Cities -->
<section class="col col-lg-3 searchedCitiesSection">
<div class="card">
<div class="card-header subtitle">
<h5>Search Cities</h5>
</div>
<div class="card-body">
<!-- Search Form -->
<form class="form-inline">
<div class="form-group mb-2">
<input type="search" class="form-control" id="cityInput" />
</div>
<button type="submit" class="btn mb-2" id="searchBtn">
<i class="fas fa-search-location"></i>
</button>
</form>
<!-- /Search Form -->
<!-- Cities List -->
<div class="list-group listSearchedCities">
<!-- /Cities List -->
</div>
</div>
</div>
</section>
<!-- /Search Cities -->
<!-- Current Weather -->
<section class="col col-lg-9">
<div class="card">
<div class="card-header subtitle">
<h5>Current Weather</h5>
</div>
<div class="card-body currentWeather">
<div class="card mb-3 currentData">
<div class="card-header city">City</div>
<div class="card-body">
<div
class="row row-cols-1 row-cols-sm-2 justify-content-start"
>
<div class="col col-sm-3">
<img
src="#"
class="card-img-top icon"
alt="Weather icon"
style="display: none;"
/>
<p class="card-text date">Date</p>
<p class="card-text weather">Weather</p>
<p class="card-text temp">Temp</p>
<p class="card-text humid">Humid</p>
<p class="card-text wind">Wind Speed</p>
<p class="card-text">
<span class="uv">Index</span> <span class="flag"></span>
</p>
</div>
<!-- The Windy Map -->
<div class="col col-sm-9">
<div class="card-body">
<div id="windy"></div>
<!-- /The Windy Map -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- /Current Weather -->
</div>
<!-- Forcast -->
<section class="row forecast">
<div class="col col1">
<div class="card">
<div class="card-header subtitle">
<h5>Forecast</h5>
</div>
<div class="card-body">
<div class="row row-cols-5">
<div class="col">
<div class="card mb-3" style="max-width: 18rem;">
<div class="card-header date">Day 1</div>
<div class="card-body">
<img
src="#"
class="card-img-top icon"
alt="Weather icon"
style="display: none;"
/>
<p class="card-text weather">Weather</p>
<p class="card-text temp">Temp</p>
<p class="card-text humid">Humid</p>
<p class="card-text wind">Wind Speed</p>
<p class="card-text">
<span class="uv">Index</span> <span class="flag"></span>
</p>
</div>
</div>
</div>
<div class="col">
<div class="card mb-3" style="max-width: 18rem;">
<div class="card-header date">Day 2</div>
<div class="card-body">
<img
src="#"
class="card-img-top icon"
alt="Weather icon"
style="display: none;"
/>
<p class="card-text weather">Weather</p>
<p class="card-text temp">Temp</p>
<p class="card-text humid">Humid</p>
<p class="card-text wind">Wind Speed</p>
<p class="card-text">
<span class="uv">Index</span> <span class="flag"></span>
</p>
</div>
</div>
</div>
<div class="col">
<div class="card mb-3" style="max-width: 18rem;">
<div class="card-header date">Day 3</div>
<div class="card-body">
<img
src="#"
class="card-img-top icon"
alt="Weather icon"
style="display: none;"
/>
<p class="card-text weather">Weather</p>
<p class="card-text temp">Temp</p>
<p class="card-text humid">Humid</p>
<p class="card-text wind">Wind Speed</p>
<p class="card-text">
<span class="uv">Index</span> <span class="flag"></span>
</p>
</div>
</div>
</div>
<div class="col">
<div class="card mb-3" style="max-width: 18rem;">
<div class="card-header date">Day 4</div>
<div class="card-body">
<img
src="#"
class="card-img-top icon"
alt="Weather icon"
style="display: none;"
/>
<p class="card-text weather">Weather</p>
<p class="card-text temp">Temp</p>
<p class="card-text humid">Humid</p>
<p class="card-text wind">Wind Speed</p>
<p class="card-text">
<span class="uv">Index</span> <span class="flag"></span>
</p>
</div>
</div>
</div>
<div class="col">
<div class="card mb-3" style="max-width: 18rem;">
<div class="card-header date">Day 5</div>
<div class="card-body">
<img
src="#"
class="card-img-top icon"
alt="Weather icon"
style="display: none;"
/>
<p class="card-text weather">Weather</p>
<p class="card-text temp">Temp</p>
<p class="card-text humid">Humid</p>
<p class="card-text wind">Wind Speed</p>
<p class="card-text">
<span class="uv">Index</span> <span class="flag"></span>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- /Forcast -->
</main>
<!-- /Container -->
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- Bootstrap JS -->
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"
></script>
<!-- Font Awesome -->
<script
src="https://kit.fontawesome.com/e211982880.js"
crossorigin="anonymous"
></script>
<!-- Moments.js -->
<script src="https://momentjs.com/downloads/moment-with-locales.js"></script>
<!-- Windy Map API - Leaflet Library -->
<script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js"></script>
<!-- Windy Map API -->
<script src="https://api.windy.com/assets/map-forecast/libBoot.js"></script>
<!-- Main js -->
<script src="./app.js"></script>
</body>
</html>