-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (41 loc) · 1.94 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
<!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>Weather App</title>
<!-- External CSS - Fixed the link -->
<link rel="stylesheet" href="style.css">
<!-- Correct link to W3CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/w3.css">
<!-- Correct link to Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
<div class="card">
<!-- Search bar and button -->
<div class="search">
<input type="text" class="search-bar" placeholder="Search city...">
<button>
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="1.5em" height="1.5em" viewBox="0 0 30 30" style="fill:#ffffff;">
<path d="M 13 3 C 7.4889971 3 3 7.4889971 3 13 C 3 18.511003 7.4889971 23 13 23 C 15.396508 23 17.597385 22.148986 19.322266 20.736328 L 25.292969 26.707031 A 1.0001 1.0001 0 1 0 26.707031 25.292969 L 20.736328 19.322266 C 22.148986 17.597385 23 15.396508 23 13 C 23 7.4889971 18.511003 3 13 3 z M 13 5 C 17.430123 5 21 8.5698774 21 13 C 21 17.430123 17.430123 21 13 21 C 8.5698774 21 5 17.430123 5 13 C 5 8.5698774 8.5698774 5 13 5 z"></path>
</svg>
</button>
</div>
<!-- Weather information display -->
<div class="weather loading">
<h2 class="city">Weather in Addis Ababa</h2>
<h1 class="temp">27°C</h1>
<div class="flex">
<img src="https://openweathermap.org/img/wn/09n.png" alt="Weather Icon" class="icon">
<div class="description">Cloudy</div>
</div>
<div class="humidity">Humidity: 60%</div>
<div class="wind">Wind Speed: 6.2 km/h</div>
</div>
</div>
<!-- Make sure app.js exists in the same directory or correct the path -->
<script src="app.js" defer></script>
</body>
</html>