import FooterSimple from '@/components/sections/footer/FooterSimple';
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": "Método",
    "href": "#about"
  },
  {
    "name": "Programas",
    "href": "#features"
  },
  {
    "name": "Reseñas",
    "href": "#testimonials"
  },
  {
    "name": "Contacto",
    "href": "#contact"
  },
  {
    "name": "Pricing",
    "href": "#pricing"
  },
  {
    "name": "Faq",
    "href": "#faq"
  }
];

  return (
    <StyleProvider buttonVariant="bubble" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="Kumon Málaga"
      logoImageSrc="https://images.unsplash.com/photo-1599305445671-ac291c95aaa9?w=200&h=200&fit=crop"
      ctaButton={{
        text: "Matricular",
        href: "#contact",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimple
      brand="Kumon Málaga"
      columns={[
        {
          title: "Programas",
          items: [
            {
              label: "Matemáticas",
              href: "#",
            },
            {
              label: "Lectura",
              href: "#",
            },
            {
              label: "Inglés",
              href: "#",
            },
          ],
        },
        {
          title: "Legal",
          items: [
            {
              label: "Política de Privacidad",
              href: "#",
            },
          ],
        },
      ]}
      copyright="© 2024 Centro Kumon Málaga. Todos los derechos reservados."
      links={[
        {
          label: "kumon.es",
          href: "https://kumon.es",
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
