Files
36aee647-1f8d-430d-9be1-147…/src/components/Layout.tsx
2026-06-17 12:45:43 +00:00

106 lines
2.3 KiB
TypeScript

import FooterSimple from '@/components/sections/footer/FooterSimple';
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": "Inicio",
"href": "#hero"
},
{
"name": "Servicios",
"href": "#services"
},
{
"name": "Opiniones",
"href": "#testimonials"
},
{
"name": "Contacto",
"href": "#contact"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Faq",
"href": "#faq"
}
];
return (
<StyleProvider buttonVariant="stagger" siteBackground="gridDots" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarInline
logo="Clínica Del Pie"
ctaButton={{
text: "Cita Previa",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimple
brand="Clínica Del Pie Callosa"
columns={[
{
title: "Clínica",
items: [
{
label: "Sobre nosotros",
href: "#about",
},
{
label: "Servicios",
href: "#services",
},
{
label: "Contacto",
href: "#contact",
},
],
},
{
title: "Legal",
items: [
{
label: "Política de Privacidad",
href: "#",
},
{
label: "Aviso Legal",
href: "#",
},
],
},
]}
copyright="© 2024 Clínica del Pie Callosa de Segura. Todos los derechos reservados."
links={[
{
label: "Privacidad",
href: "#",
},
{
label: "Términos",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}