import FooterSimple from '@/components/sections/footer/FooterSimple';
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": "Benchmark",
    "href": "#benchmark"
  },
  {
    "name": "De Norm",
    "href": "#norm"
  },
  {
    "name": "Cases",
    "href": "#testimonials"
  },
  {
    "name": "Hero",
    "href": "#hero"
  },
  {
    "name": "About",
    "href": "#about"
  },
  {
    "name": "Metrics",
    "href": "#metrics"
  },
  {
    "name": "Features",
    "href": "#features"
  }
];

  return (
    <StyleProvider buttonVariant="elastic" siteBackground="gridDots" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarInline
      logo="Sterck"
      ctaButton={{
        text: "Vraag Toetsing Aan",
        href: "#contact",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimple
      brand="Sterck"
      columns={[
        {
          title: "Diensten",
          items: [
            {
              label: "Fitness Benchmark",
              href: "#benchmark",
            },
            {
              label: "Marketing Audit",
              href: "#",
            },
          ],
        },
        {
          title: "Bedrijf",
          items: [
            {
              label: "Over Sterck",
              href: "#",
            },
            {
              label: "Cases",
              href: "#",
            },
          ],
        },
      ]}
      copyright="© 2024 Sterck Marketing. Alle rechten voorbehouden."
      links={[
        {
          label: "Privacy",
          href: "#",
        },
        {
          label: "Terms",
          href: "#",
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
