-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (57 loc) · 2.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather App</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap" rel="stylesheet">
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="app-wrapper">
<header>
<form id="search-form">
<div class="row">
<div class="col-6">
<input type="search" id="city-input" placeholder="Search for a City..." autocomplete="off" autofocus ="on" class="search-box">
</div>
<div class="col-3">
<input type="submit" value="search" class="btn btn-primary"
>
</div>
<div class="col-3">
<button class="current-button btn btn-primary">Current </button>
</div>
</div>
</form>
</header>
<main>
<section class="location">
<div class="city"></div>
<div id="coords-info">Last updated: <span class="date"></span></div>
</section>
<div class="current">
<img src="" alt="" id="weather-icons">
<div><span class="temp"></span><span id="units"> <a href="#" id="celcius-link">°C</a> | <a href="#" id="fahr-link">°F</a></span></div>
<div class="weather"></div>
<div class="weather-units">
<div>Humidity: <span id="humidity"></span>%</div>
<div>Wind: <span id="wind"></span>Km/h</div>
</div>
</div>
<div class="row-weather" id="forecast-info">
</div>
</main>
<small>
<a href="https://github.com/Joy-FrontEnd/Weather-App1" target="_blank">Open-source code</a>
by Joy Muthoni
</small>
</div>
</div>
<script src="main.js"></script>
</body>
</html>