-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphotos.html
More file actions
362 lines (325 loc) · 8.16 KB
/
photos.html
File metadata and controls
362 lines (325 loc) · 8.16 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Photos</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Inline CSS -->
<style>
/* Reset */
body {
margin: 0;
font-family: Arial, sans-serif;
background: #F4E1D2;
color: #383838;
box-sizing: border-box;
}
*, *::before, *::after {
box-sizing: inherit;
}
/* Header */
header {
background-color: white;
display: flex;
align-items: center;
justify-content: center;
position: relative;
height: 150px;
background-size: cover;
overflow: hidden;
}
header::after {
content: "";
position: absolute;
inset: 0;
background-color: rgb(255, 255, 255);
z-index: 0;
}
.logo, .menu-icon, nav { position: relative; z-index: 2; }
.logo-link { position: relative; z-index: 2; }
.logo {
max-height: 120px;
width: auto;
object-fit: contain;
transition: transform 0.3s ease;
cursor: pointer;
}
.logo img {
height: auto;
max-width: 100%;
display: block;
}
/* Hover effect for logo */
.logo:hover {
transform: scale(1.08);
filter: drop-shadow(0 0 18px rgba(247, 202, 121, 1));
}
/* Menu Icon */
.menu-icon {
position: absolute;
left: 20px;
top: 50%;
transform: translateY(-50%);
font-size: 80px;
cursor: pointer;
background: none;
border: none;
color: #974200;
z-index: 3;
}
/* Side Menu (Full Screen Overlay) */
.side-menu {
height: 100%;
width: 100%;
position: fixed;
top: 0;
left: 0;
background: #ffffff;
transform: translateX(-100%);
transition: transform 0.4s ease;
padding-top: 80px;
z-index: 1000;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.side-menu.open { transform: translateX(0); }
/* Menu Links */
.side-menu a {
display: block;
margin: 20px 0;
color: #000000;
text-decoration: none;
font-size: 42px;
font-family: 'Playfair Display', serif;
font-weight: 600;
transition: color 0.3s ease;
}
.side-menu a:hover {
color: #BF7D3A;
}
/* Close Button */
.closebtn {
position: absolute;
top: 20px;
right: 25px;
font-size: 60px;
background: none;
border: none;
color: #000000;
cursor: pointer;
font-family: 'Playfair Display', serif;
}
/* Footer */
.luxury-footer {
text-align: center;
padding: 20px;
background: #111;
color: #fff;
font-family: 'Playfair Display', serif;
}
/* Slideshow */
.manual-slideshow {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
background: #000;
}
.slide-container {
width: 100%;
height: 100%;
position: relative;
}
.slide-container img {
display: none;
width: 100%;
height: 100%;
object-fit: cover;
}
/* Navigation buttons */
.prev1, .next1 {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0,0,0,0.55);
color: #fff;
border: none;
padding: 12px 18px;
cursor: pointer;
font-size: 22px;
border-radius: 6px;
z-index: 2;
user-select: none;
}
.prev1 { left: 20px; }
.next1 { right: 20px; }
.prev1:hover, .next1:hover {
background: rgba(0,0,0,0.85);
}
/* Fade effect */
.fade {
animation: fadeIn 500ms ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* -------------------- Responsive Adjustments -------------------- */
/* Tablet */
@media (max-width: 768px) {
header {
height: 120px;
}
.logo {
max-height: 90px;
}
.menu-icon {
font-size: 60px;
}
.side-menu a {
font-size: 32px;
}
.closebtn {
font-size: 48px;
right: 20px;
}
}
/* Mobile */
@media (max-width: 480px) {
header {
height: 100px;
}
.logo {
max-height: 70px;
}
.menu-icon {
font-size: 40px;
left: 15px;
}
.side-menu a {
font-size: 24px;
}
.closebtn {
font-size: 36px;
right: 15px;
}
}
</style>
</head>
<body>
<header>
<button class="menu-icon" id="menuToggle">☰</button>
<a href="index.html" class="logo-link">
<img src="images/logo3.png" alt="Kalash Marriage Lawn Logo" class="logo">
</a>
</header>
<nav id="sideMenu" class="side-menu">
<button class="closebtn" id="menuClose">×</button>
<a href="index.html">Home</a>
<a href="photos.html">Photos</a>
<a href="aboutus.html">About Us</a>
<a href="owners.html">Owners</a>
<a href="contactus.html">Contact Us</a>
</nav>
<div id="overlay" class="overlay"></div>
<!-- Slideshow -->
<section class="manual-slideshow" id="photosSlideshow">
<div class="slide-container">
<img src="images/img-1.jpg" alt="Stage">
<img src="images/img-2.webp" alt="Bar">
<img src="images/img-3.webp" alt="Buffet">
<img src="images/img-4.webp" alt="Open Air Buffet">
<img src="images/img-5.webp" alt="Outdoor Space">
<img src="images/img-6.webp" alt="Stage">
<img src="images/img-7.webp" alt="Open Air Lawn">
<img src="images/img-8.webp" alt="Outdoor Seating Space">
<img src="images/img-9.webp" alt="Outdoor VIP Area">
<img src="images/img-10.webp" alt="Open Air Lawn">
</div>
<button class="prev1" onclick="changeSlidePhotos(-1)">❮</button>
<button class="next1" onclick="changeSlidePhotos(1)">❯</button>
</section>
<footer class="luxury-footer">
<p>© 2025 Kalash Marriage Lawn | Designed by Ishu</p>
</footer>
<!-- Inline JS -->
<script>
// Menu toggle
const sideMenu = document.getElementById('sideMenu');
const overlay = document.getElementById('overlay');
const menuToggle = document.getElementById('menuToggle');
const menuClose = document.getElementById('menuClose');
function openMenu() {
sideMenu.classList.add('open');
overlay.classList.add('show');
}
function closeMenu() {
sideMenu.classList.remove('open');
overlay.classList.remove('show');
}
function toggleMenu() {
document.getElementById("sideMenu").classList.toggle("open");
}
menuToggle.addEventListener('click', () => {
sideMenu.classList.contains('open') ? closeMenu() : openMenu();
});
menuClose.addEventListener('click', closeMenu);
overlay.addEventListener('click', closeMenu);
// Namespaced slideshow — global functions for inline buttons
let currentSlidePhotos = 0;
let autoSlideIntervalPhotos = null;
const AUTO_INTERVAL_MS = 20000; // 20 seconds
function getSlides() {
const container = document.querySelector("#photosSlideshow .slide-container");
return container ? Array.from(container.querySelectorAll("img")) : [];
}
function showSlidePhotos(index) {
const slides = getSlides();
if (slides.length === 0) return;
// Wrap-around
if (index >= slides.length) index = 0;
if (index < 0) index = slides.length - 1;
// Hide all
for (let i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
slides[i].classList.remove("fade");
}
// Show current
slides[index].style.display = "block";
slides[index].classList.add("fade");
currentSlidePhotos = index;
}
function changeSlidePhotos(step) {
showSlidePhotos(currentSlidePhotos + step);
resetAutoSlidePhotos();
}
function startAutoSlidePhotos() {
stopAutoSlidePhotos();
autoSlideIntervalPhotos = setInterval(() => {
showSlidePhotos(currentSlidePhotos + 1);
}, AUTO_INTERVAL_MS);
}
function stopAutoSlidePhotos() {
if (autoSlideIntervalPhotos) {
clearInterval(autoSlideIntervalPhotos);
autoSlideIntervalPhotos = null;
}
}
function resetAutoSlidePhotos() {
startAutoSlidePhotos();
}
// Initialize after DOM is ready
document.addEventListener("DOMContentLoaded", function() {
showSlidePhotos(0);
startAutoSlidePhotos();
});
// Optional: keyboard navigation
document.addEventListener("keydown", function(e) {
if (e.key === "ArrowLeft") changeSlidePhotos(-1);
if (e.key === "ArrowRight") changeSlidePhotos(1);
});
</script>
</body>
</html>