102 lines
2.2 KiB
TypeScript
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>
|
|
);
|
|
}
|