-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
97 lines (90 loc) · 3.77 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
94
95
96
97
<!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="style.css">
<link rel="icon" type="image/png" sizes="32x32" href="./favicon.ico">
<title>Weather App</title>
</head>
<body>
<div class="container">
<div class="weather-side">
<div class="weather-gradient"></div>
<div class="date-container">
<h2 class="date-dayname"></h2>
<span class="date-day"></span>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-map-pin">
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path>
<circle cx="12" cy="10" r="3"></circle>
</svg>
<span class="location" id="w-location"></span>
</div>
<div class="weather-container">
<img id="w-icon">
<h1 class="weather-temp" id="w-temp"></h1>
<h3 class="weather-desc" id="w-desc"></h3>
</div>
</div>
<div class="info-side">
<div class="today-info-container">
<div class="today-info">
<div class="humidity data">
<span class="title">HUMIDITY</span>
<span class="value" id="w-humidity"></span>
<div class="clear"></div>
</div>
<div class="wind data">
<span class="title">WIND</span>
<span class="value" id="w-wind"></span>
<div class="clear"></div>
</div>
<div class="dewpoint data">
<span class="title">DEWPOINT</span>
<span class="value" id="w-dewpoint"></span>
<div class="clear"></div>
</div>
<div class="feels-like data">
<span class="title">FEELS LIKE</span>
<span class="value " id="w-feels-like"></span>
<div class="clear"></div>
</div>
</div>
</div>
<div class="location-container">
<button class="location-button" id="locationBtn"><span>Change location</span></button>
</div>
</div>
</div>
<div id="myModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>Chooose Location</h2>
<div class="line"></div>
</div>
<div class="modal-body">
<form id="w-form">
<div class="form-group">
<label for="city">City</label>
<input type="text" id="city" class="form-control">
</div>
<div class="form-group">
<label for="country">Country</label>
<input type="text" id="country" class="form-control">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" id="close" class="close location-button">Close</button>
<button type="button" id="w-change-btn" class="location-button">Save changes</button>
</div>
</div>
</div>
<script src="./storage.js"></script>
<script src="./weather.js"></script>
<script src="./ui.js"></script>
<script src="./app.js"></script>
</body>
</html>