Files
3404479f-a30e-4e86-9cdd-da4…/src/components/Layout.tsx
2026-06-13 18:50:23 +00:00

105 lines
2.2 KiB
TypeScript

import FooterBasic from '@/components/sections/footer/FooterBasic';
import NavbarDropdown from '@/components/ui/NavbarDropdown';
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": "Menu",
"href": "#menu"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Faq",
"href": "#faq"
},
{
"name": "Metrics",
"href": "#metrics"
}
];
return (
<StyleProvider buttonVariant="magnetic" siteBackground="gridLines" heroBackground="lightRaysCorner">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarDropdown
logo="Mister Kebab"
ctaButton={{
text: "Order Now",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Menu",
items: [
{
label: "All Items",
href: "#menu",
},
{
label: "Specials",
href: "#",
},
],
},
{
title: "About",
items: [
{
label: "Our Story",
href: "#about",
},
{
label: "Team",
href: "#",
},
],
},
{
title: "Support",
items: [
{
label: "Contact",
href: "#contact",
},
{
label: "FAQ",
href: "#faq",
},
],
},
]}
leftText="© 2024 Mister Kebab Fiumicino"
rightText="All Rights Reserved."
/>
</SectionErrorBoundary>
</StyleProvider>
);
}