Files
d29fb663-22f0-4bf7-a6ce-d05…/src/components/Layout.tsx
2026-06-14 13:56:33 +00:00

75 lines
1.7 KiB
TypeScript

import FooterMinimal from '@/components/sections/footer/FooterMinimal';
import NavbarFloating from '@/components/ui/NavbarFloating';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Facebook, Instagram } from "lucide-react";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Home",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Specialties",
"href": "#specialties"
},
{
"name": "Reviews",
"href": "#reviews"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Faq",
"href": "#faq"
}
];
return (
<StyleProvider buttonVariant="magnetic" siteBackground="noise" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="Osteria Pocci"
ctaButton={{
text: "Prenota ora",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterMinimal
brand="Osteria Pocci"
copyright="© 2024 Osteria Pocci - Via Cesena, 6, 00182 Roma RM"
socialLinks={[
{
icon: Facebook,
href: "https://facebook.com",
},
{
icon: Instagram,
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}