Files
574a3b0a-41a8-4e46-b5d4-e7f…/src/components/Layout.tsx
2026-06-03 13:38:00 +00:00

126 lines
2.7 KiB
TypeScript

import FooterBrand from '@/components/sections/footer/FooterBrand';
import NavbarFloatingLogo from '@/components/ui/NavbarFloatingLogo';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Home",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Rooms",
"href": "#accommodation"
},
{
"name": "Experiences",
"href": "#experiences"
},
{
"name": "Offers",
"href": "#offers"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "FAQs",
"href": "#faq"
},
{
"name": "Contact",
"href": "#contact"
}
];
return (
<StyleProvider buttonVariant="stagger" siteBackground="noise" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
ctaButton={{
text: "Book Now",
href: "#contact",
}}
logo="The Grand Hotel"
logoImageSrc="/placeholder-logo.png"
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="The Grand Hotel"
columns={[
{
items: [
{
label: "About Us",
href: "#about",
},
{
label: "Careers",
href: "#",
},
{
label: "Press",
href: "#",
},
{
label: "Contact",
href: "#contact",
},
],
},
{
items: [
{
label: "Rooms & Suites",
href: "#accommodation",
},
{
label: "Dining",
href: "#experiences",
},
{
label: "Spa & Wellness",
href: "#experiences",
},
{
label: "Events",
href: "#experiences",
},
],
},
{
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
{
label: "Sitemap",
href: "#",
},
],
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}