-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
469 lines (415 loc) · 16.2 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
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
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
<!--
Multi-line comment:
Name: Muhammad
Course: Web Development 20S
Teacher: Ms. Hoitink
School: Pembina Trails Collegiate (PTC)
Date Last Modified: 9/26/2024
GitHub username: huznot
GitHub repo link: https://github.com/huznot/Web-Project-1
Resources and credits:
-I used chatgpt for help in making an overlay under the text on the first 2 pages because
the tutorials were very confusing and did not work. The prompt I entered was "create html/css
code for an over that goes over a background image but under the text in a div so the text can stand out"
-The card design was sourced from a previous project I made a while ago however I did add some things within it
like adding text inside and an overlay when you hover over it.
-For creating the iframe background video, I used this video as a guide: https://www.youtube.com/watch?v=F0UP2jQL_AA
-For creating alternating table row color I used https://www.geeksforgeeks.org/how-to-set-alternate-table-row-color-using-css/
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Winnipeg</title>
<script src="https://kit.fontawesome.com/b5f4641468.js" crossorigin="anonymous"></script>
<style>
html {
scroll-behavior: smooth;
}
/* Global styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
}
/* Home section styling */
#home-section {
background-image: url('images/morning.jpg');
background-size: cover;
background-position: center;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
position: relative;
background-attachment: fixed;
}
/* Overlay for home section */
#home-section::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 1;
}
/* Container for main content */
.container {
text-align: center;
color: white;
z-index: 2;
}
/* Main heading styles */
h1 {
font-size: 80px;
font-weight: bold;
}
.credit{
margin-top: 40px;
}
/* Button styles for primary button */
.button {
margin-top: 20px;
padding: 15px 30px;
font-size: 20px;
color: white;
background: transparent;
border: 2px solid white;
border-radius: 25px;
cursor: pointer;
transition: background 0.3s;
}
/* Button styles for secondary button */
.button2 {
margin-top: 20px;
padding: 15px 30px;
font-size: 20px;
color: rgb(0, 0, 0);
background: transparent;
border: 2px solid rgb(0, 0, 0);
border-radius: 25px;
cursor: pointer;
transition: background 0.3s;
}
/* Hover effects for buttons */
.button:hover {
background: white;
color: black;
}
.button2:hover {
background: black;
color: white;
}
/* Navigation bar styling */
nav {
position: absolute;
top: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 2;
background-color: rgba(255, 255, 255, 0.2);
border-radius: 50px;
padding: 15px 20px;
}
/* Navigation links styling */
nav ul {
list-style: none;
display: flex;
gap: 20px;
}
nav ul li {
display: inline;
}
nav ul li a {
color: white;
text-decoration: none;
font-size: 16px;
}
nav ul li a:hover {
text-decoration: underline;
}
/* About section styling */
#about {
position: relative;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
/* Background iframe for About section */
#about iframe {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
pointer-events: none;
z-index: 1;
}
/* Overlay for About section */
#about::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 2;
}
/* Content styling for About section */
.about-content {
position: relative;
z-index: 3;
color: white;
text-align: center;
padding: 20px;
}
.about-content h1 {
font-size: 48px;
}
.about-content p {
font-size: 24px;
margin-top: 20px;
}
/* Attractions section styling */
#attractions {
position: relative;
padding: 50px;
background-color: #e0e0e0;
color: rgb(0, 0, 0);
text-align: center;
}
#attractions h1 {
margin-bottom: 30px;
}
/* Card styles */
.card {
width: 400px;
height: 600px;
border-radius: 10px;
overflow: hidden;
position: relative;
color: rgb(240, 240, 240);
box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);
margin: 20px;
display: inline-block;
vertical-align: top;
transition: transform 0.3s;
}
.card:hover {
transform: scale(1.05);
}
/* Image styling within cards */
.card img {
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.9;
transition: opacity 0.2s ease-out;
}
/* Overlay for cards */
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
opacity: 0;
transition: opacity 0.3s;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 20px;
color: white;
}
/* Overlay text styles */
.overlay h2 {
margin-top: 30px;
font-size: 40px;
line-height: 1.3;
}
.overlay p {
font-size: 20px;
line-height: 1.6;
}
.credit-video{
text-align: center;
}
/* Show overlay on card hover */
.card:hover .overlay {
opacity: 1;
}
/* Button within card content */
.card-content .button {
display: inline-block;
margin-top: 10px;
padding: 10px 20px;
background: transparent;
color: inherit;
text-decoration: none;
border: 2px solid currentColor;
border-radius: 25px;
transition: background 0.3s;
}
/* Hover effect for card button */
.card-content .button:hover {
background: rgba(255, 255, 255, 0.2);
}
/* Link styles */
a {
color: #76d4ff;
}
#history-table{
height: 100vh;
}
/* History table section */
#history-table h1 {
text-align: center;
margin-top: 32px;
}
#history-table table {
width: 80%; /* Table width */
margin: 32px auto;
border-collapse: collapse; /* Collapse borders */
}
#history-table th,
#history-table td {
padding: 10px; /* Cell padding */
border: 1px solid #dddddd; /* Cell border */
text-align: center; /* Center text */
}
#history-table tr:nth-child(even) { /* used for alternating */
background-color: #f2f2f2;
}
/* Button container */
.button-div {
text-align: center; /* Center buttons */
margin-top: 16px; /* Space above */
}
/* Secondary button styles */
.button2 {
margin-top: 20px;
padding: 15px 30px;
background: transparent;
color: rgb(0, 0, 0); /* White text */
border: 2px solid rgb(0, 0, 0);
border-radius: 25px;
cursor: pointer; /* Pointer cursor on hover */
font-size: 16px; /* Text size */
}
/* Hover effect for secondary button */
.button2:hover {
background: black;
color: white;
}
</style>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#home-section">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#attractions">Attractions</a></li>
<li><a href="#history-table">History</a></li>
</ul>
</nav>
</header>
<main>
<!-- Home Section -->
<section id="home-section">
<div class="container">
<h1>Winnipeg</h1>
<a href="#about"><button class="button">See more <i class="fa-solid fa-arrow-up-right-from-square"></i></button></a>
<p class="credit">*Image via <a href="https://www.flickr.com/photos/43296902@N00/52118804932/">flickr</a></p>
</div>
</section>
<!-- About Section -->
<section id="about">
<figure>
<iframe src="https://www.youtube.com/embed/ZVeH47RSeGA?si=Lh_PrS54IvVuTNtM&autoplay=1&rel=0&mute=1&loop=1&playlist=ZVeH47RSeGA&controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</figure>
<div class="about-content">
<h1>Welcome to Winnipeg</h1>
<p>Discover the <mark>beauty</mark> of the city with its <mark>cultural landmarks</mark> and <mark>scenic landscapes.</mark></p>
<p class="video-credit"> <br> <br><em> Video Via <a href="https://www.youtube.com/watch?v=ZVeH47RSeGA&list=TLGGbnKJlTLohEkyNjA5MjAyNA&t=1s">YouTube</em></a></p>
</div>
</section>
<!-- Attractions Section -->
<section id="attractions">
<h1>Attractions</h1>
<!-- Card for Manitoba Legislative Building -->
<div class="card">
<img src="images/mlb.jpg" alt="Image of the Manitoba Legislative Building">
<div class="overlay">
<h2>Manitoba Legislative Building</h2>
<p><u>The Manitoba Legislative Building</u> is the seat of the provincial government. It’s known for its impressive architecture and the Golden Boy statue on top.</p>
<p><em>Image via <a href="https://commons.wikimedia.org/wiki/File:Manitoba_Legislative_building_exterior_(J).jpg">Wikimedia Commons</em></a></p>
</div>
</div>
<!-- Card for Human Rights Museum -->
<div class="card">
<img src="images/Human_Rights_Museum_Sept_2022.jpg" alt="Image of the Canadian Museum for Human Rights">
<div class="overlay">
<h2>Canadian Museum for Human Rights</h2>
<p>This museum is dedicated to the history and importance of <u>human rights.</u> Its modern design is one of Winnipeg’s most recognizable landmarks.</p>
<p><em>Image via <a href="https://commons.wikimedia.org/wiki/File:Human_Rights_Museum_Sept_2022.jpg">Wikimedia Commons</em></a></p>
</div>
</div>
<!-- Card for The Forks -->
<div class="card">
<img src="images/forks.jpg" alt="Image of The Forks, a popular Winnipeg destination">
<div class="overlay">
<h2>The Forks</h2>
<p><u>The Forks</u> is a popular gathering place where visitors can explore shops, restaurants, and walking paths near the river.</p>
<p><i>Image via <a href="https://www.flickr.com/photos/time-to-look/36099659992">flickr</i></a></p>
</div>
</div>
</section>
<!-- History Table Section -->
<article id="history-table">
<h1>Key points in Winnipeg history</h1>
<table>
<tr>
<th>Year</th>
<th>Event</th>
<th>Significance</th>
</tr>
<tr>
<td><strong>1738</strong></td>
<td>Fort Rouge established</td>
<td>First European presence in Winnipeg area</td>
</tr>
<tr>
<td><strong>1873</strong></td>
<td>Winnipeg Incorporation</td>
<td>Winnipeg officially inaugurated as a city</td>
</tr>
<tr>
<td><strong>1919</strong></td>
<td>Winnipeg General Strike</td>
<td>Largest strike in Canadian history</td>
</tr>
<tr>
<td><strong>1999</strong></td>
<td>Opening of Human Rights Museum</td>
<td>First national museum outside of Ottawa opens</td>
</tr>
</table>
<!-- Button to travel to Winnipeg -->
<div class="button-div">
<a href="form.html"><button class="button2">Travel to Winnipeg</button></a>
</div>
</article>
</main>
</body>
</html>