-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGallery.html
136 lines (136 loc) · 4.33 KB
/
Gallery.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Travel Explorer - Gallery</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f8f9fa;
box-sizing: border-box;
}
header {
background-color: #343a40;
color: white;
padding: 15px 20px;
position: sticky;
top: 0;
z-index: 1000;
display: flex;
justify-content: space-between;
align-items: center;
}
header h1 {
margin: 0;
font-size: 1.5em;
}
nav {
margin: 0;
}
nav a {
color: white;
text-decoration: none;
margin: 0 15px;
font-weight: bold;
padding: 5px 10px;
}
nav a:hover, nav a.active {
color: #ffd700;
text-decoration: underline;
}
h1 {
text-align: center;
margin-top: 20px;
font-size: 2.5em;
color: #343a40;
}
.gallery-container {
max-width: 1200px;
margin: 20px auto;
padding: 20px;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
}
.gallery-item {
position: relative;
width: 300px;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.gallery-item:hover {
transform: scale(1.05);
}
.gallery-item img {
width: 100%;
height: auto;
display: block;
}
.gallery-caption {
background-color: rgba(0, 0, 0, 0.7);
color: white;
padding: 10px;
text-align: center;
position: absolute;
bottom: 0;
width: 100%;
font-size: 0.9em;
}
footer {
background-color: #343a40;
color: white;
text-align: center;
padding: 10px 0;
margin-top: 30px;
}
</style>
</head>
<body>
<header>
<h1>Travel Explorer</h1>
<nav>
<a href="index.html">Home</a>
<a href="gallery.html" class="active">Gallery</a>
<a href="contact.html">Contact</a>
</nav>
</header>
<main>
<h1>Our Travel Moments</h1>
<div class="gallery-container">
<div class="gallery-item">
<img src="https://mdbcdn.b-cdn.net/img/new/standard/nature/182.webp" alt="Waterfall">
<div class="gallery-caption">Beautiful Waterfall</div>
</div>
<div class="gallery-item">
<img src="https://mdbcdn.b-cdn.net/img/new/standard/nature/183.webp" alt="Sunset Over the Sea">
<div class="gallery-caption">Sunset Over the Sea</div>
</div>
<div class="gallery-item">
<img src="https://mdbcdn.b-cdn.net/img/new/standard/nature/184.webp" alt="Fissure in Sandstone">
<div class="gallery-caption">Fissure in Sandstone</div>
</div>
<div class="gallery-item">
<img src="https://mdbcdn.b-cdn.net/img/new/standard/nature/185.webp" alt="Storm Clouds">
<div class="gallery-caption">Storm Clouds</div>
</div>
<div class="gallery-item">
<img src="https://mdbcdn.b-cdn.net/img/new/standard/nature/186.webp" alt="Hot Air Balloons">
<div class="gallery-caption">Hot Air Balloons</div>
</div>
<div class="gallery-item">
<img src="https://mdbcdn.b-cdn.net/img/new/standard/nature/187.webp" alt="Peaks Against the Starry Sky">
<div class="gallery-caption">Starry Sky and Peaks</div>
</div>
</div>
</main>
<footer>
© 2024 Travel Explorer
</footer>
</body>
</html>