92 lines
2.0 KiB
TypeScript
92 lines
2.0 KiB
TypeScript
import FooterBasic from '@/components/sections/footer/FooterBasic';
|
|
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": "Productos",
|
|
"href": "#products"
|
|
},
|
|
{
|
|
"name": "Testimonios",
|
|
"href": "#testimonials"
|
|
},
|
|
{
|
|
"name": "Features",
|
|
"href": "#features"
|
|
},
|
|
{
|
|
"name": "Metrics",
|
|
"href": "#metrics"
|
|
},
|
|
{
|
|
"name": "Social Proof",
|
|
"href": "#social-proof"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="stagger" siteBackground="gridDots" heroBackground="lightRaysCenter">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<NavbarInline
|
|
logo="JEMA"
|
|
ctaButton={{
|
|
text: "Tienda",
|
|
href: "#products",
|
|
}}
|
|
navItems={navItems} />
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterBasic
|
|
columns={[
|
|
{
|
|
title: "JEMA",
|
|
items: [
|
|
{
|
|
label: "Sobre Nosotros",
|
|
href: "#about",
|
|
},
|
|
{
|
|
label: "Tienda",
|
|
href: "#products",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: "Legal",
|
|
items: [
|
|
{
|
|
label: "Privacidad",
|
|
href: "#",
|
|
},
|
|
{
|
|
label: "Términos",
|
|
href: "#",
|
|
},
|
|
],
|
|
},
|
|
]}
|
|
leftText="© 2024 JEMA Suplementos."
|
|
rightText="Combustible para tu fuerza."
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|