Files
30698ba5-8eb1-4d6b-bfab-d0d…/src/components/Layout.tsx
2026-06-14 11:39:09 +00:00

110 lines
2.3 KiB
TypeScript

import FooterSimple from '@/components/sections/footer/FooterSimple';
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": "Home",
"href": "#"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Menu",
"href": "#menu"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Pricing",
"href": "#pricing"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="noise" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarDropdown
logo="Napoli Restaurant"
ctaButton={{
text: "Book Table",
href: "tel:+923344627654",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimple
brand="Napoli Restaurant"
columns={[
{
title: "Menu",
items: [
{
label: "Italian",
href: "#",
},
{
label: "Sushi",
href: "#",
},
{
label: "Fast Food",
href: "#",
},
],
},
{
title: "Company",
items: [
{
label: "About Us",
href: "#about",
},
{
label: "Careers",
href: "#",
},
{
label: "Contact",
href: "#contact",
},
],
},
]}
copyright="© 2024 Napoli Restaurant. All rights reserved."
links={[
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}