-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (48 loc) · 1.96 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
<!doctype html>
<html lang="en">
<head>
<title>Weather Check</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/6c0e978889.js" crossorigin="anonymous"></script>
<!-- Tailwind -->
<script src="https://cdn.tailwindcss.com"></script>
<style>
body {
background: url(images/bg-image.jpg) no-repeat;
background-size: cover;
height: 100vh;
}
</style>
</head>
<body>
<div class="container">
<form class="col-md-6 m-auto py-5">
<div class="input-group mb-3">
<input id="input-city-name" type="text" class="form-control"
placeholder="Enter a city name for weather...">
<div class="input-group-append">
<button id="btn-search" type="button" class="text-white bg-rose-500 px-3 rounded">Search</button>
</div>
</div>
</form>
<div class="weather-status text-white text-center">
<img src="https://openweathermap.org/img/wn/[email protected]" alt="">
<h5 id="city-name" class="text-2xl font-medium"></h5>
<h1><span id="temperature" class="text-7xl font-bold"></span><span id="degC"
class="hidden text-3xl">°C</span>
</h1>
<h4 id="condition" class="text-3xl font-medium"></h4>
<h6 class="font-base">
<i id="up-arrow" class="fa-solid fa-arrow-up hidden"></i> <span id="temp-min" class="mr-3"></span>
<i id="down-arrow" class="fa-solid fa-arrow-down hidden"></i> <span id="temp-max"></span>
</h6>
</div>
</div>
<!-- Scripts -->
<script src="js/app.js"></script>
</body>
</html>