-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (69 loc) · 3.06 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather Report</title>
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="dps_favicon.jpg" type="image/x-icon">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
</head>
<body>
<div class="view-area">
<h1 class="app-heading">Weather App</h1>
<div class="tab-container">
<div class="tab" id="your-weather">Your Weather</div>
<div class="tab" id="search-weather">Search Weather</div>
</div>
<div class="weather-container">
<!-- GRANT LOCATION -->
<div class="grant-location-container">
<img src="location.png" alt="" height="80" width="80" loading="lazy">
<p>Grant Location Access</p>
<p>Allow Access to get weather Information</p>
<button class="access-btn" id="grant-access">Grant Access</button>
</div>
<!-- SEARCH FORM -->
<form class="form-container" id="data-searchForm">
<input type="" placeholder="Search for City..." id="data-searchInput">
<button class="search-btn">
<img src="search.png" alt="" height="20" width="20" loading="lazy">
</button>
</form>
<!-- Loading Screen -->
<div class="loading-container">
<img src="loading.gif" height="150" width="150" alt="">
<p class="loading-txt">Loading</p>
</div>
<!-- SHOW WEATHER INFO -->
<div class="user-info-container">
<div class="name">
<p id = "data-cityName"></p>
<img id = "data-countryIcon"></img>
</div>
<p id="data-weatherDescription"></p>
<img id="data-weatherIcon">
<h1 id="data-temperature"></h1>
<div class="parameter-container">
<div class="parameter">
<img src="wind.png" alt="">
<p class="parameter-txt">WindSpeed</p>
<p class="parameter-txt" id="data-windSpeed"></p>
</div>
<div class="parameter">
<img src="humidity.png" alt="">
<p class="parameter-txt">Humidity</p>
<p class="parameter-txt" id="data-humidity"></p>
</div>
<div class="parameter">
<img src="cloud.png" alt="">
<p class="parameter-txt">Clouds</p>
<p class="parameter-txt" id="data-cloudiness"></p>
</div>
</div>
</div>
</div>
</div>
<script src="index.js"></script>
</body>
</html>