99 lines
2.2 KiB
TypeScript
99 lines
2.2 KiB
TypeScript
import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
|
|
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": "Menú",
|
|
"href": "#menu"
|
|
},
|
|
{
|
|
"name": "Promociones",
|
|
"href": "#promociones"
|
|
},
|
|
{
|
|
"name": "Contacto",
|
|
"href": "#contacto"
|
|
},
|
|
{
|
|
"name": "Testimonios",
|
|
"href": "#testimonios"
|
|
},
|
|
{
|
|
"name": "Faq",
|
|
"href": "#faq"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="arrow" siteBackground="noiseGradient" heroBackground="horizonGlow">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<NavbarFloatingLogo
|
|
logo="Dulce Tentación"
|
|
ctaButton={{
|
|
text: "Pedir Ahora",
|
|
href: "#contacto",
|
|
}}
|
|
navItems={navItems} />
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterSimpleMedia
|
|
brand="Dulce Tentación"
|
|
columns={[
|
|
{
|
|
title: "Menú",
|
|
items: [
|
|
{
|
|
label: "Tortas",
|
|
href: "#menu",
|
|
},
|
|
{
|
|
label: "Café",
|
|
href: "#menu",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: "Legal",
|
|
items: [
|
|
{
|
|
label: "Privacidad",
|
|
href: "#",
|
|
},
|
|
{
|
|
label: "Términos",
|
|
href: "#",
|
|
},
|
|
],
|
|
},
|
|
]}
|
|
copyright="© 2024 Dulce Tentación. Todos los derechos reservados."
|
|
imageSrc="http://img.b2bpic.net/free-photo/female-confectioner-boxing-desserts_23-2150360237.jpg"
|
|
links={[
|
|
{
|
|
label: "Inicio",
|
|
href: "#hero",
|
|
},
|
|
{
|
|
label: "Menú",
|
|
href: "#menu",
|
|
},
|
|
]}
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|