-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
91 lines (82 loc) · 3.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@300;400;500;600;700&display=swap"
rel="stylesheet" />
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
</head>
<body>
<div class="wrapper">
<h1>Weather App</h1>
<div class="tab-container">
<p class="tab " data-userTab>Your Weather</p>
<p class="tab" data-searchTab>Search Weather</p>
</div>
<!-- Weather container -->
<div class="weather-container">
<!-- Search form container -->
<form action="" data-searchForm class="form-container">
<input data-searchInput type="text" placeholder="search for city">
<button class="btn">
<img src="./Images/search.png" alt="" height="20px" width="20px" loading="lazy">
</button>
</form>
<!-- grant location container -->
<div class="grant-location-container subContainer">
<img src="./Images/location.png" alt="" height="80px" width="80px" loading="lazy">
<p>Grant Location Access</p>
<p>Allow access to get weather information</p>
<button data-grantAccessBtn class="btn">grant Access</button>
</div>
<!-- loading container -->
<div class="loading-container subContainer">
<img src="./Images/loading.gif" alt="" height="150px" width="150px">
<p>loading</p>
</div>
<!-- Show weather info -->
<div class="user-info-container subContainer">
<div class="name">
<p data-cityName></p>
<img data-countryIcon>
</div>
<p data-weatherDesc></p>
<img data-weatherIcon src="" alt="">
<p data-temp></p>
<!-- Card Container -->
<div class="cardContainer">
<!-- card1 -->
<div class="parameter">
<img src="./Images/wind.png" alt="">
<p>Windspeed</p>
<p class="parameterValue" data-windSpeed></p>
</div>
<!-- card2 -->
<div class="parameter">
<img src="./Images/humidity.png" alt="">
<p>Humidity</p>
<p class="parameterValue" data-humidity></p>
</div>
<!-- card3 -->
<div class="parameter">
<img src="./Images/cloud.png" alt="">
<p>Clouds</p>
<p class="parameterValue" data-cloudiness></p>
</div>
</div>
</div>
<!-- Location Not Found -->
<div class="errorContainer subContainer">
<img src="./Images/not-found.png" data-errorImg />
<p data-errorText></p>
<button class="btn" data-errorButton>Retry Now</button>
</div>
</div>
</div>
</body>
</html>