Files
55a937f7-58ef-4cfc-9ba5-8df…/src/components/Layout.tsx

84 lines
2.1 KiB
TypeScript

import FooterBrand from '@/components/sections/footer/FooterBrand';
import NavbarCentered from '@/components/ui/NavbarCentered';
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": "#hero"
},
{
"name": "Menu", "href": "#menu"
},
{
"name": "About", "href": "#about"
},
{
"name": "Contact", "href": "#contact"
},
{
"name": "Experience", "href": "#experience"
},
{
"name": "Atmosphere", "href": "#atmosphere"
},
{
"name": "Metrics", "href": "#metrics"
}
];
return (
<StyleProvider buttonVariant="default" siteBackground="gridDots" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarCentered
logo="MANSOUR ROASTERS"
ctaButton={{
text: "Visit Us", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="MANSOUR ROASTERS"
columns={[
{
items: [
{
label: "Home", href: "/"},
{
label: "Menu", href: "#menu"},
{
label: "About", href: "#about"},
],
},
{
items: [
{
label: "Gallery", href: "#gallery"},
{
label: "Contact", href: "#contact"},
],
},
{
items: [
{
label: "Instagram", href: "#"},
{
label: "TikTok", href: "#"},
{
label: "Snapchat", href: "#"},
],
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}