import FooterBasic from '@/components/sections/footer/FooterBasic';
import NavbarCentered from '@/components/ui/NavbarCentered';
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": "Über uns",
    "href": "#about"
  },
  {
    "name": "Leistungen",
    "href": "#services"
  },
  {
    "name": "Kontakt",
    "href": "#contact"
  },
  {
    "name": "Hero",
    "href": "#hero"
  },
  {
    "name": "Metrics",
    "href": "#metrics"
  }
];

  return (
    <StyleProvider buttonVariant="bubble" siteBackground="noise" heroBackground="gradientBars">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarCentered
      logo="Kümmerle"
      ctaButton={{
        text: "Kontakt aufnehmen",
        href: "#contact",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterBasic
      columns={[
        {
          title: "Kontakt",
          items: [
            {
              label: "Kirchheim unter Teck",
              href: "#",
            },
            {
              label: "Tel: 07021 123456",
              href: "tel:+497021123456",
            },
          ],
        },
        {
          title: "Rechtliches",
          items: [
            {
              label: "Impressum",
              href: "#",
            },
            {
              label: "Datenschutz",
              href: "#",
            },
          ],
        },
      ]}
      leftText="© 2024 Margot Kümmerle Elektrotechnik"
      rightText="Ihr kompetenter Meisterbetrieb."
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
