-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
150 lines (147 loc) · 4.65 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
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, user-scalable=0, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"
/>
<!--<meta name="viewport" content="width=device-width, initial-scale=1.0" />-->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous"
/>
<script src="https://unpkg.com/[email protected]/dist/axios.min.js"></script>
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;500;600;900&family=Monoton&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
<script
src="https://kit.fontawesome.com/c09fcaf3a9.js"
crossorigin="anonymous"
></script>
<link
rel="shortcut icon"
href="img/Screenshot 2023-12-08 022317.png"
type="image/x-icon"
/>
<title>VALAGALA-Weather App</title>
</head>
<body>
<div class="container">
<div class="title">
VALAGALA <span class="weather-title">WEATHER</span>
<br />
APP
</div>
<div class="weather-app-wrapper">
<div class="weather-app">
<form id="search-form" class="mb-3 d-flex justify-content-center">
<div class="row">
<div class="col-9">
<input
type="search"
placeholder="Enter a city..."
autofocus="on"
autocomplete="off"
class="form-control"
id="city-input"
/>
</div>
<div class="col-3">
<input
type="submit"
value="Search"
class="btn"
id="search-btn"
/>
</div>
</div>
</form>
<div class="row">
<div class="col-10">
<h1 id="city"></h1>
<ul class="sub-text">
<li>
Last updated:
<span id="date"></span>
</li>
<em><li id="description"></li></em>
</ul>
</div>
<div class="col-2">
<button class="btn location-btn" id="location-btn">
<i class="fa-solid fa-location-dot"></i>
</button>
</div>
</div>
<div class="row">
<div class="col-6">
<div class="d-flex weather-temperature">
<img
src="http://shecodes-assets.s3.amazonaws.com/api/weather/icons/clear-sky-day.png"
alt="Clear sky- day"
class="float-left"
id="main-icon"
/>
<div class="float-left">
<strong id="main-temp"></strong
><em><span class="units">°F </span></em>
</div>
</div>
</div>
<div class="col-6">
<ul>
<div class="hum-wind">
<li>Humidity: <span id="humidity"></span>%</li>
<li>Wind: <span id="wind"></span> mph</li>
</div>
</ul>
</div>
</div>
<div class="forecast" id="forecast">
<div class="row">
<div class="col-2">
<div class="forecast-date"></div>
<img
src="http://shecodes-assets.s3.amazonaws.com/api/weather/icons/clear-sky-day.png"
alt="clear-sky-day"
width="48"
/>
<div class="forecast-temp">
<span class="forecast-temp-max">11°/</span>
<span class="forecast-temp-min">11°</span>
</div>
</div>
</div>
</div>
</div>
<div class="coded-by text-center">
<small>
Coded by
<a
href="https://valagala.netlify.app/"
taget="_blank"
rel="noopener noreferrer"
class="valagala"
>
VALAGALA</a
>
See on
<a
href="https://github.com/VALA9GALA/VanillaWeatherApp"
taget="_blank"
rel="noopener noreferrer"
class="valagala"
>GITHUB</a
>
</small>
</div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>