Files
cdb44c4d-0c40-46ca-9880-ca0…/src/components/Layout.tsx
2026-06-14 12:57:15 +00:00

89 lines
1.8 KiB
TypeScript

import FooterBrand from '@/components/sections/footer/FooterBrand';
import NavbarInline from '@/components/ui/NavbarInline';
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": "Menu",
"href": "/menu"
},
{
"name": "Reservations",
"href": "/contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Testimonial",
"href": "#testimonial"
},
{
"name": "Team",
"href": "#team"
}
];
return (
<StyleProvider buttonVariant="magnetic" siteBackground="noise" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarInline
logo="BOTANICA"
ctaButton={{
text: "Book Now",
href: "/contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="BOTANICA"
columns={[
{
items: [
{
label: "Instagram",
href: "#",
},
{
label: "Facebook",
href: "#",
},
],
},
{
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
],
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}