Files
7cfd7724-27a5-4350-bec7-e9c…/src/components/Layout.tsx
2026-06-14 11:41:11 +00:00

102 lines
2.2 KiB
TypeScript

import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
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": "Nosotros",
"href": "#about"
},
{
"name": "Menú",
"href": "#menu"
},
{
"name": "Contacto",
"href": "#contact"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Testimonials",
"href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="stagger" siteBackground="gridDots" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarInline
logo="Rincón de Castro"
ctaButton={{
text: "Reservar",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="Rincón de Castro"
columns={[
{
title: "Menú",
items: [
{
label: "Especialidades",
href: "#menu",
},
{
label: "Bebidas",
href: "#",
},
],
},
{
title: "Info",
items: [
{
label: "Nosotros",
href: "#about",
},
{
label: "Contacto",
href: "#contact",
},
],
},
]}
copyright="© 2024 Rincón de Castro. Todos los derechos reservados."
links={[
{
label: "Privacidad",
href: "#",
},
{
label: "Términos",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}