import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
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": "Domů",
    "href": "#hero"
  },
  {
    "name": "Služby",
    "href": "#features"
  },
  {
    "name": "Ceník",
    "href": "#pricing"
  },
  {
    "name": "Reference",
    "href": "#testimonials"
  },
  {
    "name": "Kontakt",
    "href": "#contact"
  },
  {
    "name": "About",
    "href": "#about"
  },
  {
    "name": "Metrics",
    "href": "#metrics"
  }
];

  return (
    <StyleProvider buttonVariant="shift" siteBackground="floatingGradient" heroBackground="gradientBars">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="Exclusive"
      ctaButton={{
        text: "Rezervovat",
        href: "#contact",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleCard
      brand="Kadeřnictví Exclusive"
      columns={[
        {
          title: "Kontakt",
          items: [
            {
              label: "Revoluční 140, Jeseník",
            },
            {
              label: "Tel: 736 138 511",
            },
            {
              label: "Otevřeno: Po–Pá do 18:30",
            },
          ],
        },
        {
          title: "Služby",
          items: [
            {
              label: "Barvení",
              href: "#features",
            },
            {
              label: "Styling",
              href: "#features",
            },
            {
              label: "Střihy",
              href: "#features",
            },
          ],
        },
      ]}
      copyright="© 2024 Kadeřnictví Exclusive. Všechna práva vyhrazena."
      links={[
        {
          label: "Facebook",
          href: "https://facebook.com",
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
