-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (53 loc) · 2.05 KB
/
index.html
File metadata and controls
60 lines (53 loc) · 2.05 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./styles.css"/>
<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=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
<title>WeatherApp</title>
</head>
<body>
<div class="box weather-box">
<div class="left general-data">
<div class="main">
<input type="text" id="cityInput" placeholder="Enter a city (by default, New Delhi)">
<br/>
<button id="search">Search</button>
</div>
<div class="general">
<h3 id="city">City</h3>
<h4 id="region">Region</h4>
<h5 id="country">Country</h5>
<br/>
<br/>
<h6 id="description">mostly ---</h6>
<p id="temperature">40</p>
<!-- image is added in "p" dynamically -->
</div>
</div>
<div class="right predictions-data">
<div class="hourly">
<div><p>Hourly forecast</p></div>
<div class="hour" id="hour">
<!-- cards are entered dynamically -->
</div>
</div>
<div class="daywise">
<div><p>10 days forecast</p></div>
<div class="day" id="day">
<!-- cards are entered dynamically -->
</div>
</div>
</div>
</div>
<footer>@2025Samridhi</footer>
<script src="./index.js"></script>
</body>
</html>
<!-- rainy
https://static.vecteezy.com/system/resources/previews/046/982/857/non_2x/monsoon-season-rainy-season-illustration-of-heavy-rain-illustration-of-rain-cloud-vector.jpg -->
<!-- sunny
https://wallpapers.com/images/hd/sunny-day-wallpaper-f21ok5dhnkco3i5n.jpg -->