-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
196 lines (171 loc) · 7.84 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
<!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">
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/js/all.min.js"
integrity="sha512-6PM0qYu5KExuNcKt5bURAoT6KCThUmHRewN3zUFNaoI6Di7XJPTMoT6K0nsagZKk2OB4L7E3q1uQKHNHd4stIQ=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="stylesheet" href="./assets/css/style.css">
<title>Weather App with API</title>
</head>
<body>
<div class="loading">
<img src="./assets/img/oval.svg" width="50" alt="">
<p>Loading Weather data...</p>
</div>
<div class="container">
<!---------------- Search City --------------->
<div class="container-search">
<div class="search-city">
<div class="search-cloud-bg"></div>
<div class="search-city-content">
<div class="buttons">
<button class="search-btn ">Search for places</button>
<button class="location-btn"><i class="fa-solid fa-location-crosshairs"></i></button>
</div>
<div class="w-status">
<img class="w-img" src="./assets/img/LightCloud.png" alt="">
<p class="degree-s"><span>30</span><span class="celci-s">°C</span> </p>
<p class="w-desc">Few clouds</p>
<div class="today"><span>Today</span><span class="dot"><svg stroke="currentColor" fill="currentColor"
stroke-width="0" viewBox="0 0 16 16" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg">
<path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z"></path>
</svg></span><span class="date-day">Thu</span>, <span class="date-num">16 </span> <span class="date-month">Jun</span> </div>
<div class="location-s"><i class="fa-solid fa-location-dot"></i><span class="city-name">Raleigh </span> <span> , </span>
<span class="country-name"> USA</span>
</div>
</div>
</div>
</div>
<!---------------- weather -nav-mobile --------------->
<div class="nav-search">
<div class="nav-search-close">
<i class="fa-solid fa-xmark"></i>
</div>
<div class="nav-search-search">
<div class="nav-input-content">
<input class="nav-search-input" type="search" placeholder="search location" >
<i class="fa-solid fa-magnifying-glass"></i>
<button class="nav-search-button">Search</button>
</div>
</div>
<ul class="nav-search-result-ul">
</ul>
</div>
</div>
<!---------------- celcious fahreneit --------------->
<div class="statistic-all">
<div class="cel-fa">
<div>
<div class="cel-fa-cf celci cel-fa-active">°C</div>
<div class="cel-fa-cf fahren">°F</div>
</div>
</div>
<!---------------- Weekly status --------------->
<div class="statistic">
<div class="weekly">
<div class="day cursor day1">
<p class="day-desc">Tomorow</p>
<div class="day-img">
<img src="./assets/img/LightCloud.png" alt="">
</div>
<div class="day-degree">
<p class="daytime"><span class="daytime-celc celc-max">40.3</span>
<span class="fahr-f">°C</span> </p>
<p class="night"><span class="night-celc celc-min">23.6</span><span class="fahr-f">°C</span></p>
</div>
</div>
<div class="day day2">
<p class="day-desc">Tomorow</p>
<div class="day-img">
<img src="./assets/img/LightCloud.png" alt="">
</div>
<div class="day-degree">
<p class="daytime"><span class="daytime-celc celc-max">40.3</span><span class="fahr-f">°C</span></p>
<p class="night"><span class="night-celc celc-min">23.6</span><span class="fahr-f">°C</span></p>
</div>
</div>
<div class="day day3">
<p class="day-desc">Tomorow</p>
<div class="day-img">
<img src="./assets/img/LightCloud.png" alt="">
</div>
<div class="day-degree">
<p class="daytime"><span class="daytime-celc celc-max">40.3</span><span class="fahr-f">°C</span></p>
<p class="night"><span class="night-celc celc-min">23.6</span><span class="fahr-f">°C</span></p>
</div>
</div>
<div class="day day4">
<p class="day-desc">Tomorow</p>
<div class="day-img">
<img src="./assets/img/LightCloud.png" alt="">
</div>
<div class="day-degree">
<p class="daytime"><span class="daytime-celc celc-max">40.3</span><span class="fahr-f">°C</span></p>
<p class="night"><span class="night-celc celc-min">23.6</span><span class="fahr-f">°C</span></p>
</div>
</div>
<div class="day day5">
<p class="day-desc">Tomorow</p>
<div class="day-img">
<img src="./assets/img/LightCloud.png" alt="">
</div>
<div class="day-degree">
<p class="daytime"><span class="daytime-celc celc-max">40.3</span><span class="fahr-f">°C</span></p>
<p class="night"><span class="night-celc celc-min">23.6</span><span class="fahr-f">°C</span></p>
</div>
</div>
</div>
<!---------------- today higlights --------------->
<div class="highlights">
<h2>Today's Highlights</h2>
<div class="w-status">
<div class="w-status-top">
<div class="status-top">
<p>Wind status</p>
<p><span class="quantity wind-speed">7</span>mph</p>
<div class="rotate-wind">
<div class="rotate-icon"><svg stroke="currentColor" fill="currentColor" stroke-width="0"
viewBox="0 0 512 512" class="icon" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg">
<path
d="M444.52 3.52L28.74 195.42c-47.97 22.39-31.98 92.75 19.19 92.75h175.91v175.91c0 51.17 70.36 67.17 92.75 19.19l191.9-415.78c15.99-38.39-25.59-79.97-63.97-63.97z">
</path>
</svg></div><span class="wind-cdir">wsw</span>
</div>
</div>
<div class="status-top">
<p class="humidity">Humidity</p>
<p><span class="quantity humidity-deg">84</span>%</p>
<div class="progress">
<p class="progress-0">0</p>
<p class="progress-50">50</p>
<p class="progress-100">100</p>
<progress id="file" class="progress-bar " value="84" max="100"> </progress>
<p class="progress-percent">%</p>
</div>
</div>
</div>
<div class="w-status-bottom">
<div class=" status-bottom">
<p class="visibility">Visibility</p>
<p><span class="quantity visibility-deg">6,4</span>miles</p>
</div>
<div class="pressure status-bottom">
<p>Air Pressure</p>
<p><span class="quantity air-press">998</span>mb</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="./assets/js/app.js"></script>
</body>
</html>