-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweather.php
93 lines (85 loc) · 2.75 KB
/
weather.php
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 name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- links -->
<link rel="icon" type="png" href="img/icon.png" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
/>
<link rel="stylesheet" href="css/weather.css" />
<!-- Title -->
<title>Weather App</title>
</head>
<body>
<div class="pc">
<!-- nav section -->
<nav>
<ul>
<li>
<a class="active" href="weather.php"
><i class="fa-solid fa-location-arrow"></i
></a>
</li>
<li>
<a href="search.php"
><i class="fa-solid fa-magnifying-glass"></i
></a>
</li>
<li>
<a href="world.php"><i class="fa-solid fa-earth-americas"></i></a>
</li>
</ul>
</nav>
<!-- main section -->
<div id="screen">
<!-- city name -->
<div class="city-name">
<i class="fa-solid fa-map-pin"></i>
<h1 id="city-name">Lagos</h1>
</div>
<!-- weather icon -->
<div class="weather-icon-css">
<img class="weather-icon" src="img/sun.png" />
</div>
<!-- weather details -->
<div class="weather-description">
<div class="show-metric" id="metric">0°</div>
<div class="weather-details">
<div class="weather-main" id="weather-main">Sunnen</div>
<div class="h-f">
<div class="show-humidity">H: <span id="humidity">60</span></div>
||
<div class="show-humidity">
F: <span id="feels-like">60</span>
</div>
</div>
</div>
</div>
<!-- Today-forecast -->
<div class="forcasts-box">
<div class="today-forecast">
<h4>TODAY</h4>
<div class="weather-icon-today">
<img class="weather-icons" src="img/sun.png" />
</div>
<div class="temp-today">
<span id="temp-min-today">50°</span><span>/ </span
><span id="temp-max-today">55°</span>
</div>
<div class="weather-main-today" id="weather-main">Sunnen</div>
</div>
<!-- 5day Forecast -->
<div class="forecast">
<h5>6-DAYS FORECAST</h5>
<div id="forecast-box"></div>
</div>
</div>
</div>
</div>
<!-- script -->
<script src="js/main.js"></script>
</body>
</html>