-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
141 lines (134 loc) · 4.31 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 lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- CSS only -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor"
crossorigin="anonymous"
/>
<script
src="https://kit.fontawesome.com/8dacd31b6d.js"
crossorigin="anonymous"
></script>
<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=Anybody:wght@400;500;600;700;800;900&family=Poppins:wght@300;400&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Gilda+Display&family=Roboto:wght@900&family=Yeseva+One&display=swap"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<link rel="stylesheet" href="src/style.css" />
<title>EllaCodes' Weather App</title>
</head>
<body>
<video
autoplay
loop
muted
src=""
class="background-video"
id="background-video"
>
<source type="video/mp4" />
</video>
<div class="container" id="container">
<button
id="current-location-button"
class="btn btn-light current-location-button"
>
<i class="fa-solid fa-location-crosshairs"></i>
</button>
<div class="search-bar">
<form id="search-form">
<div class="row">
<div class="col-9">
<input
type="search"
class="form-control search-input"
id="search-input"
placeholder="Enter City..."
autofocus
autocomplete="on"
/>
</div>
<div class="col-2">
<input
type="submit"
class="btn btn-light search-button w-100"
id="search-button"
value="Search"
/>
</div>
</div>
</form>
</div>
<div class="weather">
<div class="row">
<div class="col-6 first-column">
<img src="" alt="" class="weather-icon" id="weather-icon" />
<span class="temperature" id="temperature">90</span>
<span class="units" id="units">
<a href="#" id="fahrenheit-link" class="active">F</a>
|
<a href="#" class="units-link" id="celseius-link">C</a>
</span>
<div class="current-datetime" id="current-datetime">
<i class="fa-solid fa-calendar-day"></i>
</div>
<div class="location" id="current-location">Fort Walton Beach</div>
</div>
<div class="col-6 second-column">
<ul>
<li class="weather-description" id="weather-description">Rain</li>
<li class="feels-like">
Feels like: <span class="feels-like" id="feels-like">100</span>°
</li>
<li class="high-low-temp">
H: <span id="high-temp">99</span>° | L:
<span id="low-temp">89</span>°
</li>
</ul>
<br />
<div class="btn-group">
<button
type="button"
class="btn btn-primary button-group"
id="humidity"
>
Humidity
</button>
<button
type="button"
class="btn btn-primary button-group"
id="wind"
>
Wind
</button>
</div>
</div>
</div>
</div>
<hr />
<div class="forecast" id="forecast"></div>
<p class="signature">
<a
href="https://github.com/EllaCodes4/weather-project"
target="_blank"
class="open-source-code-link"
>Open-source code</a
>
by: Gabriella Corales ("EllaCodes")
</p>
</div>
<script src="src/index.js"></script>
</body>
</html>