Files
f8f2e30b-b021-40c0-9668-1ea…/src/components/Layout.tsx
2026-06-22 09:18:36 +00:00

110 lines
2.3 KiB
TypeScript

import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
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": "Quiz",
"href": "#quiz"
},
{
"name": "Gallery",
"href": "#gallery"
},
{
"name": "Rewards",
"href": "#rewards"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Faq",
"href": "#faq"
}
];
return (
<StyleProvider buttonVariant="expand" siteBackground="noise" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarDropdown
logo="Meltdown"
ctaButton={{
text: "Order Now",
href: "#order",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="Meltdown"
columns={[
{
title: "Navigate",
items: [
{
label: "Menu",
href: "#menu",
},
{
label: "Rewards",
href: "#rewards",
},
{
label: "Locations",
href: "#",
},
],
},
{
title: "Company",
items: [
{
label: "About",
href: "#about",
},
{
label: "Catering",
href: "#",
},
{
label: "Contact",
href: "#contact",
},
],
},
]}
copyright="© 2024 Meltdown Cheesery. All rights reserved."
links={[
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}