Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8433113bc2 | |||
| 074038b4c8 | |||
| 0b7dad46f1 | |||
| 3e98fadad5 | |||
| c8ec2698f4 | |||
| d124c0d9d4 | |||
| 888b73d599 | |||
| 7fac983eaa | |||
| e02e73750b | |||
| a82dae84c3 | |||
| a3e87c08fb | |||
| bd4f9bb526 | |||
| c7c17b839d | |||
| 4ebd7b7492 | |||
| ec573fe237 | |||
| 98c6b2947e | |||
| c4a2292fd3 | |||
| 5fd684e0d6 |
@@ -5,40 +5,11 @@ import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatin
|
|||||||
import HeroSplitLarge from '@/components/sections/hero/HeroSplitLarge';
|
import HeroSplitLarge from '@/components/sections/hero/HeroSplitLarge';
|
||||||
import ParallaxAbout from '@/components/sections/about/ParallaxAbout';
|
import ParallaxAbout from '@/components/sections/about/ParallaxAbout';
|
||||||
import ProductCardSeven from '@/components/sections/product/ProductCardSeven';
|
import ProductCardSeven from '@/components/sections/product/ProductCardSeven';
|
||||||
import ProductCardFive from '@/components/sections/product/ProductCardFive';
|
|
||||||
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
|
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
|
||||||
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
|
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
|
||||||
import FooterCard from '@/components/sections/footer/FooterCard';
|
import FooterCard from '@/components/sections/footer/FooterCard';
|
||||||
import { useState } from 'react';
|
|
||||||
|
|
||||||
export default function LandingPage() {
|
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 (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
defaultButtonVariant="elastic-effect"
|
defaultButtonVariant="elastic-effect"
|
||||||
@@ -139,71 +110,38 @@ export default function LandingPage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="products" data-section="products">
|
<div id="products" data-section="products">
|
||||||
<ProductCardFive
|
<ProductCardSeven
|
||||||
title="Curated Room Collection"
|
title="Curated Room Collection"
|
||||||
description="Select from our thoughtfully designed rooms and suites"
|
description="Select from our thoughtfully designed rooms and suites"
|
||||||
tag="Accommodations"
|
tag="Accommodations"
|
||||||
products={[
|
products={[
|
||||||
{
|
{
|
||||||
id: "1",
|
id: "1",
|
||||||
|
name: "Deluxe Room",
|
||||||
|
price: "$250/night",
|
||||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766184712312-lhl1h85w.jpg",
|
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766184712312-lhl1h85w.jpg",
|
||||||
imageAlt: "Deluxe Room",
|
imageAlt: "Deluxe Room"
|
||||||
button: { text: "View Details", onClick: () => handleViewDetails("1") }
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "2",
|
id: "2",
|
||||||
|
name: "Executive Suite",
|
||||||
|
price: "$450/night",
|
||||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766849442209-g2s3b84q.jpg",
|
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766849442209-g2s3b84q.jpg",
|
||||||
imageAlt: "Executive Suite",
|
imageAlt: "Executive Suite"
|
||||||
button: { text: "View Details", onClick: () => handleViewDetails("2") }
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "3",
|
id: "3",
|
||||||
|
name: "Premium Suite with View",
|
||||||
|
price: "$650/night",
|
||||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766184710583-yt05ru42.jpg",
|
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766184710583-yt05ru42.jpg",
|
||||||
imageAlt: "Premium Suite with View",
|
imageAlt: "Premium Suite with View"
|
||||||
button: { text: "View Details", onClick: () => handleViewDetails("3") }
|
|
||||||
}
|
}
|
||||||
]}
|
]}
|
||||||
gridVariant="three-columns-all-equal-width"
|
gridVariant="uniform-all-items-equal"
|
||||||
animationType="slide-up"
|
animationType="slide-up"
|
||||||
textboxLayout="default"
|
textboxLayout="default"
|
||||||
useInvertedBackground="noInvert"
|
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>
|
||||||
|
|
||||||
<div id="testimonials" data-section="testimonials">
|
<div id="testimonials" data-section="testimonials">
|
||||||
|
|||||||
Reference in New Issue
Block a user