Files
158f7179-e942-4eef-b7ee-bb6…/src/components/Layout.tsx

103 lines
2.3 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarFloating from '@/components/ui/NavbarFloating';
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": "/"
},
{
"name": "Accommodations",
"href": "/accommodations"
},
{
"name": "Events",
"href": "/events"
},
{
"name": "Contact",
"href": "/contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Services",
"href": "#services"
}
];
return (
<StyleProvider buttonVariant="bubble" siteBackground="gridDots" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="Kriti Palace"
ctaButton={{
text: "Book Now",
href: "/contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="Kriti Palace, Sarnath"
columns={[
{
title: "Company",
items: [
{
label: "About Us",
href: "/",
},
{
label: "Careers",
href: "#",
},
],
},
{
title: "Support",
items: [
{
label: "Booking Policy",
href: "#",
},
{
label: "Contact",
href: "/contact",
},
],
},
]}
copyright="© 2024 Kriti Palace, Sarnath. All rights reserved."
imageSrc="http://img.b2bpic.net/free-photo/beautiful-old-architecture-historic-ayutthaya-thailand_1339-7870.jpg?_wi=2"
links={[
{
label: "Privacy",
href: "#",
},
{
label: "Terms",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}