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": "About",
    "href": "about"
  },
  {
    "name": "Products",
    "href": "products"
  },
  {
    "name": "Reviews",
    "href": "testimonials"
  },
  {
    "name": "Contact",
    "href": "contact"
  },
  {
    "name": "Hero",
    "href": "#hero"
  },
  {
    "name": "Metrics",
    "href": "#metrics"
  },
  {
    "name": "Testimonials",
    "href": "#testimonials"
  }
];

  return (
    <StyleProvider buttonVariant="shift" siteBackground="floatingGradient" heroBackground="cornerGlow">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarCentered
      logo="Swift Steel"
      ctaButton={{
        text: "Get Quote",
        href: "#contact",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleMedia
      brand="Swift Steel"
      columns={[
        {
          title: "Location",
          items: [
            {
              label: "168 SE Evergreen Ave",
              href: "#",
            },
            {
              label: "Redmond, OR 97756",
              href: "#",
            },
          ],
        },
        {
          title: "Hours",
          items: [
            {
              label: "Mon-Fri: 8AM-5PM",
              href: "#",
            },
            {
              label: "Sat-Sun: Closed",
              href: "#",
            },
          ],
        },
        {
          title: "Contact",
          items: [
            {
              label: "(541) 548-4536",
              href: "tel:5415484536",
            },
            {
              label: "info@swiftsteel.com",
              href: "mailto:info@swiftsteel.com",
            },
          ],
        },
      ]}
      copyright="© 2024 Swift Steel. All rights reserved."
      links={[
        {
          label: "Privacy Policy",
          href: "#",
        },
        {
          label: "Terms of Service",
          href: "#",
        },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/long-shot-people-running-together-outdoors_23-2149033523.jpg?_wi=2"
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
