-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (114 loc) · 4.08 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="./assets/css/style.css" />
<title>Weather Dashboard</title>
</head>
<body>
<!-- Nav bar for searching Weather and Dropdown displaying searched cities -->
<nav class="navbar navbar-expand-lg bg-body-tertiary mb-5">
<div class="container-fluid">
<a class="navbar-brand" href="#">Weather Dashboard</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<!-- <li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li> -->
<!-- <li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li> -->
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>
Cities
</a>
<ul id="city-dropdown" class="dropdown-menu">
<!-- <li><a class="dropdown-item" href="#"></a></li> -->
</ul>
</li>
<!-- <li class="nav-item">
<a class="nav-link disabled" aria-disabled="true">Disabled</a>
</li> -->
</ul>
<form id="city-search" class="d-flex" role="search">
<input
id="user-City"
class="form-control me-2"
type="search"
placeholder="Search"
aria-label="Search"
/>
<button
id="search-button"
class="btn btn-outline-success"
type="submit"
>
Search
</button>
</form>
</div>
</div>
</nav>
<!-- Card for daily weather display -->
<div class="card mb-3 container" style="max-width: 90vw">
<div class="row g-0">
<div class="col-md-4" id="cWeatherIcon">
<img id="today-weather-icon" class="img-fluid rounded-start" alt="" />
</div>
<div class="col-md-8">
<div class="card-body">
<h5 id="today-weather-city-name" class="card-title">
</h5>
<p id="today-weather-temp" class="card-text"></p>
<p id="today-weather-wind" class="card-text"></p>
<p id="today-weather-humidity" class="card-text"></p>
</div>
</div>
</div>
</div>
<!-- Card Template -->
<div id="forecast-contain" class="card-group">
<!-- <div class="card">
<img src="" class="card-img-top" alt="" />
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text"></p>
<p class="card-text"></p>
<p class="card-text"></p>
</div>
</div> -->
</div>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"
crossorigin="anonymous"
></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
<script src="./assets/js/script.js"></script>
</body>
</html>