Merge version_5 into main #5
@@ -1277,4 +1277,4 @@ export default function RootLayout({
|
||||
</ServiceWrapper>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,36 @@ import ProductCardFive from '@/components/sections/product/ProductCardFive';
|
||||
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
|
||||
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
|
||||
import FooterCard from '@/components/sections/footer/FooterCard';
|
||||
import { useState } from 'react';
|
||||
|
||||
export default function LandingPage() {
|
||||
const [selectedRoom, setSelectedRoom] = useState<string | null>(null);
|
||||
|
||||
const roomSpecifications: Record<string, { beds: string; sqft: string; amenities: string[]; price: string }> = {
|
||||
"1": {
|
||||
beds: "King Bed",
|
||||
sqft: "450 sq ft",
|
||||
amenities: ["Premium bedding", "City view", "Marble bathroom", "Premium toiletries", "In-room dining"],
|
||||
price: "$250/night"
|
||||
},
|
||||
"2": {
|
||||
beds: "Two Queen Beds or King Bed",
|
||||
sqft: "650 sq ft",
|
||||
amenities: ["Premium bedding", "Panoramic city view", "Luxury spa bathroom", "Separate living area", "In-room dining", "Executive lounge access"],
|
||||
price: "$450/night"
|
||||
},
|
||||
"3": {
|
||||
beds: "King Bed + Sofa",
|
||||
sqft: "850 sq ft",
|
||||
amenities: ["Premium bedding", "Panoramic Tokyo view", "Full marble bathroom with soaking tub", "Separate living and dining areas", "In-room fine dining", "Executive concierge", "Premium entertainment system"],
|
||||
price: "$650/night"
|
||||
}
|
||||
};
|
||||
|
||||
const handleViewDetails = (roomId: string) => {
|
||||
setSelectedRoom(selectedRoom === roomId ? null : roomId);
|
||||
};
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="elastic-effect"
|
||||
@@ -120,19 +148,19 @@ export default function LandingPage() {
|
||||
id: "1",
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766184712312-lhl1h85w.jpg",
|
||||
imageAlt: "Deluxe Room",
|
||||
button: { text: "View Details", href: "#" }
|
||||
button: { text: "View Details", onClick: () => handleViewDetails("1") }
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766849442209-g2s3b84q.jpg",
|
||||
imageAlt: "Executive Suite",
|
||||
button: { text: "View Details", href: "#" }
|
||||
button: { text: "View Details", onClick: () => handleViewDetails("2") }
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766184710583-yt05ru42.jpg",
|
||||
imageAlt: "Premium Suite with View",
|
||||
button: { text: "View Details", href: "#" }
|
||||
button: { text: "View Details", onClick: () => handleViewDetails("3") }
|
||||
}
|
||||
]}
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
@@ -140,6 +168,42 @@ export default function LandingPage() {
|
||||
textboxLayout="default"
|
||||
useInvertedBackground="noInvert"
|
||||
/>
|
||||
|
||||
{selectedRoom && roomSpecifications[selectedRoom] && (
|
||||
<div className="w-full max-w-4xl mx-auto mt-8 p-6 bg-card rounded-lg border border-accent">
|
||||
<div className="space-y-4">
|
||||
<h3 className="text-2xl font-bold text-foreground">
|
||||
{selectedRoom === "1" ? "Deluxe Room" : selectedRoom === "2" ? "Executive Suite" : "Premium Suite with View"} Specifications
|
||||
</h3>
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||
<div>
|
||||
<p className="text-sm text-foreground/60 mb-2">Beds</p>
|
||||
<p className="text-lg font-semibold text-foreground">{roomSpecifications[selectedRoom].beds}</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-sm text-foreground/60 mb-2">Size</p>
|
||||
<p className="text-lg font-semibold text-foreground">{roomSpecifications[selectedRoom].sqft}</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-sm text-foreground/60 mb-2">Price</p>
|
||||
<p className="text-lg font-semibold text-primary-cta">{roomSpecifications[selectedRoom].price}</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-sm text-foreground/60 mb-2">Amenities</p>
|
||||
<ul className="space-y-1">
|
||||
{roomSpecifications[selectedRoom].amenities.map((amenity, idx) => (
|
||||
<li key={idx} className="text-sm text-foreground flex items-start">
|
||||
<span className="mr-2">•</span>
|
||||
<span>{amenity}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div id="testimonials" data-section="testimonials">
|
||||
@@ -219,4 +283,4 @@ export default function LandingPage() {
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user