-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgallery.html
More file actions
168 lines (148 loc) · 4.67 KB
/
Copy pathgallery.html
File metadata and controls
168 lines (148 loc) · 4.67 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Gallery | Victoria & Rahul</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://fonts.googleapis.com/css2?family=Mirza&family=Great+Vibes&display=swap" rel="stylesheet">
<style>
body {
background: url('./assets/images/Pages.png') no-repeat center center fixed;
background-size: cover;
font-family: 'Georgia', serif;
margin: 0;
padding: 2rem;
background-color: #fff9f9;
color: white;
}
h1 {
font-family: 'Great Vibes', cursive;
font-size: 3rem;
color: #B27409;
margin: 0;
text-align: center;
}
.content-wrapper {
background-color: rgba(0, 0, 0, 0.5);
border-radius: 12px;
padding: 2rem;
max-width: 1000px;
margin: 2rem auto;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.navbar ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1rem;
background-color: #000000BF;
padding: 1rem;
}
.navbar a {
text-decoration: none;
color: #B27409;
font-weight: bold;
font-family: 'Mirza', cursive;
font-size: 1rem;
padding: 0.5rem 1rem;
border-radius: 6px;
transition: background-color 0.3s;
}
.navbar a:hover {
background-color: #f8bbd0;
}
.gallery {
display: none; /* Initially hidden until loaded */
column-count: 3; /* 3 columns desktop */
column-gap: 1rem;
max-width: 1000px;
margin: 2rem auto;
padding: 0 1rem;
}
.gallery img {
width: 100%;
height: auto; /* Keeps original ratio */
max-height: 400px; /* Limits very tall images */
object-fit: contain; /* No cropping */
margin-bottom: 1rem;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s;
break-inside: avoid; /* Prevents image breaks across columns */
}
.gallery img:hover {
transform: scale(1.03);
}
/* Responsive adjustments */
@media (max-width: 900px) {
.gallery {
column-count: 2; /* 2 columns tablet */
}
}
@media (max-width: 600px) {
.gallery {
column-count: 1; /* 1 column mobile */
}
}
.loader-wrapper {
display: flex;
justify-content: center;
align-items: center;
height: 200px;
margin-top: 2rem;
}
.cat-loader {
width: 120px;
height: auto;
filter: drop-shadow(0 0 5px #00000088);
}
</style>
</head>
<body>
<!-- Navbar -->
<div id="nav-placeholder"></div>
<script>
fetch('navbar.html')
.then(res => res.text())
.then(data => {
document.getElementById('nav-placeholder').innerHTML = data;
});
</script>
<div class="content-wrapper">
<h1>Our Gallery</h1>
<div class="loader-wrapper" id="loader">
<img src="./assets/images/cat-spinner.gif" alt="Loading..." class="cat-loader" />
</div>
<div class="gallery" id="gallery">
<img src="./assets/images/gallery/IMG_0006.JPG" alt="IMG_0006" loading="lazy">
<img src="./assets/images/gallery/IMG_001.jpeg" alt="IMG_001" loading="lazy">
<img src="./assets/images/gallery/IMG_3556.jpg" alt="IMG_3556" loading="lazy">
<img src="./assets/images/gallery/IMG_4506.jpg" alt="IMG_4506" loading="lazy">
<img src="./assets/images/gallery/IMG_4571.jpg" alt="IMG_4571" loading="lazy">
<img src="./assets/images/gallery/IMG_4592.jpg" alt="IMG_4592" loading="lazy">
<img src="./assets/images/gallery/IMG_5285.JPG" alt="IMG_5285" loading="lazy">
<img src="./assets/images/gallery/IMG_5286.jpg" alt="IMG_5286" loading="lazy">
<img src="./assets/images/gallery/IMG_6377.jpeg" alt="IMG_6377" loading="lazy">
<img src="./assets/images/gallery/IMG_6380.jpeg" alt="IMG_6380" loading="lazy">
<img src="./assets/images/gallery/IMG_0003.JPG" alt="IMG_0003" loading="lazy">
<img src="./assets/images/gallery/IMG_0001.jpg" alt="IMG_0001" loading="lazy">
<img src="./assets/images/gallery/IMG_4372.jpg" alt="IMG_4372" loading="lazy">
<!-- Add more images as needed -->
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", () => {
const loader = document.getElementById("loader");
const gallery = document.getElementById("gallery");
// Simulate loading time before showing gallery
setTimeout(() => {
loader.style.display = "none";
gallery.style.display = "block"; // Keep CSS columns layout intact
}, 500);
});
</script>
</body>
</html>