Files
6416b426-8339-40d6-8dcd-2df…/src/components/Layout.tsx
2026-06-22 20:19:53 +00:00

93 lines
2.0 KiB
TypeScript

import FooterBrand from '@/components/sections/footer/FooterBrand';
import NavbarInline from '@/components/ui/NavbarInline';
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": "À propos",
"href": "#about"
},
{
"name": "Avis",
"href": "#testimonials"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Social",
"href": "#social"
}
];
return (
<StyleProvider buttonVariant="bounce" siteBackground="noise" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarInline
logo="Taq Taq"
ctaButton={{
text: "Commander",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="TAQ TAQ - MAMMAMIA GELATO"
columns={[
{
items: [
{
label: "À propos",
href: "#about",
},
{
label: "Menu",
href: "#menu",
},
{
label: "Contact",
href: "#contact",
},
],
},
{
items: [
{
label: "Politique de confidentialité",
href: "#",
},
{
label: "Conditions d'utilisation",
href: "#",
},
],
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}