-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (47 loc) · 2.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Live Weather Application</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" href="style.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:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<script src="https://unpkg.com/axios@1.1.2/dist/axios.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.30.1/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.46/moment-timezone-with-data-1970-2030.min.js"></script>
</head>
<body>
<div class="weather-info">
<header>
<form id ="search-form">
<input class="search-input" type="search" placeholder="Enter a city.." required autofocus id ="search-city" autocomplete="off"/>
<input class="submit-button" type="Submit" value="Search" class="button"/>
</form>
</header>
<main>
<div class="current-weather">
<div>
<h1 class="current-city" id ="current-city"></h1>
<p class="current-weather-details"><span id="current-date-info"></span>, <span id ="description"></span> <br>Humidity: <strong id = "humidity"></strong>, Wind: <strong id = "wind-speed"></strong>
</p>
</div>
<div class="current-temperature-info">
<div class="current-temperature-icon"><img id="temperature-icon"></div>
<div class="current-temperature-value" id ="temperature-value"></div>
<div class="current-temperature-unit">°C</div>
</div>
</div>
<div class="weather-forecast" id="forecast"></div>
</main>
<footer>
<p class="code-credit">
This project was coded by <a href="https://github.com/CharityO3" target="_blank">Charity Orhoridiohwo</a> and is open-sourced on <a href="https://github.com/CharityO3/My-Live-Weather-App" target="_blank">GitHub</a> and hosted on <a href="https://my-live-weather-app.netlify.app/" target="_blank">Netlify</a>
</p>
</footer>
</div>
<script src="script.js"></script>
</body>
</html>