-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
86 lines (81 loc) · 3.3 KB
/
index.html
File metadata and controls
86 lines (81 loc) · 3.3 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 name="viewport" content="width=device-width, initial-scale=1.0">
<title>Advanced Weather App</title>
<link rel="stylesheet" href="style.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">
<header>
<h1><i class="fas fa-cloud-sun"></i> Weather App</h1>
<div class="controls">
<button id="locationBtn" title="Use my location">
<i class="fas fa-location-arrow"></i>
</button>
<button id="unitToggle" title="Toggle °C / °F">°C</button>
</div>
</header>
<div class="search-container">
<div class="search-box">
<input type="text" id="cityInput" placeholder="Enter city name...">
<button id="searchBtn">
<i class="fas fa-search"></i>
</button>
</div>
<div class="search-history" id="searchHistory"></div>
</div>
<div class="weather-info" id="weatherInfo">
<div class="current-weather">
<div class="weather-icon" id="weatherIcon">
<i class="fas fa-sun"></i>
</div>
<div class="main-info">
<div class="city-name" id="cityName"></div>
<div class="temperature" id="temperature"></div>
<div class="description" id="description"></div>
</div>
</div>
<div class="details-grid">
<div class="detail-card">
<i class="fas fa-temperature-high"></i>
<span>Feels like</span>
<span id="feelsLike"></span>
</div>
<div class="detail-card">
<i class="fas fa-tint"></i>
<span>Humidity</span>
<span id="humidity"></span>
</div>
<div class="detail-card">
<i class="fas fa-wind"></i>
<span>Wind Speed</span>
<span id="windSpeed"></span>
</div>
<div class="detail-card">
<i class="fas fa-eye"></i>
<span>Visibility</span>
<span id="visibility"></span>
</div>
<div class="detail-card">
<i class="fas fa-compress-arrows-alt"></i>
<span>Pressure</span>
<span id="pressure"></span>
</div>
<div class="detail-card">
<i class="fas fa-sun"></i>
<span>UV Index</span>
<span id="uvIndex"></span>
</div>
</div>
</div>
<div class="forecast-container" id="forecastContainer">
<h3><i class="fas fa-calendar-alt"></i> 5-Day Forecast</h3>
<div class="forecast-grid" id="forecastGrid"></div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>