-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (39 loc) · 1.56 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./src/styles.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/axios.min.js"></script>
<title>Basic Weather App</title>
</head>
<body>
<div class="main-app">
<header>
<form id="search-form">
<input type="text" name="" id="input-field" placeholder="Enter a city" required>
<input type="submit" value="Search" class="search-button">
</form>
</header>
<main>
<div class="main-weather">
<h1 id="current-city"></h1>
<p>
<span class="date"></span>, <span class="weather-condition">scattered clouds</span>
<br>
Humidity: <span class="humidity">66%</span>, Wind: <span class="wind"><span class="wind-value">3.13</span>km/h</span>
</p>
</div>
<div class="weather">
<div id="icon"><img class="weather-icon" src="http://shecodes-assets.s3.amazonaws.com/api/weather/icons/broken-clouds-day.png" alt=""></div>
<div class="weather-value"></div>
<div class="weather-unit">°C</div>
</div>
</main>
<div class="forecast" id="forecast">
</div>
<footer>Coded by <a href="https://github.com/sernamalala" target="_blank">Serna Malala</a> .open sourced on <a href="https://github.com/sernamalala/Basic-Weather-Application" target="_blank">Github</a> and hosted on <a href="https://simpleandeasyweatherapplication.netlify.app/" target="_blank">Netlify</a></footer>
</div>
<script src="./src/index.js"></script>
</body>
</html>