-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (61 loc) · 2.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<script src="https://kit.fontawesome.com/4f46042201.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet"/>
<link rel="stylesheet" href="./assets/css/style.css"/>
<title>Prince's Weather Dashboard</title>
</head>
<body class="flex-column min-100-vh">
<header class="hero">
<h1 class="app-title"><i class="fa-solid fa-cloud-sun"></i>Weather Dashboard</h1>
</header>
<!-- Search for a city -->
<main class="flex-row justify-space-between">
<div class="col-lg-4 col-md-4">
<div class="card">
<h2 class="card-header text-uppercase">Search for a city</h2>
<form id="weather-form" class="card-body">
<input name="cityname" id="cityname" type="text" autofocus="true" class="form-input" placeholder="e.g. Atlanta, Seoul, San diego" />
<button type="submit" class="btn" id="search-button">Search</button>
</form>
</div>
<!-- Weather history -->
<div class="card">
<h3 class="card-header text-uppercase">History</h3>
<form id="history"></form>
</div>
</div>
<!-- Current weather -->
<div class="col-lg-8 col-md-8 d-none" id="currentWeather">
<div class="row">
<div class="results rounded">
<h3 id="cityTitle"></h3>
<p id="temperature"></p>
<p id="wind-speed"></p>
<p id="humidity"></p>
</div>
</div>
<!-- 5-day Forecast -->
<div class="row d-none" id="fivedayWeather">
<div class="col-md-12">
<h4 id="forecastTitle">5-Day Forecast:</h4>
<div class="card-container">
<div class="forecast text-black mb-3 rounded"></div>
<div class="forecast text-black mb-3 rounded"></div>
<div class="forecast text-black mb-3 rounded"></div>
<div class="forecast text-black mb-3 rounded"></div>
<div class="forecast text-black mb-3 rounded"></div>
</div>
</div>
</div>
</main>
<script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script>
<script src="./assets/javascript/script.js"></script>
</body>
</html