-
-
Notifications
You must be signed in to change notification settings - Fork 165
/
index.html
236 lines (208 loc) · 11.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description"
content="A Beautiful weather app displaying a weekly weather forecast for the selected location" />
<title id="dynamic">Weather-App</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://fonts.googleapis.com">
<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=Belanosima&family=Chivo+Mono:ital,wght@1,300;1,400&family=Josefin+Sans:ital@1&family=Poppins:ital,wght@1,200;1,300&family=Raleway:wght@300&display=swap" rel="stylesheet">
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet">
<!-- favicon -->
<link rel="shortcut icon" type="image/jpg" href="./assets/weather-icon.png" />
<link rel="stylesheet" href="./assets/css/bootstrap.min.css">
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="stylesheet" href="./assets/compiled-css/styles.css">
<link rel="icon" href="assets/favicon.ico">
<!-- <link rel="logo" href="assets/icons/logo.png"> -->
<link rel="stylesheet" href="fonts/icomoon/style.css">
<!-- jquery CDN -->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script> -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- fontawesome CDN -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<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&display=swap" rel="stylesheet">
</head>
<body id="body">
<nav class="navbar top-nav">
<div class="logo">
<img src="./assets/icons/logo.png" alt="Logo" class="img-fluid logo-img">
</div>
<div style="display: flex;">
<i class="whatsapp" id="whatsapp-button">
<img src="assets/Whatsapp-logo.svg" alt="whatsapp">
</i>
<div class="nav-component__celcius-block col-auto">
<input type="checkbox" id="unit" class="checkbox">
<label for="unit" class="label">
<span class="farenheit" style="color:rgb(77, 158, 183);">°F</span>
<span class="celcius" style="color: rgb(235, 235, 80);">°C</span>
<div class='ball'>
</label>
</div>
</div>
</nav>
<div id="background"></div>
<h2 class="header-component mt-5"> <span id='date-time'></span></h2>
<section>
<div class="container">
<div class="row g-4">
<div class="col">
</div>
<div class="col">
</div>
</section>
<section class="pt-4 card-grid">
<div class="container">
<div class="row g-4">
<div class="col">
<div class="weather-component container d-flex justify-content-center align-items-center flex-column">
<div class="weather-component__card text-white rounded-5" style="padding-top: 50px;">
<div class="weather-component__search" style="margin-left: 1rem;">
<input type="text" class="weather-component__search-bar" name="search-bar" list="place"
placeholder="Search" autocomplete="address-level2" />
<datalist id="place" class="weather-component__datalist">
<!-- Content will be generated By Javascript -->
</datalist>
<div class="button_container" style="margin-left: 1rem;">
<button class="weather-component__button text-white rounded-circl"
aria-label="click here to search class" style="margin-top: 0.5rem; margin-right: -0.1rem;">
<svg stroke="currentColor" fill="#156569" stroke-width="0" viewBox="0 0 1024 1024" height="1.5em"
width="1.5em" xmlns="http://www.w3.org/2000/svg">
<path
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z">
</path>
</svg>
</button>
<button class="weather-component__button-microphone" aria-label="speak" id="microphone-button">
<svg style="color: white" xmlns="http://www.w3.org/2000/svg" width="20" height="20"
fill="green" class="bi bi-mic" viewBox="0 0 16 16">
<path
d="M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z"
fill="green"></path>
<path d="M10 8a2 2 0 1 1-4 0V3a2 2 0 1 1 4 0v5zM8 0a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V3a3 3 0 0 0-3-3z"
fill="green"></path>
</svg>
</button>
</div>
</div>
<div id="weather" class="weather-component__data loading">
<h1 id="city" class="weather-component__city-name fw-bold">Weather in ___</h1>
<h2 id="temp" class="weather-component__city-temperature fw-bold display-1">32°C</h2>
<div class="weather-component__data-wrapper">
<div class="weather-component__desc-primary">
<figure class="weather-component__icn">
<img class="icon" src="https://openweathermap.org/img/wn/04n.png" alt="Partly Cloudy" id="icon" />
<figcaption class="text-uppercase text-wrap" id="description">___</figcaption>
</figure>
<div class="weather-component__AQI" style="display: flex; flex-direction: column;">
<div id="AirQuality">Air Quality: 75
</div>
<div class="air-quality-label ml-0">Satisfactory</div>
</div>
</div>
<div class="weather-component__desc-secondary d-flex ">
<div class="d-flex flex-1 flex-column" style="margin-top: 10px;">
<figure class="d-flex flex-1 flex-row humidity ms-0">
<img src="./assets/icons/humidity.png" alt="Humidity" class="humidity-img">
<figcaption id="humidity"><a href="https://en.wikipedia.org/wiki/Humidity">Humidity</a>: 60%
</figcaption>
</figure>
<div class="d-flex flex-1 flex-row wind ms-0"><img src="./assets/icons/wind.png" alt="Wind Speed"
class="wind-img">
<div id="wind"><a href="https://en.wikipedia.org/wiki/Wind_speed">Wind speed</a>: 6.2 km/h
</div>
</div>
</div>
<div class="d-flex flex-1 flex-column">
<figure class="d-flex flex-1 flex-row sunrise me-0 justify-content-end">
<img src="./assets/icons/sunrise (2).png" alt="Sunrise" class="sunrise-img">
<figcaption id="sunrise"><a href="https://en.wikipedia.org/wiki/Sunrise">Sunrise</a>:5:00AM
</figcaption>
</figure>
<figure class="d-flex flex-1 flex-row sunset me-0 justify-content-end"><img
src="./assets/icons/sunset (1).png" alt="Sunset" class="sunset-img">
<figcaption id="sunset" style="margin-right: 0.65rem;"><a href="https://en.wikipedia.org/wiki/Sunset">Sunset</a>:6:00AM
</figcaption>
</figure>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col" style="margin-top: 3.5rem;">
<div class="forecast-component p-2 overflow-hidden text-white w-100">
<div class="forecast-component__items-wrapper transition overflow-hidden " id="weather-forecast">
<div class="forecast-component__item rounded text-center" id="weather-forecast-item">
<div>Mon</div>
<figure class="forecast-img">
<img src="http://openweathermap.org/img/wn/[email protected]" alt="weather icon">
</figure>
<div>Day - 35.6° C</div>
<div>Night - 25.6° C</div>
<div>view more</div>
</div>
</div>
</div>
</div>
</section>
<!-- toast -->
<div class="toast-component" id="toast">
<div class="toast-component__checkicon"><i class="fas fa-check-square"></i></div>
</div>
<footer>
<a href="#top" class="smoothscroll scroll-top">
<span class="icon-keyboard_arrow_up"></span>
</a>
<div>
<h2 class="textfooter">
Made with 💝 Avinash Singh
</h2>
<div class="footerSection">
<ul style="list-style: none;margin:0;padding:0;color: white; display: inline-flex;">
<li>
<a href="https://github.com/avinash201199" target="_blank">
<i class="socialIcons fab fa-github fa-3x link1"></i>
</li>
<li>
<a href="https://www.linkedin.com/in/avinash-singh-071b79175/" target="_blank">
<i class="fab fa-linkedin-in fa-3x link2"></i>
</li>
<li>
<a href="https://www.instagram.com/lets__code/" target="_blank">
<i class="fab fa-instagram fa-3x link3"></i>
</li>
<li>
<a href="https://twitter.com/Lets__Code/" target="_blank">
<i class="fa-brands fa-x-twitter fa-3x link4"></i>
</li>
</ul>
</div>
</div>
</footer>
<!-- jquery CDN -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.slim.min.js"
integrity="sha512-yBpuflZmP5lwMzZ03hiCLzA94N0K2vgBtJgqQ2E1meJzmIBfjbb7k4Y23k2i2c/rIeSUGc7jojyIY5waK3ZxCQ=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- popper CDN -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<!-- moment CDN -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"
integrity="sha512-qTXRIMyZIFb8iQcfjXWCO8+M5Tbc38Qi5WzdPOYZHIlZpzBHG3L3by84BBBOiRGiEb7KKtAOAs5qYdUiZiQNNQ=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script type="module" src="./assets/js/script.js"></script>
</body>
</html>