-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (49 loc) · 2.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Detailed Weather</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" />
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<div class="wraper d-flex justify-content-center align-items-center ">
<div class="card main-card ">
<form id="search-form" class="pb-1">
<div class="search-bar d-flex justify-content-center align-items-center position-relative my-2">
<input type="text" class="rounded-pill border-0" id="search-box" placeholder="Search Here...">
<button type="submit" id="submit-btn"><i class="fa-solid fa-search"></i></button>
</div>
<div class="text-center m-0" id="eror"></div>
</form>
<div class="card weather-details p-2 rounded-4 position-relative ">
<img id="weather-img" src="./assets/weathers/haze.png" alt="Not found">
<p class="position-absolute" id="description">Status</p>
<p id="temp" class="m-auto mt-2 ">0</p>
<p id="location" class="m-auto fw-bold">Unknown</p>
<div class="d-flex justify-content-center mt-2 gap-4">
<p class="">Min: <span id="min-temp">0</span></p>
<p class="">Max: <span id="max-temp">0</span></p>
</div>
</div>
<div class="extra-details rounded-4 p-2">
<div class="w-100 d-flex justify-content-evenly ">
<p><i class="fa-solid fa-wind"></i> <span id="wind-speed">0</span> Km/s</p>
<p><i class="fa-regular fa-compass"></i> <span id="wind-angle">0</span>°</p>
</div>
<div class="w-100 d-flex justify-content-evenly ">
<p>Pressure: <span id="pressure">0</span></p>
<p>Humidity: <span id="humidity">0</span></p>
</div>
<div class="w-100 d-flex justify-content-evenly ">
<p>Longitude: <span id="longitude">0</span></p>
<p>Latitude: <span id="latitude">0</span></p>
</div>
</div>
</div>
</div>
<script src="./js/index.js"></script>
</body>
</html>