Files
415e2c08-fa80-4e30-8980-3dd…/src/components/Layout.tsx
2026-06-14 05:10:53 +00:00

96 lines
2.1 KiB
TypeScript

import FooterBasic from '@/components/sections/footer/FooterBasic';
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": "Menu",
"href": "#menu"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Reviews",
"href": "#reviews"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Faq",
"href": "#faq"
},
{
"name": "Metrics",
"href": "#metrics"
}
];
return (
<StyleProvider buttonVariant="arrow" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Scapes"
ctaButton={{
text: "Book Table",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Scapes",
items: [
{
label: "About",
href: "#about",
},
{
label: "Menu",
href: "#menu",
},
{
label: "Contact",
href: "#contact",
},
],
},
{
title: "Legal",
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
],
},
]}
leftText="© 2024 Scapes Restaurant, Arboretum. All rights reserved."
rightText="Kolobot Gardens, Nairobi."
/>
</SectionErrorBoundary>
</StyleProvider>
);
}