Files
9826b668-7913-464c-b97a-077…/src/components/Layout.tsx

68 lines
1.8 KiB
TypeScript

import FooterBrand from '@/components/sections/footer/FooterBrand';
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": "/"
},
{
"name": "Le Cabinet", "href": "/about"
},
{
"name": "Services", "href": "/services"
},
{
"name": "Expertise", "href": "/expertise"
},
{
"name": "Témoignages", "href": "/testimonials"
},
{
"name": "Contact", "href": "/contact"
}
];
return (
<StyleProvider buttonVariant="shift" siteBackground="gridDots" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Dr Marinetti"
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=8oz8q5"
ctaButton={{
text: "Prendre RDV", href: "/contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="Docteur Marinetti - Chirurgien Esthétique"
columns={[
{
items: [
{
label: "Mentions Légales", href: "/mentions"},
{
label: "RGPD", href: "/rgpd"},
],
},
{
items: [
{
label: "Prendre RDV", href: "/contact"},
],
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}