Files
b7a3d51e-3da1-4081-94c7-93d…/src/components/Layout.tsx
2026-06-14 17:03:04 +00:00

111 lines
2.5 KiB
TypeScript

import FooterSimple from '@/components/sections/footer/FooterSimple';
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": "Inicio",
"href": "#hero"
},
{
"name": "Productos",
"href": "#productos"
},
{
"name": "Financiación",
"href": "#financiacion"
},
{
"name": "Contacto",
"href": "#contacto"
},
{
"name": "Features Media",
"href": "#features-media"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Testimonios",
"href": "#testimonios"
}
];
return (
<StyleProvider buttonVariant="bubble" siteBackground="gridDots" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="CamaStock"
logoImageSrc="https://images.unsplash.com/photo-1505691938895-1758d7feb511?auto=format&fit=crop&w=100&h=100&q=80"
ctaButton={{
text: "Llamar ahora",
href: "tel:+34947000000",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimple
brand="CamaStock"
columns={[
{
title: "Menú",
items: [
{
label: "Inicio",
href: "#hero",
},
{
label: "Productos",
href: "#productos",
},
{
label: "Financiación",
href: "#financiacion",
},
{
label: "Contacto",
href: "#contacto",
},
],
},
{
title: "Legal",
items: [
{
label: "Privacidad",
href: "#",
},
{
label: "Aviso Legal",
href: "#",
},
],
},
]}
copyright="© 2024 CamaStock, Burgos. Tu descanso nos quita el sueño."
links={[
{
label: "Instagram",
href: "#",
},
{
label: "Facebook",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}