Files
6d308e88-5471-4844-9642-024…/src/components/Layout.tsx

97 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": "Il Nostro Mondo",
"href": "#mondo"
},
{
"name": "Chi Siamo",
"href": "#chisiamo"
},
{
"name": "Menù",
"href": "#menu"
},
{
"name": "Recensioni",
"href": "#recensioni"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Prenota",
"href": "#prenota"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="noise" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="AL 36"
ctaButton={{
text: "Prenota",
href: "#prenota",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="AL 36"
columns={[
{
title: "Orari",
items: [
{
label: "Mar-Ven: 07:00-22:00",
},
{
label: "Sab-Dom: 08:00-23:00",
},
],
},
{
title: "Link",
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Cookie Policy",
href: "#",
},
],
},
]}
copyright="© 2024 AL 36 · Carate Brianza"
links={[
{
label: "Instagram",
href: "https://instagram.com",
},
{
label: "Facebook",
href: "https://facebook.com",
},
]}
imageSrc="http://img.b2bpic.net/free-photo/vertical-shot-bulb-room_181624-57611.jpg?_wi=2"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}