-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (92 loc) · 3.19 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
89
90
91
92
93
<!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 href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Roboto:wght@300;400;500;700;900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<link rel="icon" href="data:;base64,=">
<link rel="icon" href="assets/sunshine.ico"></link>
<title>Sunshine Weather</title>
</head>
<body>
<div id="root">
<div class="loading-box">
<img src="assets/sunshine.png" alt="sunshine-logo" />
<div id="spinner">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div class="error">
<span></span>
<i class="fas fa-exclamation-circle"></i>
</div>
<main>
<article>
<section class="weather-display">
<div>
<p id="temp"></p>
</div>
<div>
<p id="city"></p>
<p id="time"></p>
</div>
<div>
<img id="icon" src="" alt="" />
<p id="description"></p>
</div>
</section>
</article>
</main>
<aside class="sidebar">
<div class="search-box">
<i class="fa-solid fa-location-dot"></i>
<form>
<input type="text" placeholder="Enter your location">
<button type="submit" class="fa-solid fa-magnifying-glass"></button>
</form>
</div>
<div class="search-history">
<h3>Search History</h3>
<ul>
<li id="sh-one"></li>
<li id="sh-two"></li>
<li id="sh-three"></li>
<li id="sh-four"></li>
</ul>
</div>
<div class="weather-details">
<h3>Weather Details</h3>
<div>
<i class="fa-solid fa-cloud"></i>
<div>
<span id="cloudy"></span>
<p>Cloudy</p>
</div>
</div>
<div>
<i class="fa-solid fa-water"></i>
<div>
<span id="humidity"></span>
<p>Humidity</p>
</div>
</div>
<div>
<i class="fa-solid fa-wind"></i>
<div>
<span id="wind"></span>
<p>Wind Speed</p>
</div>
</div>
</div>
</aside>
</div>
<script src="https://kit.fontawesome.com/7c8801c017.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="index.js"></script>
</body>
</html>