-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
94 lines (84 loc) · 3.89 KB
/
index.html
File metadata and controls
94 lines (84 loc) · 3.89 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Weather App</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<style>
body {
background: linear-gradient(135deg, rgba(149, 214, 234, 1), rgba(123, 199, 221, 1), rgba(98, 161, 199, 1), rgba(82, 138, 180, 1), rgba(21, 113, 159, 1));
background-size: 400% 400%;
color: white;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 0;
animation: gradientAnimation 15s ease infinite;
}
@keyframes gradientAnimation {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.navbar {
width: 100%;
background: rgba(0, 0, 0, 0.7);
position: fixed;
top: 0;
z-index: 1000;
}
.container {
margin-top: 80px;
}
.card {
background-color: rgba(255, 255, 255, 0.1);
border: none;
border-radius: 15px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.card-body {
position: relative;
padding: 2rem;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg">
<div class="container-fluid">
<a class="navbar-brand text-white">Weather App</a>
<form class="d-flex" role="search">
<input id="city" class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success" type="submit" id="submit">Search</button>
</form>
</div>
</nav>
<div class="container mt-5">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card mb-3 text-center">
<div class="card-body">
<h1 class="card-title pricing-card-title fw-bold text-prim">Weather of <span id="cityName" class="fw-bold"></span></h1>
<ul class="list-unstyled mt-3 mb-4">
<li class="fw-bold text-white">Cloud Percentage: <span id="cloud_pct"></span></li>
<li class="fw-bold text-white">Temperature: <span id="temp"></span></li>
<li class="fw-bold text-white">Feels Like: <span id="feels_like"></span></li>
<li class="fw-bold text-white">Humidity: <span id="humidity"></span></li>
<li class="fw-bold text-white">Minimum Temperature: <span id="min_temp"></span></li>
<li class="fw-bold text-white">Maximum Temperature: <span id="max_temp"></span></li>
<li class="fw-bold text-white">Wind Speed: <span id="wind_speed"></span></li>
<li class="fw-bold text-white">Sunset: <span id="sunset"></span></li>
<li class="fw-bold text-white">Wind Degrees: <span id="wind_degrees"></span></li>
<li class="fw-bold text-white">Sunrise: <span id="sunrise"></span></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<script src="script.js"></script>
</body>
</html>