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": "#hero"
  },
  {
    "name": "About",    "href": "#about"
  },
  {
    "name": "Arrivals",    "href": "#arrivals"
  },
  {
    "name": "Contact",    "href": "#contact"
  },
  {
    "name": "Testimonials",    "href": "#testimonials"
  },
  {
    "name": "Faq",    "href": "#faq"
  },
  {
    "name": "Social Proof",    "href": "#social-proof"
  }
];

  return (
    <StyleProvider buttonVariant="arrow" siteBackground="gridDots" heroBackground="gradientBars">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="Thriftly"
      logoImageSrc="http://img.b2bpic.net/free-photo/sales-promotion-poster_23-2151903313.jpg"
      ctaButton={{
        text: "Visit Us",        href: "#contact"}}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleCard
      brand="Thriftly"
      columns={[
        {
          title: "Store",          items: [
            {
              label: "About",              href: "#about"},
            {
              label: "Arrivals",              href: "#arrivals"},
          ],
        },
        {
          title: "Contact",          items: [
            {
              label: "Directions",              href: "#"},
            {
              label: "Hours",              href: "#"},
          ],
        },
      ]}
      copyright="© 2024 Thriftly. All rights reserved."
      links={[
        {
          label: "Privacy Policy",          href: "#"},
        {
          label: "Terms",          href: "#"},
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
