Files
350966f1-bb84-4ffd-a3d8-1ef…/src/components/Layout.tsx

53 lines
1.9 KiB
TypeScript

import FooterBasic from '@/components/sections/footer/FooterBasic';
import NavbarFloatingLogo from '@/components/ui/NavbarFloatingLogo';
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: "Accueil", href: "#hero" },
{ name: "À propos", href: "#about" },
{ name: "Menu", href: "#menu" },
{ name: "Contact", href: "#contact" }
];
return (
<StyleProvider buttonVariant="bounce" siteBackground="gridDots" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="CAFFE-RESTO"
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=y54trv"
ctaButton={{ text: "Réserver", href: "#contact" }}
navItems={navItems}
/>
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Navigation", items: [
{ label: "Accueil", href: "#hero" },
{ label: "Menu", href: "#menu" },
{ label: "Contact", href: "#contact" }
]
},
{
title: "Legal", items: [
{ label: "Mentions Légales", href: "#" },
{ label: "Confidentialité", href: "#" }
]
}
]}
leftText="CAFFE-RESTO © 2024. Bouskoura, Maroc."
rightText="L'élégance du café, le plaisir de la gastronomie."
/>
</SectionErrorBoundary>
</StyleProvider>
);
}