-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (76 loc) · 3.16 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!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" />
<!-- Link to the external stylesheet -->
<link rel="stylesheet" href="styles.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<!-- Favicon (Icon for the title bar) -->
<link rel="icon" href="favicon.jpg" type="image/jpg">
<!-- Google Font -->
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<title>Weather Genie</title>
</head>
<body>
<header>
<h1><a href="/" title="Go to homepage">Weather Genie</a></h1>
</header>
<div class="container">
<section class="weather-search">
<h2>Search weather in...</h2>
<div class="search-grp">
<form action="#" aria-label="Search for weather location">
<label for="search-input" class="visually-hidden">Enter location</label>
<input type="text" id="search-input" placeholder="Enter location..." aria-describedby="search-help" />
<button type="submit" aria-label="Search weather">
<i class="fa-solid fa-magnifying-glass"></i>
</button>
</form>
<small id="search-help" class="form-text">Enter a city or place to see the weather details.</small>
</div>
</section>
<section class="weather-info">
<h3 id="city"></h3>
<p id="date"></p>
<div class="temperature">
<span id="temperature-degree"></span> °C
</div>
<div class="description">
<img src="" alt="" id="description-img" />
<p id="description-text"></p>
</div>
<div class="details">
<div id="humidity" class="grp">
<span><i class="fa-solid fa-temperature-empty"></i>Humidity</span>
<h3 id="humidity-degree"></h3>
</div>
<div id="feelslike" class="grp">
<span><i class="fa-solid fa-droplet"></i> Feels like</span>
<h3 id="feelslike-degree"></h3>
</div>
</div>
</section>
<button onclick="getLocationData()" id="loc-btn" aria-label="View weather for your current location">
<i class="fa-solid fa-location-dot"></i> View current location <i class="fa-solid fa-location-dot"></i>
</button>
</div>
<footer>
<p>© 2025 Weather Genie. All rights reserved.</p>
<p>
<img src="main.jpg" alt="Agyare Kelvin Yeboah" class="developer-img" />
Agyare Kelvin Yeboah, Full Stack Software Developer
</p>
</footer>
<script src="script.js"></script>
</body>
</html>