-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomePage.html
407 lines (375 loc) · 15.7 KB
/
homePage.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="homePageStyle.css">
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="fonts.css">
<link rel="icon" href="img/WeatherIcon.png" type="image/x-icon">
</head>
<body class="body">
<nav
class="navbar navbar-expand-lg navbarEdite fixed-top"
aria-label="Thirteenth navbar example"
>
<div class="container-fluid">
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarsExample11"
aria-controls="navbarsExample11"
aria-expanded="false"
aria-label="Toggle navigation"
>
<div class="d-flex align-items-center">
<img
src="img/WeatherIcon.png"
alt="WeatherIcon"
style="width: 45px; height: 45px"
/>
<span
class="ms-2 text-white d-flex flex-column"
style="color: aliceblue; font-size: small"
>
<span class="d-flex justify-content-start fw-bold"
>SkyCast Weather</span
>
<span class="text-white mt-1" style="font-size: smaller"
>Source for weather updates</span
>
</span>
</div>
</button>
<div
class="collapse navbar-collapse d-lg-flex justify-content-center"
id="navbarsExample11"
>
<img
src="img/WeatherIcon.png"
alt="WeatherIcon"
class="d-none d-lg-block"
style="width: 45px; height: 45px"
/>
<a
class="navbar-brand col-lg-2 me-0 mb-0 d-none d-lg-block"
href="#"
style="color: aliceblue; font-size: small; font-weight: bold"
>SkyCast Weather
<div
class="text-white mt-0 d-none d-lg-block"
style="font-size: smaller"
>
source for weather updates
</div></a
>
<ul class="navbar-nav col-lg-3 justify-content-lg-end"></ul>
<div
class="d-flex flex-column flex-lg-row col-lg-6 justify-content-lg-end align-items-lg-end"
>
<ul
class="navbar-nav mb-1 mb-lg-0 m-1 justify-content-end w-100 w-lg-auto"
>
<li class="nav-item">
<a class="nav-link text-white buttonOthers" href="#">News</a>
</li>
<li class="nav-item">
<a class="nav-link text-white buttonOthers" href="#"
>Location</a
>
</li>
<li class="nav-item">
<a class="nav-link text-white buttonOthers" href="#">Contact</a>
</li>
</ul>
<button
id="homepageOnAction"
class="btn mx-lg-0 rounded-5 text-black fw-bolder buttonHome"
style="background-color: #ace2e1"
>
Home
</button>
</div>
</div>
</div>
</nav>
<!-- Main content outer container (full width, positioned below the fixed div) -->
<div id="location-divmain" class="container-fluid mt-5 pt-4">
<video autoplay muted loop playsinline disablepictureinpicture>
<source src="img/video.mp4" type="video/mp4">
</video>
<!-- Inner content container (centered and responsive) -->
<div class="container p-4">
<!-- Div above the columns -->
<div class="input-group mb-5">
<input id="inputSearchData" type="text" class="form-control rounded-start-pill dosis input-field" placeholder="Find A Location" aria-label="Search" />
<button id="btnHomePageOnAction" class="btn rounded-end-5 fw-bolder text-white buttonSearch" type="button" style="background-color: #161E3C;">
<span class="buttonSearch-content">Search</span>
</button>
</div>
<div class="row" style="height: 405px;">
<!-- Left column (wider) with background image -->
<div id="location-div" class="col-lg-8 col-md-7 col-sm-12 d-flex flex-column bg-cover p-4" style="background-image: url(''); background-size: cover; background-position: center;">
<!-- Header text -->
<h1 id="countryName" class="text-black fw-bold fs-1 d-flex justify-content-end">Counrtry</h1>
<h3 id="cityname" class="text-black fw-medium fs-3 d-flex justify-content-end">City</h3>
<h2 id="Temperature" class="text-black fw-bold fs-1 d-flex justify-content-end">Temperature °C</h2>
<h4 id="tempFerenhaid" class="text-black fw-medium fs-3 d-flex justify-content-end">City</h4>
<!-- Content in the middle (optional) -->
<p class="text-black d-none d-md-block">This is some content in the wider left column.</p>
<!-- Text at the bottom -->
<h1 id="time" class="text-black mt-auto fw-bold fs-1">Counrtry</h1>
</div>
<!-- Right column (narrower) -->
<div class="col-lg-4 col-md-5 col-sm-12 " style="background-color: #021526b9;">
<div class="container mt-1 d-none d-md-block">
<div class="row justify-content-center">
<div class="col-12 col-md-6 text-container">
<img id="icon-img" src="" alt="" class="img-fluid">
</div>
<h2 id="weather" class="mt-3 fw-bold text-white d-inline-flex justify-content-center">Weather</h2>
<hr class="hr-line mt-1">
</div>
</div>
<!-- Content for the right column -->
<div class="container mt-3 text-white">
<div class="row">
<!-- Column 1, Row 1 -->
<div class="col-md-6 d-none d-md-block">
<div id="sunrise" class="box">SunRise, Row 1</div>
</div>
<!-- Column 2, Row 1 -->
<div class="col-md-6">
<div id="timenext01" class="box">Time, Row 1</div>
</div>
</div>
<div class="row">
<!-- Column 1, Row 2 -->
<div class="col-md-6 d-none d-md-block">
<div id="sunset" class="box">Sunset, Row 2</div>
</div>
<!-- Column 2, Row 2 -->
<div class="col-md-6">
<div id="timenext02" class="box">Time, Row 1</div>
</div>
</div>
<div class="row">
<!-- Column 1, Row 3 -->
<div class="col-md-6 d-none d-md-block">
<div id="moonrise" class="box">MoonRise, Row 3</div>
</div>
<!-- Column 2, Row 3 -->
<div class="col-md-6">
<div id="timenext03" class="box">Time, Row 1</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<header class="site-header">
Climate Distribute
<div class="header-line"></div>
</header>
<div class="container-md">
<div class="row">
<div class="col-12 col-sm-6 col-md-4 col-lg-2 d-flex justify-content-center align-items-center card-wrapper">
<div class="card" style="background-color: #FBAB7E;
background-image: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%);">
<img id="iconOfTheCard1" src="" alt="Card Image 1" class="card-img-top">
<div class="card-details">
<p id="textOftheCardTemp1" class="text-title" style="">Card Title 1</p>
<p id="textOftheCard1" class="text-title">Card Title 1</p>
<p id="details1" class="text-body">Here are the details of the card</p>
</div>
<button class="card-button">More</button>
</div>
</div>
<div class="col-12 col-sm-6 col-md-4 col-lg-2 d-flex justify-content-center align-items-center card-wrapper">
<div class="card" style="background-color: #0093E9;
background-image: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);">
<img id="iconOfTheCard2" src="" alt="Card Image 1" class="card-img-top">
<div class="card-details">
<p id="textOftheCardTemp2" class="text-title" style="">Card Title 1</p>
<p id="textOftheCard2" class="text-title">Card Title 1</p>
<p id="details2" class="text-body">Here are the details of the card</p>
</div>
<button class="card-button">More</button>
</div>
</div>
<div class="col-12 col-sm-6 col-md-4 col-lg-2 d-flex justify-content-center align-items-center card-wrapper">
<div class="card" style="background-color: #FBAB7E;
background-image: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%);">
<img id="iconOfTheCard3" src="" alt="Card Image 1" class="card-img-top">
<div class="card-details">
<p id="textOftheCardTemp3" class="text-title" style="">Card Title 1</p>
<p id="textOftheCard3" class="text-title">Card Title 1</p>
<p id="details3" class="text-body">Here are the details of the card</p>
</div>
<button class="card-button">More</button>
</div>
</div>
<div class="col-12 col-sm-6 col-md-4 col-lg-2 d-flex justify-content-center align-items-center card-wrapper">
<div class="card" style="background-color: #0093E9;
background-image: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);">
<img id="iconOfTheCard4" src="" alt="Card Image 1" class="card-img-top">
<div class="card-details">
<p id="textOftheCardTemp4" class="text-title" style="">Card Title 1</p>
<p id="textOftheCard4" class="text-title">Card Title 1</p>
<p id="details4" class="text-body">Here are the details of the card</p>
</div>
<button class="card-button">More</button>
</div>
</div>
<div class="col-12 col-sm-6 col-md-4 col-lg-2 d-flex justify-content-center align-items-center card-wrapper extra-card">
<div class="card" style="background-color: #0093E9;
background-image: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);">
<img id="iconOfTheCard5" src="" alt="Card Image 1" class="card-img-top">
<div class="card-details">
<p id="textOftheCardTemp5" class="text-title" style="">Card Title 1</p>
<p id="textOftheCard5" class="text-title">Card Title 1</p>
<p id="details5" class="text-body">Here are the details of the card</p>
</div>
<button class="card-button">More</button>
</div>
</div>
<div class="col-12 col-sm-6 col-md-4 col-lg-2 d-flex justify-content-center align-items-center card-wrapper extra-card">
<div class="card" style="background-color: #8EC5FC;
background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);">
<img id="iconOfTheCard6" src="" alt="Card Image 1" class="card-img-top">
<div class="card-details">
<p id="textOftheCardTemp6" class="text-title" style="">Card Title 1</p>
<p id="textOftheCard6" class="text-title">Card Title 1</p>
<p id="details6"class="text-body">Here are the details of the card</p>
</div>
<button class="card-button">More</button>
</div>
</div>
</div>
</div>
<header class="site-header">
Climate History
<div class="header-line"></div>
</header>
<div class="container">
<div class="row">
<!-- First Card -->
<div class="col-lg-6 mb-4">
<div class="card" style="width: 100%;">
<div class="row g-0">
<div class="col-md-4">
<img src="img/bimg (2).jpg" class="img-fluid rounded-start h-100" alt="">
</div>
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-body-secondary">Last updated 3 mins ago</small></p>
</div>
</div>
</div>
</div>
</div>
<!-- Second Card -->
<div class="col-lg-6 mb-4">
<div class="card" style="width: 100%;">
<div class="row g-0">
<div class="col-md-4">
<img src="img/img5.jpg" class="img-fluid rounded-start h-100" alt="">
</div>
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-body-secondary">Last updated 3 mins ago</small></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<!-- Third Card in a New Row -->
<div class="col-lg-12 mb-4">
<div class="card mb-3" style="width: 100%;">
<div class="row g-0">
<div class="col-md-4">
<img src="img/img4.jpeg" class="img-fluid rounded-start h-100" alt="...">
</div>
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-body-secondary">Last updated 3 mins ago</small></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row d-none d-md-block">
<!-- fourth Card in a New Row -->
<div class="col-lg-12 mb-4">
<div class="card mb-3" style="width: 100%;">
<div class="row g-0">
<div class="col-md-4">
<img src="img/img4.jpeg" class="img-fluid rounded-start h-100" alt="...">
</div>
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-body-secondary">Last updated 3 mins ago</small></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer mt-5">
<div class="container">
<p class="mb-0">© 2024 Your Company. All rights reserved.</p>
<p>
<a href="#">Privacy Policy</a> | <a href="#">Terms of Service</a>
</p>
<div class="social-icons">
<a href="#" aria-label="Facebook"><i class="fab fa-facebook-f"></i></a>
<a href="#" aria-label="Twitter"><i class="fab fa-twitter"></i></a>
<a href="#" aria-label="Instagram"><i class="fab fa-instagram"></i></a>
</div>
</div>
</footer>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"
></script>
<script src="homeScript.js"></script>
<script>
var btn = document.getElementById('btnHomePageOnAction');
if (btn) {
btn.addEventListener('click', function() {
let searchInput = document.getElementById('inputSearchData').value;
localStorage.setItem('data', searchInput);
window.location.href = 'homePage.html';// navigate to the Home page
});
}
var btnHome = document.getElementById('homepageOnAction');
if (btnHome) {
btnHome.addEventListener('click' , function(){
window.location.href = 'index.html'; // navigate to the main page
});
}
</script>
</body>
</html>