-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndex.html
More file actions
86 lines (71 loc) · 3.01 KB
/
Copy pathIndex.html
File metadata and controls
86 lines (71 loc) · 3.01 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
<!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">
<title>Forecast With Siya</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/weather-icons/2.0.10/css/weather-icons.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body>
<div class="container">
<form id="form">
<input type="text" id="search" placeholder="Search By Location" autocomplete="off">
<button type="submit"><i class="fas fa-search"></i></button>
</form>
<div class="weather-card" id="weather-card" style="display: none;">
<div class="weather-header">
<h2 id="city-name">City Name</h2>
<p id="weather-date"></p>
</div>
<div class="weather-main">
<div class="temperature">
<span id="temp-value">--</span>
<span class="temp-unit">°C</span>
</div>
<div class="weather-icon">
<img id="weather-icon-img" src="" alt="Weather Icon">
</div>
</div>
<div class="weather-description" id="weather-desc">
Weather Description
</div>
<div class="weather-details">
<div class="detail">
<i class="fas fa-tint"></i>
<span>Humidity</span>
<span id="humidity">--%</span>
</div>
<div class="detail">
<i class="fas fa-wind"></i>
<span>Wind</span>
<span id="wind-speed">-- m/s</span>
</div>
<div class="detail">
<i class="fas fa-thermometer-half"></i>
<span>Feels Like</span>
<span id="feels-like">--°C</span>
</div>
</div>
</div>
<div class="weather-animation">
<div class="sun">
<i class="fas fa-sun"></i>
</div>
<div class="clouds">
<i class="fas fa-cloud"></i>
<i class="fas fa-cloud"></i>
</div>
<div class="thunderstorm">
<i class="fas fa-bolt"></i>
</div>
</div>
<div class="location-btn">
<button id="current-location"><i class="fas fa-location-arrow"></i> Use Current Location</button>
</div>
</div>
<script src="weather.js"></script>
</body>
</html>