Files
28fed6b5-918e-46c5-9ac6-a38…/src/components/Layout.tsx

103 lines
2.2 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarFloating from '@/components/ui/NavbarFloating';
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": "Locations",
"href": "#locations"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Stats",
"href": "#stats"
},
{
"name": "Testimonials",
"href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="stagger" siteBackground="floatingGradient" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="Chili's"
ctaButton={{
text: "Order Now",
href: "#order",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="Chili's"
columns={[
{
title: "Menu",
items: [
{
label: "Appetizers",
href: "#menu",
},
{
label: "Entrees",
href: "#menu",
},
],
},
{
title: "About",
items: [
{
label: "Our Story",
href: "#about",
},
{
label: "Careers",
href: "#careers",
},
],
},
]}
copyright="© 2024 Chili's Grill & Bar."
links={[
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
]}
imageSrc="http://img.b2bpic.net/free-photo/mexican-food_23-2148024784.jpg?_wi=2"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}