import FooterBrand from '@/components/sections/footer/FooterBrand';
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": "Home",
    "href": "#hero"
  },
  {
    "name": "Memberships",
    "href": "#pricing"
  },
  {
    "name": "Programs",
    "href": "#programs"
  },
  {
    "name": "Trainers",
    "href": "#trainers"
  },
  {
    "name": "Why Choose Us",
    "href": "#why-choose-us"
  },
  {
    "name": "Metrics",
    "href": "#metrics"
  },
  {
    "name": "Testimonials",
    "href": "#testimonials"
  }
];

  return (
    <StyleProvider buttonVariant="bounce" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarCentered
      logo="Fitness Zone"
      ctaButton={{
        text: "Join Now",
        href: "#contact",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterBrand
      brand="Fitness Zone Gym Sialkot"
      columns={[
        {
          items: [
            {
              label: "2nd Floor, Chaudhry Tower, Airport Road, Sialkot",
            },
            {
              label: "+92 334 8178024",
            },
            {
              label: "Open 24 Hours",
            },
          ],
        },
        {
          items: [
            {
              label: "Memberships",
              href: "#pricing",
            },
            {
              label: "Classes",
              href: "#programs",
            },
            {
              label: "Contact",
              href: "#contact",
            },
          ],
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
