import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
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": "Anasayfa",
    "href": "#hero"
  },
  {
    "name": "Ürünler",
    "href": "#products"
  },
  {
    "name": "İletişim",
    "href": "#contact"
  },
  {
    "name": "Brands",
    "href": "#brands"
  },
  {
    "name": "Testimonials",
    "href": "#testimonials"
  },
  {
    "name": "Metrics",
    "href": "#metrics"
  },
  {
    "name": "Faq",
    "href": "#faq"
  }
];

  return (
    <StyleProvider buttonVariant="stagger" siteBackground="floatingGradient" heroBackground="gradientBars">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarCentered
      logo="DRIP HOUSE"
      ctaButton={{
        text: "Alışverişe Başla",
        href: "#products",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleMedia
      brand="DRIP HOUSE"
      columns={[
        {
          title: "Kategoriler",
          items: [
            {
              label: "Tüm Ürünler",
              href: "#",
            },
            {
              label: "Giyim",
              href: "#",
            },
            {
              label: "Ayakkabı",
              href: "#",
            },
          ],
        },
        {
          title: "Politikalar",
          items: [
            {
              label: "Gizlilik",
              href: "#",
            },
            {
              label: "İade Şartları",
              href: "#",
            },
          ],
        },
      ]}
      copyright="Powered by DRIP HOUSE DRIP © 2024"
      links={[
        {
          label: "İletişim",
          href: "#",
        },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/non-binary-person-modern-clothes-posing-artistic-way_23-2148760574.jpg?_wi=2"
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
