-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
136 lines (129 loc) · 5.68 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link href="https://use.fontawesome.com/releases/v5.0.7/css/all.css" rel="stylesheet">
<link rel="stylesheet" href="./assets/css/style.css">
<title>Weather Dashboard</title>
</head>
<body>
<header>
<nav class="navbar bg-color justify-content-center text-center">
<h3 class="text-white display-4">Weather Dashboard</h3>
</nav>
</header>
<main class="container-fluid p-md-5 pt-3">
<div class="row">
<div class="col-lg-3 col-md-5 col-sm-12">
<form class="mb-3">
<label class="text-dark" for="search-text">Search by city or zip</label>
<div class="input-group">
<input class="form-control" type="search" placeholder="Search" aria-label="Search" id="search-txt">
<button class="btn btn-outline-info ml-2" type="submit" id="search-btn"><i
class="fas fa-search"></i></button>
</div>
</form>
<p>Recent</p>
<div class="recent">
<button class="btn btn-light w-100 mb-2 city-btn" data-name="Sacramento, US">Sacramento, US</button>
<button class="btn btn-light w-100 mb-2 city-btn" data-name="Manhattan, US">Manhattan, US</button>
<button class="btn btn-light w-100 mb-2 city-btn" data-name="Ontario, CA">Ontario, CA</button>
</div>
</div>
<div class="col-lg-9 col-md-7 col-sm-12">
<div class="row">
<div class="col">
<div class="card">
<div class="card-body">
<h1 class="mb-3" id="current-city"></h1>
<div class="float-right mr-5" id="weather-icon"></div>
<p class="current-label">Temp: <span id="current-temp"></span></p>
<p class="current-label">Humidity: <span id="current-humidity"></span></p>
<p class="current-label">Wind Speed: <span id="current-windspeed"></span></p>
<p class="current-label">UV Index: <span id="current-uv"></span></p>
</div>
</div>
</div>
</div>
<div class="row my-3">
<div class="col">
<div class="card">
<div class="card-body">
<div class="row mb-2">
<div class="col">
<h4>5-Day Forecast</h4>
<p>Displayed in local time at 24 Hour increments.</p>
</div>
</div>
<div class="row d-flex justify-content-between">
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 mb-4">
<div class="card text-center card-bg hide">
<div class="card-body">
<h5 class="card-title" id="day-one-date"></h5>
<div id="day-one-icon"></div>
<p id="day-one-temp"></p>
<p id="day-one-humid"></p>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 mb-4">
<div class="card text-center card-bg hide">
<div class="card-body">
<h5 class="card-title" id="day-two-date"></h5>
<div id="day-two-icon"></div>
<p id="day-two-temp"></p>
<p id="day-two-humid"></p>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 mb-4">
<div class="card text-center card-bg hide">
<div class="card-body">
<h5 class="card-title" id="day-three-date"></h5>
<div id="day-three-icon"></div>
<p id="day-three-temp"></p>
<p id="day-three-humid"></p>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 mb-4">
<div class="card text-center card-bg hide">
<div class="card-body">
<h5 class="card-title" id="day-four-date"></h5>
<div id="day-four-icon"></div>
<p id="day-four-temp"></p>
<p id="day-four-humid"></p>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 mb-4">
<div class="card text-center card-bg hide">
<div class="card-body">
<h5 class="card-title" id="day-five-date"></h5>
<div id="day-five-icon"></div>
<p id="day-five-temp"></p>
<p id="day-five-humid"></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<footer class="footer mt-auto py-3 text-center">
<div class="container">
<span class="text-dark">Developed By <a href="https://yeasir01.github.io/professional-portfolio/"
class="footer-link">Yeasir H.</a></span>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script src="./assets/js/script.js"></script>
</body>
</html>