From 88fbef618d9b3360970439b19377ff7516f98f3f Mon Sep 17 00:00:00 2001 From: development Date: Mon, 29 Dec 2025 08:52:32 +0000 Subject: [PATCH 1/2] Update src/app/layout.tsx --- src/app/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index d5afff0..931c0a5 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1277,4 +1277,4 @@ export default function RootLayout({ ); -} \ No newline at end of file +} From f8a1bcf5482149b768682cf35e748e4838efad1f Mon Sep 17 00:00:00 2001 From: development Date: Mon, 29 Dec 2025 08:52:33 +0000 Subject: [PATCH 2/2] Update src/app/page.tsx --- src/app/page.tsx | 72 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 68 insertions(+), 4 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 9b8d6a3..3c929c6 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -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(null); + + const roomSpecifications: Record = { + "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 ( 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] && ( +
+
+

+ {selectedRoom === "1" ? "Deluxe Room" : selectedRoom === "2" ? "Executive Suite" : "Premium Suite with View"} Specifications +

+ +
+
+

Beds

+

{roomSpecifications[selectedRoom].beds}

+
+
+

Size

+

{roomSpecifications[selectedRoom].sqft}

+
+
+

Price

+

{roomSpecifications[selectedRoom].price}

+
+
+

Amenities

+
    + {roomSpecifications[selectedRoom].amenities.map((amenity, idx) => ( +
  • + + {amenity} +
  • + ))} +
+
+
+
+
+ )}
@@ -219,4 +283,4 @@ export default function LandingPage() {
); -} \ No newline at end of file +}