-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (66 loc) · 4.26 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 name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather App</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<link rel= "icon" href= "https://image.flaticon.com/icons/png/128/1146/1146869.png">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div>
<div class="card">
<center><h2 style="color: gold; font-size: 38px; font-weight: bolder;">Weather Predictor</h2></center>
<div class="search" style="margin-top: 2%; margin-bottom: 2%">
<input type="text" class="search-bar" placeholder="Search">
<button><i class="fa fa-search"></i></button>
</div>
<hr>
<div class="weather loading">
<h2 class="city" style="font-size: larger;"></h2>
<h1 class="temp" style="font-weight: bolder;">51°C</h1>
<div style="display: flex; padding: 2%">
<small>(min)</small> <i class="fa fa-arrow-down fa-blink" style="color: green; font-size: larger;"></i> <h6 style="font-weight: bolder; margin-top: 1%" class="temp_min"></h6>
<small style="margin-left: 13%;">(max)</small> <i class="fa fa-arrow-up fa-blink" style="color: red; font-size: larger;"></i> <h6 style="font-weight: bolder; margin-top: 1%" class="temp_max"></h6>
</div>
<div style="display: flex; padding: 2%">
<b style="color: yellow; font-size: larger;">😁</b> <small style="margin-top: 1.5%">Feels Like : </small> <h6 style="font-weight: bolder; margin-top: 2.5%" class="feels_like"></h6>
</div>
<div class="flex">
<div class="description" style="font-weight: bolder; font-size: larger; color: lightblue">Cloudy</div>
<img src="https://openweathermap.org/img/wn/04n.png" alt="" class="icon" />
</div>
<hr>
<div style="display: flex; margin-top: 2%; margin-bottom: 3%">
<b style="font-weight: bolder; font-size: medium; margin-left: 4%;">Humidity</b>
<b style="font-weight: bolder; font-size: medium; margin-left: 11%;">Wind Speed</b>
<b style="font-weight: bolder; font-size: medium; margin-left: 15%;">Pressure</b>
</div>
<div style="display: flex; margin-left: 2%;">
<i class="fas fa-temperature-high" style="color: skyblue; font-size: larger; "></i> <div class="humidity" style="font-weight: bolder; font-size: large; margin-right: 8%;"> 60%</div>
<i class="fas fa-wind" style="color: skyblue; font-size: larger;"></i> <div class="wind" style="font-weight: bolder; font-size: large; margin-right: 8%;">6.2 km/h</div>
<i class="fas fas fa-smog" style="color: skyblue; font-size: medium; margin-top: 1.5%"></i> <div class="pressure" style="font-weight: bolder; font-size: large;">6.2 psf</div>
</div>
</div>
</div>
<br><br>
<div id="myModal" class="modal">
<div class="modal-content">
<div class="modal-header" style="margin-top: -20px;">
<h5 class="modal-title" id="exampleModalLabel" style="font-weight: bolder; font-size: larger;">No Weather Info Found ⚠️</h5>
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">×</button>
</div>
<div class="modal-body">
<img src="img/alert.gif" style="margin-left: 35%;" width="150" height="150"><br>
<center><b style="font-weight: bolder; color: red; align-content: center;">No weather Information Available for your entered city/location. Please check the input and try again !!!</b></center>
</div>
</div>
</div>
<script src="./script.js" defer></script>
</body>
</html>