-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
137 lines (123 loc) · 5.27 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
137
<!DOCTYPE html>
<html lang="en-gb">
<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" />
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<!-- Font awesome CDN -->
<script src="https://kit.fontawesome.com/088f2e4985.js" crossorigin="anonymous"></script>
<!-- Google Fonts -->
<link href='https://fonts.googleapis.com/css?family=Inter' rel='stylesheet'>
<!-- jQuery Css -->
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css">
<!-- Import local stylesheet -->
<link rel="stylesheet" href="assets/css/style.css" />
<title>Weather Dashboard</title>
</head>
<body>
<header class="d-flex flex-wrap justify-content-center py-3 mb-4 border-bottom">
<a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-dark text-decoration-none">
<svg class="bi me-2" width="40" height="32"><use xlink:href="#bootstrap"></use></svg>
<span class="fs-4">Weather Dashboard</span>
</a>
<ul class="nav nav-pills">
<li class="nav-item"><a href="./index.html" class="nav-link active" aria-current="page">Home</a></li>
<li class="nav-item" class="aboutBtn"><a href="https://github.com/gsgghotra/Weather-Forecast-Dashboard" target="_blank" class="nav-link">Github</a></li>
</ul>
</header>
<div class="container">
<!-- max-width for ultra wide resolutions -->
<div class="container-fluid main" style="max-width: 1200px">
<div class="row search">
<!-- Search Box -->
<form id="search-form" class="form">
<i class="search-icon fas fa-search"></i>
<input type="text" id="search-input" placeholder="Search for a City" aria-labelledby="form-heading" aria-controls="today forecast" >
<button type="submit" class="btn search-button" id="search-button" aria-label="submit search">
Search
</button>
</form>
<!-- Search History -->
<div class="list-group" id="history">
<h4 class="heading" id="historyHeading">Recently viewed:</h4>
<div id="listOfCities">
<!-- Search History -->
</div>
</div>
</div>
<!-- Current Location -->
<div class="row justify-content-evenly currentLocation">
<aside class="col-4 pb-3 text-center currentWeather">
<!-- Current Location -->
<section id="todayDate"></section>
<h2 id="searchedLocation"></h2>
<section id="weatherStatus">
<!-- 1 Row and 2 columns -->
<div class="row">
<div class="col-6">
<img id="weather_image"></img>
</div>
<div class="col-6">
<p id="temprature"></p>
<p id="currentWeather">Rain</p>
</div>
</div>
</section>
</aside>
<div class="col-6 pb-3 locationDescription">
<section id="today" class="mt-3" role="region" aria-live="polite">
<!-- Row for 3 columns -->
<div class="row justify-content-evenly text-center align-items-center">
<!-- Each col can have 2 rows -->
<div class="col-4">
<div class="row">
<p class="descriptionHeading">Max</p>
<p class="descriptionText" id="tempMax"></p>
</div>
<div class="row">
<p class="descriptionHeading">Min</p>
<p class="descriptionText" id="tempMin"></p>
</div>
</div>
<div class="col-4">
<div class="row">
<p class="descriptionHeading">Wind</p>
<p class="descriptionText" id="wind"></p>
</div>
<div class="row">
<p class="descriptionHeading">Humidity</p>
<p class="descriptionText" id="humidity"></p>
</div>
</div>
<div class="col-4">
<div class="row">
<p class="descriptionHeading">Sunrise</p>
<p class="descriptionText" id="sunrise"></p>
</div>
<div class="row">
<p class="descriptionHeading">Sunset</p>
<p class="descriptionText" id="sunset"></p>
</div>
</div>
</div>
</section>
</div>
</div>
<!-- 5 Day Forecast -->
<h6 class="forecastHeading row ms-3 ps-3">5 Day Forecast</h6>
<div class="row fiveDayForecast justify-content-evenly">
</div>
</div>
</div>
<!-- Day.js -->
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
<!-- Jquery script tags -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<!-- scripts -->
<script src="assets/js/search.js"></script>
<script src="assets/js/script.js"></script>
</body>
</html>