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": "Home",    "href": "#home"
  },
  {
    "name": "About",    "href": "#about"
  },
  {
    "name": "Catalog",    "href": "#catalog"
  },
  {
    "name": "Contact",    "href": "#contact"
  },
  {
    "name": "Features",    "href": "#features"
  },
  {
    "name": "Testimonials",    "href": "#testimonials"
  },
  {
    "name": "Metrics",    "href": "#metrics"
  }
];

  return (
    <StyleProvider buttonVariant="arrow" siteBackground="floatingGradient" heroBackground="gradientBars">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="BWear"
      logoImageSrc="http://img.b2bpic.net/free-vector/simple-handwritten-fashion-typography-logo-template_742173-7510.jpg"
      ctaButton={{
        text: "Shop Now",        href: "#catalog"}}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleCard
      brand="BWear"
      columns={[
        {
          title: "Company",          items: [
            {
              label: "About",              href: "#about"},
            {
              label: "Catalog",              href: "#catalog"},
            {
              label: "Contact",              href: "#contact"},
          ],
        },
        {
          title: "Delivery",          items: [
            {
              label: "Locations",              href: "#features"},
            {
              label: "Shipping Info",              href: "#"},
          ],
        },
      ]}
      copyright="© 2024 BWear Ethiopia. All rights reserved."
      links={[
        {
          label: "Privacy Policy",          href: "#"},
        {
          label: "Terms of Service",          href: "#"},
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
