-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
86 lines (82 loc) · 3.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css">
<link rel="stylesheet" href="style.css">
<title>Weather Dashboard</title>
</head>
<body>
<nav class="navbar navbar-dark bg-dark">
<span class="navbar-brand mb-0 h1 w-100 text-center">Weather Dashboard</span>
</nav>
<div class="container">
<div class="row">
<div class="col-4 bg-light">
<p class="search-header my-1">Search for a city</p>
<div class="input-group mb-3">
<input id="city-input" type="text" class="form-control" placeholder="Enter city name"
aria-label="Enter city name">
<div class="input-group-append">
<button class="btn btn-primary" type="button" id="search-button">
<i class="fas fa-search"></i>
</button>
</div>
</div>
<button class="btn btn-primary mb-3" type="button" id="clear-history">Clear history</button>
<form id="history"></form>
</div>
<div class="col-8">
<div class="row mr-0">
<div class="col-12 border border-dark m-3 rounded">
<div class="row">
<div class="col-12">
<span id="city-name" class="city-name align-middle"></span>
<img id="current-pic" src="placeholder" alt="">
</div>
</div>
<div class="row">
<div class="col-12">
<p id="temperature"></p>
</div>
</div>
<div class="row">
<div class="col-12">
<p id="humidity"></p>
</div>
</div>
<div class="row">
<div class="col-12">
<p id="wind-speed"></p>
</div>
</div>
<div class="row">
<div class="col-12 d-flex">
<p id="UV-index"></p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<h3>5-Day Forecast</h3>
</div>
</div>
<div class="row">
<div class="col forecast bg-primary text-white ml-3 mb-3 rounded"></div>
<div class="col forecast bg-primary text-white ml-3 mb-3 rounded"></div>
<div class="col forecast bg-primary text-white ml-3 mb-3 rounded"></div>
<div class="col forecast bg-primary text-white ml-3 mb-3 rounded"></div>
<div class="col forecast bg-primary text-white ml-3 mb-3 rounded"></div>
</div>
</div>
</div>
</div>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="script.js"></script>
</body>
</html>