-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (54 loc) · 3.07 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather Dashboard</title>
<!--link reset css, local css, bootstrap and google fonts-->
<link rel="stylesheet" href="css/reset.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@600&display=swap" rel="stylesheet">
</head>
<body>
<header>
<nav class="navbar navbar-dark bg-dark">
<section class="container-fluid justify-content-center">
<img src="./images/header.png" alt="header-image" class="img-fluid w-100">
</section>
</nav>
</header>
<main class="container">
<section class="row">
<!--section for input to search for city + list of previous searched cities-->
<section class="col-md-3 border border-dark mt-3 mb-3 searchSection">
<h5 class="myH1 text-center mt-2">Enter city name to check the Weather!</h5>
<form class="d-flex mb-3 mt-3">
<input class="form-control me-2" type="search" id="cityNameInput" placeholder="City Name" aria-label="Search">
<button class="btn myBtn btn-dark" id="searchButton" type="submit">Search</button>
</form>
<section class="mb-3">
<section class="list-group" id="savedList"></section>
</section>
</section>
<!--section for current and future weather for searched city-->
<section class="col-md-9 border border-dark mt-3 mb-3 displaySection">
<h3 class="myH1 text-center mt-2">Weather</h3>
<h3 class="myH1 text-danger text-center" id="errorMessage"></h3>
<section id="cityCurrent" class="hidden"></section>
<section>
<section id="fHeading"></section>
<section class="cityForecast row row-cols-1 row-cols-md-3 justify-content-center m-2"></section>
</section>
</section>
</section>
</main>
<!--scripts for bootstrap, jquery and local javascript-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>