Files
f88fd8db-147f-41ed-a761-917…/src/components/Layout.tsx

111 lines
2.5 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
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": "About",
"href": "#about"
},
{
"name": "Menu",
"href": "#menu"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Pricing",
"href": "#pricing"
},
{
"name": "Testimonial",
"href": "#testimonial"
},
{
"name": "Faq",
"href": "#faq"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="noise" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarDropdown
logo="Bistro"
ctaButton={{
text: "Book Table",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="Bistro"
columns={[
{
title: "Links",
items: [
{
label: "About",
href: "#about",
},
{
label: "Menu",
href: "#menu",
},
{
label: "Events",
href: "#",
},
],
},
{
title: "Support",
items: [
{
label: "Contact Us",
href: "#contact",
},
{
label: "FAQ",
href: "#faq",
},
{
label: "Privacy Policy",
href: "#",
},
],
},
]}
copyright="© 2024 Bistro Restaurant. All rights reserved."
links={[
{
label: "Instagram",
href: "https://instagram.com",
},
{
label: "Facebook",
href: "https://facebook.com",
},
]}
imageSrc="http://img.b2bpic.net/free-photo/front-view-delicious-thanksgiving-meal_23-2148629568.jpg?_wi=2"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}