-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
141 lines (139 loc) · 4.62 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html>
<head>
<title>Weather app</title>
<meta charset="UTF-8" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi"
crossorigin="anonymous"
/>
<link href="src/styles.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/axios@1.1.2/dist/axios.min.js"></script>
</head>
<body>
<div class="container">
<form class="searching-form">
<input
type="search"
class="search"
placeholder=" Enter City 😉"
autocomplete="on"
/>
<input id="submission" type="submit" value="🔍" />
</form>
<div class="weather-side">
<div class="weather-gradient"></div>
<div class="date-container">
<h2 class="date-dayname"></h2>
<span class="date-day"></span>
<i class="location-icon" data-feather="map-pin"></i>
<span class="location"></span>
<h1 id="country"></h1>
</div>
<div class="weather-container">
<h1 class="weather-temp">
10
</h1>
<button type="button" id="h31">°C</button>
<button type="button" id="h32">°F</button>
<p class="weather-desc"></p>
<span id="weather-icon">
<img
id="icon"
src="http://openweathermap.org/img/wn/10d@2x.png"
alt="weather-icon"
width="65px"
/>
</span>
</div>
</div>
<div class="info-side">
<div class="today-info-container">
<div class="today-info">
<div class="temp-feels-like">
<span class="title">TEMP FEELS LIKE</span
><span id="temp-feels-like" class="value"></span>
<div class="clear"></div>
</div>
<div class="humidity">
<span class="title">HUMIDITY</span>
<span id="humidity" class="value"></span>
<div class="clear"></div>
</div>
<div class="wind">
<span class="title">WIND</span>
<span id="wind" class="value"></span>
<div class="clear"></div>
</div>
</div>
</div>
<div class="week-container">
<ul class="week-list">
<li class="active" id="first-day">
<span id="day1" class="day-name">Sat</span>
<img
id="img1"
src="http://openweathermap.org/img/wn/10d@2x.png"
alt="weather-icon"
width="50px"
/>
<span id="temp1" class="day-temp">9° 7°</span>
</li>
<li id="second-day">
<span id="day2" class="day-name">Sun</span>
<img
id="img2"
src="http://openweathermap.org/img/wn/10d@2x.png"
alt="weather-icon"
width="50px"
/>
<span id="temp2" class="day-temp">9° 7°</span>
</li>
<li id="third-day">
<span id="day3" class="day-name">Mon</span>
<img
id="img3"
src="http://openweathermap.org/img/wn/10d@2x.png"
alt="weather-icon"
width="50px"
/>
<span id="temp3" class="day-temp">9° 7°</span>
</li>
<li id="fourth-day">
<span id="day4" class="day-name">Tue</span>
<img
id="img4"
src="http://openweathermap.org/img/wn/10d@2x.png"
alt="weather-icon"
width="50px"
/>
<span id="temp4" class="day-temp">9° 7°</span>
</li>
<div class="clear"></div>
</ul>
</div>
<div class="location-container">
<button id="location-button" class="location-button">
<i data-feather="map-pin"></i><span>Current location</span>
</button>
</div>
</div>
</div>
<div class="bottom">
<a
class="bottom-link"
href="https://github.com/IhorKarp/weather-app-beginner-project"
>Open-source code</a
>
by Code Ninja
</div>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3"
crossorigin="anonymous"
></script>
<script src="src/index.js"></script>
</body>
</html>