Files
4d51cacf-4974-4a89-9f78-87f…/src/components/Layout.tsx

110 lines
2.4 KiB
TypeScript

import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
import NavbarFloating from '@/components/ui/NavbarFloating';
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": "Servicios",
"href": "#services"
},
{
"name": "Testimonios",
"href": "#testimonials"
},
{
"name": "Contacto",
"href": "#contact"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Process",
"href": "#process"
},
{
"name": "Faq",
"href": "#faq"
}
];
return (
<StyleProvider buttonVariant="shift" siteBackground="floatingGradient" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="THE BOX DETAILING"
ctaButton={{
text: "Reservar Cita",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="THE BOX DETAILING"
columns={[
{
title: "Información",
items: [
{
label: "Sobre Nosotros",
href: "#about",
},
{
label: "Servicios",
href: "#services",
},
{
label: "Contacto",
href: "#contact",
},
],
},
{
title: "Social",
items: [
{
label: "Instagram",
href: "#",
},
{
label: "WhatsApp",
href: "#",
},
{
label: "Ubicación",
href: "#",
},
],
},
]}
copyright="© 2024 The Box Detailing. Todos los derechos reservados."
links={[
{
label: "Política de Privacidad",
href: "#",
},
{
label: "Términos y Condiciones",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}