-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (42 loc) · 1.26 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
<!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">
<title>Weather App</title>
<!-- HTML -->
<link rel="stylesheet" href="style.css">
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
</head>
<body>
<div class="app">
<div class="search">
<input class="res" type="text" placeholder="Enter city name">
<button onclick="weatherData(searchInput.value)"><i class="bx bx-search-alt-2 bx-md"></i></button>
</div>
<div class="weather">
<img id="icon" src="https://placehold.co/64x64" alt="w-icon">
<h3 class="text">Rainy</h3>
<h1 class="temp">22°C</h1>
<h2 class="city">Ilorin</h2>
<div class="details">
<div class="col">
<i class='bx bx-water bx-md'></i>
<p class="humidity">59%</p>
<p>Humidity</p>
</div>
<div class="col">
<i class='bx bx-wind bx-md'></i>
<p class="wind">23 km/h</p>
<p>Wind Speed</p>
</div>
</div>
</div>
</div>
<footer>
©<span id="year"></span> by Sanni Aliyu
</footer>
<script src="main.js"></script>
</body>
</html>