From a82dae84c3d22bca8a6c8a30b5282a8cd17b028e Mon Sep 17 00:00:00 2001 From: development Date: Mon, 29 Dec 2025 09:01:02 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 162 +++++++++++------------------------------------ 1 file changed, 37 insertions(+), 125 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 6e9a23e..0655e68 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -9,40 +9,8 @@ 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 [flipped, setFlipped] = useState>({}); - - 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) => { - setFlipped(prev => ({ - ...prev, - [roomId]: !prev[roomId] - })); - }; - return (
-
- {/* Header */} -
-

Curated Room Collection

-

Select from our thoughtfully designed rooms and suites

-
- - {/* Flip Cards Grid */} -
-
- {[ - { id: "1", title: "Deluxe Room", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766184712312-lhl1h85w.jpg", imageAlt: "Deluxe Room" }, - { id: "2", title: "Executive Suite", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766849442209-g2s3b84q.jpg", imageAlt: "Executive Suite" }, - { id: "3", title: "Premium Suite with View", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766184710583-yt05ru42.jpg", imageAlt: "Premium Suite with View" } - ].map((room) => ( -
-
- {/* Front of Card */} -
handleViewDetails(room.id)} - > - {room.imageAlt} -

{room.title}

- -
- - {/* Back of Card */} -
handleViewDetails(room.id)} - > -

{room.title} Specifications

- -
-
-

Beds

-

{roomSpecifications[room.id].beds}

-
-
-

Size

-

{roomSpecifications[room.id].sqft}

-
-
-

Price

-

{roomSpecifications[room.id].price}

-
-
-

Amenities

-
    - {roomSpecifications[room.id].amenities.map((amenity, idx) => ( -
  • - - {amenity} -
  • - ))} -
-
-
- - -
-
-
- ))} -
-
-
+
-- 2.49.1