-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html.bak
More file actions
752 lines (706 loc) · 38.7 KB
/
index.html.bak
File metadata and controls
752 lines (706 loc) · 38.7 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
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
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Rich link previews/OG -->
<meta property="og:title" content="Afamily Homestay, Ipoh">
<meta property="og:description" content="Your comfortable and spacious retreat in Ipoh, Malaysia.">
<meta property="og:image" content="/Afamily Homestay.jpg"> <!-- Updated to new logo image -->
<meta property="og:url" content="YOUR_HOMESTAY_URL_HERE"> <!-- Replace with actual URL -->
<meta property="og:type" content="website">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<!-- Favicon path -->
<link rel="icon" type="image/x-icon" href="/Afamily Homestay.jpg"> <!-- Updated to new logo image -->
<!-- PWA Manifest (if applicable, link to your manifest.json) -->
<link rel="manifest" href="/manifest.json">
<title>Afamily Homestay, Ipoh</title>
<!-- Tailwind CSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Google Fonts - Inter -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
/* Custom CSS variables based on the new logo's theme */
:root {
--color-logo-light-blue: #A0E0FF; /* Light blue from logo background */
--color-logo-orange: #FF6B35; /* Orange from "Afamily" text */
--color-logo-dark-grey: #333333; /* Dark grey from "HomeStay" text */
--color-logo-cream-yellow: #F5E5B8; /* Cream yellow from house walls in logo */
--color-logo-reddish-brown: #A55A3F; /* Reddish brown from house roof in logo */
/* Semantic mapping for Tailwind utility classes to new theme colors */
--color-primary: var(--color-logo-orange); /* Used for headings, main accents */
--color-secondary: var(--color-logo-orange); /* Used for buttons, other accents */
--color-tertiary: var(--color-logo-dark-grey); /* Used for dark text, some backgrounds */
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--color-logo-light-blue); /* Overall light background */
color: var(--color-logo-dark-grey); /* Default text color */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Header/Navbar styles */
header {
background-color: var(--color-logo-light-blue); /* Light blue background */
color: var(--color-logo-dark-grey); /* Dark grey text */
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 1.5rem; /* py-2 px-6 */
}
.navbar-logo {
height: 40px; /* Adjust as needed */
width: auto;
}
.navbar-links {
display: flex;
gap: 1.5rem; /* space-x-6 */
}
.navbar-link {
color: var(--color-logo-dark-grey); /* Dark grey link text */
font-weight: 500; /* font-medium */
transition: color 0.3s ease;
}
.navbar-link:hover {
color: var(--color-logo-orange); /* Orange on hover */
}
.navbar-hamburger {
display: none; /* Hidden by default, shown on mobile */
flex-direction: column;
justify-content: space-between;
width: 24px;
height: 18px;
cursor: pointer;
}
.navbar-hamburger span {
display: block;
width: 100%;
height: 2px;
background-color: var(--color-logo-dark-grey); /* Dark grey lines */
transition: all 0.3s ease;
}
/* Mobile menu specific styles */
@media (max-width: 767px) {
.navbar {
flex-direction: column;
align-items: flex-start;
padding: 1rem 1.5rem;
}
.navbar-logo {
height: 36px;
margin-bottom: 0.5rem;
}
.navbar-links {
display: none;
flex-direction: column;
width: 100%;
background-color: var(--color-logo-light-blue);
position: absolute;
top: 100%;
left: 0;
padding: 1rem 0;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
z-index: 50;
}
.navbar-links.active {
display: flex;
}
.navbar-link {
padding: 0.75rem 1.5rem;
text-align: left;
width: 100%;
color: var(--color-logo-dark-grey);
}
.navbar-hamburger {
display: flex;
margin-left: auto;
}
.navbar a span {
font-size: 1.5rem;
}
}
@media (min-width: 768px) and (max-width: 1024px) {
.navbar {
flex-direction: row;
align-items: center;
padding: 1rem 1.5rem;
}
.navbar-logo {
height: 36px;
margin-bottom: 0;
}
.navbar-links {
display: flex !important;
flex-direction: row;
flex-wrap: wrap;
gap: 1rem;
position: static;
background: none;
box-shadow: none;
padding: 0;
}
.navbar-link {
font-size: 1rem;
padding: 0.5rem 1rem;
}
.navbar-hamburger {
display: none !important;
}
.container {
padding-left: 1rem;
padding-right: 1rem;
}
.grid {
gap: 1rem;
}
}
@media (min-width: 768px) {
.navbar {
flex-direction: row;
align-items: center;
}
.navbar-logo {
height: 40px;
margin-bottom: 0;
}
.navbar-links {
display: flex !important;
flex-direction: row;
position: static;
background: none;
box-shadow: none;
padding: 0;
}
.navbar-hamburger {
display: none !important;
}
}
/* Section grid and container adjustments for 768px */
@media (max-width: 1024px) {
.container {
padding-left: 1rem;
padding-right: 1rem;
}
.grid {
gap: 1rem;
}
}
/* Hero Section specific styling */
.hero-section-button {
background-color: var(--color-logo-orange); /* Orange button */
color: white; /* White text */
}
.hero-section-button:hover {
background-color: #E65A2C; /* Slightly darker orange on hover */
}
.bg-secondary {
background-color: var(--color-secondary);
}
.bg-secondary:hover {
background-color: #E65A2C; /* Slightly darker orange on hover, matches hero button */
}
/* Section backgrounds and text colors */
.section-bg-light {
background-color: var(--color-logo-light-blue); /* Light blue for light sections */
color: var(--color-logo-dark-grey); /* Dark grey text */
}
.section-bg-dark {
background-color: var(--color-logo-dark-grey); /* Dark grey for dark sections */
color: var(--color-logo-cream-yellow); /* Cream yellow text */
}
/* Card backgrounds and text colors */
.card-bg-light {
background-color: white; /* White cards on light background */
color: var(--color-logo-dark-grey); /* Dark grey text */
}
.card-bg-dark {
background-color: var(--color-logo-reddish-brown); /* Reddish brown cards on dark background */
color: var(--color-logo-cream-yellow); /* Cream yellow text */
}
/* Specific text colors */
.text-primary-heading { color: var(--color-logo-orange); } /* Orange for main headings */
.text-secondary-accent { color: var(--color-logo-orange); } /* Orange for accents */
.text-dark-contrast { color: var(--color-logo-dark-grey); } /* Dark grey for contrast */
.text-light-contrast { color: var(--color-logo-cream-yellow); } /* Cream yellow for contrast on dark */
/* Modal styles for image gallery */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1000; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
}
.modal-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
width: 90%;
max-width: 900px; /* Increased max-width for better image display */
position: relative;
text-align: center;
}
.close-button {
color: #aaa;
position: absolute;
top: 10px;
right: 20px;
font-size: 36px; /* Larger close button */
font-weight: bold;
cursor: pointer;
transition: color 0.3s ease;
}
.close-button:hover,
.close-button:focus {
color: #333;
text-decoration: none;
}
.carousel-container {
position: relative;
max-width: 800px; /* Adjusted max-width for carousel */
margin: 20px auto;
overflow: hidden; /* Hide overflow for smooth transitions */
}
.carousel-image {
display: none;
width: 100%;
height: auto;
border-radius: 4px;
transition: opacity 0.5s ease-in-out; /* Smooth fade effect */
}
.carousel-image.active {
display: block;
opacity: 1;
}
.carousel-nav-button {
cursor: pointer;
position: absolute;
top: 50%;
transform: translateY(-50%);
width: auto;
padding: 16px;
color: white;
font-weight: bold;
font-size: 24px; /* Larger navigation buttons */
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
background-color: rgba(0,0,0,0.6); /* Darker background for buttons */
border: none;
outline: none;
}
.carousel-nav-button.left {
left: 0;
border-radius: 3px 0 0 3px;
}
.carousel-nav-button.right {
right: 0;
border-radius: 0 3px 3px 0;
}
.carousel-nav-button:hover {
background-color: rgba(0,0,0,0.9);
}
/* Footer styles */
footer {
background-color: var(--color-tertiary) !important;
color: #fff !important;
}
</style>
</head>
<body class="section-bg-light antialiased">
<!-- Header Section -->
<header class="bg-white shadow-md py-4 sticky top-0 z-50">
<div class="container mx-auto px-6 flex justify-between items-center">
<a href="#" class="flex items-center">
<img src="/photos/Afamily Homestay.jpg" alt="Afamily Homestay Logo" class="h-10 w-10 mr-3 rounded-full shadow">
<span class="text-3xl font-bold text-primary">Afamily Homestay</span>
</a>
<div class="navbar-links" id="navbarLinks">
<a href="#location" class="navbar-link">Location</a>
<a href="#rates" class="navbar-link">Rates</a>
<a href="#amenities" class="navbar-link">Amenities</a>
<a href="#gallery" class="navbar-link">Gallery</a>
<a href="#contact" class="navbar-link">Contact</a>
</div>
<div class="navbar-hamburger" id="navbarHamburger" aria-label="Open menu" tabindex="0">
<span></span>
<span></span>
<span></span>
</div>
</div>
</header>
<!-- Hero Section -->
<section class="relative bg-cover bg-center h-screen flex items-center justify-center text-white" style="background-image: url('/photos/403013374.jpg');">
<div class="absolute inset-0 bg-black opacity-40"></div>
<div class="z-10 text-center p-4">
<h1 class="text-5xl md:text-6xl font-bold mb-4 animate-fade-in-down">Afamily Homestay, Ipoh</h1>
<p class="text-xl md:text-2xl mb-8 animate-fade-in-up">Your comfortable and spacious retreat in Ipoh, Malaysia.</p>
<a href="#contact" class="inline-block bg-secondary text-white px-8 py-3 rounded-full text-lg font-semibold hover:bg-primary transition duration-300 transform hover:scale-105">Book Your Stay</a>
</div>
</section>
<main>
<!-- Location Section -->
<section id="location" class="py-16 section-bg-light">
<div class="container mx-auto px-4 text-center max-w-4xl">
<h2 class="text-4xl font-bold text-primary-heading mb-8">Find Us Here</h2>
<p class="text-lg leading-relaxed text-dark-contrast mb-8">
Our prime location ensures you're always close to the action.
</p>
<div class="aspect-w-16 aspect-h-9 w-full h-96 rounded-xl overflow-hidden shadow-xl mb-8">
<!-- Google Maps Embed for Ipoh location -->
<iframe
src="https://www.google.com/maps?q=73,+Persiaran+Pinggir+Rapat+5,+Taman+Saikat,+31350+Ipoh,+Malaysia&output=embed"
width="100%" height="100%" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade">
</iframe>
</div>
<p class="text-lg leading-relaxed text-dark-contrast max-w-3xl mx-auto">
📍 73, Persiaran Pinggir Rapat 5, Taman Saikat, 31350 Ipoh, Malaysia
</p>
</div>
</section>
<!-- Rates Section -->
<section id="rates" class="py-16 section-bg-light">
<div class="container mx-auto px-4 text-center max-w-4xl">
<h2 class="text-4xl font-bold text-primary-heading mb-6">What's the rate?</h2>
<p class="text-lg leading-relaxed text-dark-contrast mb-8">
We offer two packages. Direct bookings are significantly lower than other platforms.
</p>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 justify-center items-center">
<!-- Rate 1 -->
<div class="card-bg-light p-8 rounded-xl shadow-lg hover:shadow-xl transition-shadow duration-300 text-center">
<h3 class="text-2xl font-bold text-primary-heading mb-4">Standard Stay</h3>
<p class="text-lg text-dark-contrast mb-2">RM290/night</p>
<ul class="text-dark-contrast mb-4 space-y-1">
<li>✔️ 4 Bedrooms, 3 Bathrooms</li>
<li>✔️ Free WiFi & Parking</li>
<li>✔️ Fully furnished</li>
</ul>
<button class="mt-4 px-6 py-2 bg-secondary text-white rounded-full font-semibold transition">Book Now</button>
</div>
<!-- Rate 2 -->
<div class="card-bg-light p-8 rounded-xl shadow-lg hover:shadow-xl transition-shadow duration-300 text-center">
<h3 class="text-2xl font-bold text-primary-heading mb-4">Family Package</h3>
<p class="text-lg text-dark-contrast mb-2">RM350/night</p>
<ul class="text-dark-contrast mb-4 space-y-1">
<li>✔️ Up to 8 guests</li>
<li>✔️ Early check-in (subject to availability)</li>
</ul>
<button class="mt-4 px-6 py-2 bg-secondary text-white rounded-full font-semibold transition">Book Now</button>
</div>
</div>
<p class="text-dark-contrast mt-4">RM10 per hour for early check-in or late check-out, subject to availability.</p>
</div>
</section>
<!-- Features Section -->
<section id="features" class="py-16 section-bg-light">
<div class="container mx-auto px-4">
<h2 class="text-4xl font-bold text-center mb-12 text-primary-heading">Why Choose Afamily Homestay?</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Feature 1 -->
<div class="card-bg-light p-8 rounded-xl shadow-lg hover:shadow-xl transition-shadow duration-300 text-center">
<div class="text-5xl mb-4 text-secondary-accent">🏡</div>
<h3 class="text-2xl font-bold mb-2 text-primary-heading">Spacious & Comfortable</h3>
<p class="text-dark-contrast">Enjoy a roomy, fully-furnished home perfect for families and groups.</p>
</div>
<!-- Feature 2 -->
<div class="card-bg-light p-8 rounded-xl shadow-lg hover:shadow-xl transition-shadow duration-300 text-center">
<div class="text-5xl mb-4 text-secondary-accent">📍</div>
<h3 class="text-2xl font-bold mb-2 text-primary-heading">Prime Location</h3>
<p class="text-dark-contrast">Located in the heart of Ipoh, close to attractions, food, and shopping.</p>
</div>
<!-- Feature 3 -->
<div class="card-bg-light p-8 rounded-xl shadow-lg hover:shadow-xl transition-shadow duration-300 text-center">
<div class="text-5xl mb-4 text-secondary-accent">🧹</div>
<h3 class="text-2xl font-bold mb-2 text-primary-heading">Clean & Well-Maintained</h3>
<p class="text-dark-contrast">Professional cleaning and regular maintenance for your peace of mind.</p>
</div>
</div>
</div>
</section>
<!-- Gallery Section -->
<section id="gallery" class="py-16 section-bg-light">
<div class="container mx-auto px-6 text-center">
<h2 class="text-4xl font-bold text-primary-heading mb-12">Gallery</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
<!-- Local photos dump start -->
<img src="/photos/356951398.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/356951398.jpg')">
<img src="/photos/357068763.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357068763.jpg')">
<img src="/photos/357068770.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357068770.jpg')">
<img src="/photos/357068774.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357068774.jpg')">
<img src="/photos/357068780.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357068780.jpg')">
<img src="/photos/357068782.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357068782.jpg')">
<img src="/photos/357068787.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357068787.jpg')">
<img src="/photos/357068788.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357068788.jpg')">
<img src="/photos/357068790.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357068790.jpg')">
<img src="/photos/357068794.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357068794.jpg')">
<img src="/photos/357680925.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357680925.jpg')">
<img src="/photos/357680930.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357680930.jpg')">
<img src="/photos/357680948.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357680948.jpg')">
<img src="/photos/357680951.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357680951.jpg')">
<img src="/photos/357680954.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357680954.jpg')">
<img src="/photos/357680957.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357680957.jpg')">
<img src="/photos/357680960.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/357680960.jpg')">
<img src="/photos/403013374.jpg" alt="Gallery Photo" class="w-full h-48 object-cover rounded-lg shadow-md cursor-pointer transform hover:scale-105 transition duration-300" onclick="openGalleryModal('Gallery Photo', '/photos/403013374.jpg')">
<!-- Local photos dump end -->
</div>
</div>
</section>
<!-- Amenities Section -->
<section id="amenities" class="py-16 section-bg-light">
<div class="container mx-auto px-6">
<h2 class="text-4xl font-bold text-center mb-12 text-primary-heading">Our Amenities</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
<div class="card-bg-light p-6 rounded-xl shadow text-center">
<div class="text-4xl mb-2 text-secondary-accent">🛏️</div>
<h4 class="font-semibold mb-1 text-primary-heading">3 Bedrooms</h4>
<p class="text-dark-contrast text-sm">Comfortable beds for restful nights</p>
</div>
<div class="card-bg-light p-6 rounded-xl shadow text-center">
<div class="text-4xl mb-2 text-secondary-accent">🚿</div>
<h4 class="font-semibold mb-1 text-primary-heading">2 Bathrooms</h4>
<p class="text-dark-contrast text-sm">Clean, modern, and fully equipped</p>
</div>
<div class="card-bg-light p-6 rounded-xl shadow text-center">
<div class="text-4xl mb-2 text-secondary-accent">📶</div>
<h4 class="font-semibold mb-1 text-primary-heading">Free WiFi</h4>
<p class="text-dark-contrast text-sm">High-speed internet throughout</p>
</div>
<div class="card-bg-light p-6 rounded-xl shadow text-center">
<div class="text-4xl mb-2 text-secondary-accent">🚗</div>
<h4 class="font-semibold mb-1 text-primary-heading">Parking</h4>
<p class="text-dark-contrast text-sm">Private and secure parking space</p>
</div>
</div>
</div>
</section>
<!-- More Info Section -->
<section id="more-info" class="py-16 section-bg-light">
<div class="container mx-auto px-4">
<h2 class="text-4xl font-bold text-center mb-12 text-primary-heading">More Information</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<div class="card-bg-light p-6 rounded-xl shadow">
<h4 class="font-semibold text-primary-heading mb-2 flex items-center space-x-2">
<span>⏰</span> <span>Check-in & Check-out Times</span>
</h4>
<p class="text-dark-contrast text-sm">Please respect check-in (from 3:00 PM to 12:00 AM) and check-out (from 8:00 AM to 11:30 AM) times. Inform us in advance of your arrival.</p>
</div>
<div class="card-bg-light p-6 rounded-xl shadow">
<h4 class="font-semibold text-primary-heading mb-2 flex items-center space-x-2">
<span>🚫</span> <span>Illegal Substances & Alcohol</span>
</h4>
<p class="text-dark-contrast text-sm">No illegal substances and alcohol allowed on the premises.</p>
</div>
<div class="card-bg-light p-6 rounded-xl shadow">
<h4 class="font-semibold text-primary-heading mb-2 flex items-center space-x-2">
<span>🍽️</span> <span>Food & Drink Policy</span>
</h4>
<p class="text-dark-contrast text-sm">Please don't eat or drink in the bedrooms. Only HALAL food is allowed.</p>
</div>
<div class="card-bg-light p-6 rounded-xl shadow">
<h4 class="font-semibold text-primary-heading mb-2 flex items-center space-x-2">
<span>👥</span> <span>Unregistered Guests</span>
</h4>
<p class="text-dark-contrast text-sm">No unregistered guests allowed.</p>
</div>
<div class="card-bg-light p-6 rounded-xl shadow">
<h4 class="font-semibold text-primary-heading mb-2 flex items-center space-x-2">
<span>🤫</span> <span>Noise Curfew</span>
</h4>
<p class="text-dark-contrast text-sm">Please respect the noise curfew after 11:00 PM until 7:00 AM.</p>
</div>
<div class="card-bg-light p-6 rounded-xl shadow">
<h4 class="font-semibold text-primary-heading mb-2 flex items-center space-x-2">
<span>🚭</span> <span>Smoking Policy</span>
</h4>
<p class="text-dark-contrast text-sm">No smoking allowed anywhere on the property.</p>
</div>
<div class="card-bg-light p-6 rounded-xl shadow">
<h4 class="font-semibold text-primary-heading mb-2 flex items-center space-x-2">
<span>🎉</span> <span>Parties & Events</span>
</h4>
<p class="text-dark-contrast text-sm">No parties or events allowed.</p>
</div>
<div class="card-bg-light p-6 rounded-xl shadow">
<h4 class="font-semibold text-primary-heading mb-2 flex items-center space-x-2">
<span>🧽</span> <span>Cleanliness</span>
</h4>
<p class="text-dark-contrast text-sm">Please clean up plates, cups, and others after use. Take the trash out before you leave.</p>
</div>
<div class="card-bg-light p-6 rounded-xl shadow">
<h4 class="font-semibold text-primary-heading mb-2 flex items-center space-x-2">
<span>💡</span> <span>Energy Saving</span>
</h4>
<p class="text-dark-contrast text-sm">Please turn off the AC and lights when you go out.</p>
</div>
<div class="card-bg-light p-6 rounded-xl shadow">
<h4 class="font-semibold text-primary-heading mb-2 flex items-center space-x-2">
<span>🛋️</span> <span>Furnishings Care</span>
</h4>
<p class="text-dark-contrast text-sm">Please take care of the furnishings. Damages exceeding the security deposit will be charged. Don't rearrange the furniture.</p>
</div>
</div>
</div>
</section>
<!-- FAQ Section -->
<section id="faq" class="py-16 section-bg-light">
<div class="container mx-auto px-4">
<h2 class="text-4xl font-bold text-center mb-12 text-primary-heading">Frequently Asked Questions</h2>
<div class="space-y-8 max-w-4xl mx-auto">
<div>
<h4 class="font-semibold text-primary-heading mb-2">Is parking available?</h4>
<p class="text-dark-contrast">Yes, we provide free private parking for guests.</p>
</div>
<div>
<h4 class="font-semibold text-primary-heading mb-2">Can I check in early?</h4>
<p class="text-dark-contrast">Early check-in is possible if available. Please contact us in advance.</p>
</div>
<div>
<h4 class="font-semibold text-primary-heading mb-2">Are pets allowed?</h4>
<p class="text-dark-contrast">Sorry, pets are not allowed.</p>
</div>
</div>
</div>
</section>
<!-- Testimonials Section -->
<section id="testimonials" class="py-16 section-bg-light">
<div class="container mx-auto px-4 text-center max-w-4xl">
<h2 class="text-4xl font-bold mb-12 text-primary-heading">What Our Guests Say</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<div class="card-bg-light p-6 rounded-xl shadow">
<p class="text-lg text-dark-contrast mb-2">"Spacious, clean, and very comfortable for our family trip. Highly recommended!"</p>
<span class="block text-secondary-accent font-semibold">– Aina, Kuala Lumpur</span>
</div>
<div class="card-bg-light p-6 rounded-xl shadow">
<p class="text-lg text-dark-contrast mb-2">"Great location and friendly host. Will definitely come again!"</p>
<span class="block text-secondary-accent font-semibold">– Jason, Singapore</span>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="py-16 section-bg-light">
<div class="container mx-auto px-6 text-center">
<h2 class="text-4xl font-bold mb-12 text-primary-heading">Get in Touch</h2>
<p class="text-lg leading-relaxed max-w-2xl mx-auto mb-8">
Interested in booking Afamily Homestay? Contact us directly or visit our listing for more details and to check availability.
</p>
<div class="flex flex-col items-center space-y-4">
<a href="https://www.booking.com/hotel/my/afamily-homestay-ipoh.en-gb.html" target="_blank" class="inline-block bg-secondary text-white px-8 py-3 rounded-full text-lg font-semibold hover:bg-primary transition duration-300 transform hover:scale-105">View on Booking.com</a>
<a href="tel:+60189500459" class="inline-block bg-secondary text-white px-8 py-3 rounded-full text-lg font-semibold hover:bg-primary transition duration-300 transform hover:scale-105">Call Us: +60 18-950 0459</a>
</div>
</div>
</section>
</main>
<!-- Footer Section -->
<footer class="py-8 text-center">
<div class="flex flex-col items-center justify-center">
<img src="/photos/Afamily Homestay.jpg" alt="Afamily Homestay Logo" class="h-20 w-20 mb-3 rounded-full shadow">
<span class="text-lg font-semibold">© 2025 Afamily Homestay. All rights reserved.</span>
</div>
</footer>
<!-- Gallery Modal Structure -->
<div id="galleryModal" class="modal">
<div class="modal-content">
<span class="close-button" onclick="closeGalleryModal()">×</span>
<h3 id="modalTitle" class="text-3xl font-bold text-primary-heading mb-6 text-center"></h3>
<div class="carousel-container">
<img id="carouselImage" src="" alt="Gallery Image" class="carousel-image active">
<button class="carousel-nav-button left" onclick="prevImage()">❮</button>
<button class="carousel-nav-button right" onclick="nextImage()">❯</button>
</div>
</div>
</div>
<!-- JavaScript for Gallery Modal and Mobile Menu -->
<script>
// Gallery Modal Logic
let currentImageIndex = 0;
let galleryImages = [];
const modalTitleElement = document.getElementById('modalTitle');
const carouselImageElement = document.getElementById('carouselImage');
const galleryModal = document.getElementById('galleryModal');
// Function to open the gallery modal
function openGalleryModal(title, imageUrl) {
// Populate galleryImages array if it's empty
if (galleryImages.length === 0) {
document.querySelectorAll('#gallery img').forEach(img => {
galleryImages.push({
src: img.src,
alt: img.alt
});
});
}
// Find the index of the clicked image to set the starting point of the carousel
currentImageIndex = galleryImages.findIndex(img => img.src === imageUrl);
// Set modal content
modalTitleElement.textContent = title;
carouselImageElement.src = imageUrl;
carouselImageElement.alt = title;
// Display the modal
galleryModal.style.display = 'flex'; // Use flex to center the modal content
}
// Function to close the gallery modal
function closeGalleryModal() {
galleryModal.style.display = 'none';
}
// Function to change the image in the carousel
function changeImage(n) {
currentImageIndex += n;
// Loop back to the start or end if boundaries are reached
if (currentImageIndex >= galleryImages.length) {
currentImageIndex = 0;
}
if (currentImageIndex < 0) {
currentImageIndex = galleryImages.length - 1;
}
// Update image source and alt text
carouselImageElement.src = galleryImages[currentImageIndex].src;
carouselImageElement.alt = galleryImages[currentImageIndex].alt;
modalTitleElement.textContent = galleryImages[currentImageIndex].alt; // Update modal title with current image alt text
}
// Functions for next and previous image navigation
function nextImage() {
changeImage(1);
}
function prevImage() {
changeImage(-1);
}
// Close modal when clicking outside of the modal content
window.onclick = function(event) {
if (event.target == galleryModal) {
closeGalleryModal();
}
}
// Mobile Menu Logic
const mobileMenuButton = document.getElementById('navbarHamburger'); // Changed ID to match new structure
const mobileNavLinks = document.getElementById('navbarLinks'); // Changed ID to match new structure
mobileMenuButton.addEventListener('click', () => {
mobileNavLinks.classList.toggle('active'); // Toggles 'active' class
});
// Close mobile menu when a link is clicked
document.querySelectorAll('.navbar-link').forEach(link => {
link.addEventListener('click', () => {
if (mobileNavLinks.classList.contains('active')) {
mobileNavLinks.classList.remove('active');
}
});
});
// Close mobile menu if resized to desktop from mobile
window.addEventListener('resize', () => {
if (window.innerWidth >= 768) { // Tailwind's md breakpoint
mobileNavLinks.classList.remove('active'); // Ensure mobile menu is hidden on desktop
}
});
</script>
</body>
</html>