import FooterMinimal from '@/components/sections/footer/FooterMinimal';
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": "Services",    "href": "#services"
  },
  {
    "name": "About",    "href": "#about"
  },
  {
    "name": "Contact",    "href": "#contact"
  },
  {
    "name": "Metrics",    "href": "#metrics"
  },
  {
    "name": "Testimonials",    "href": "#testimonials"
  },
  {
    "name": "Faq",    "href": "#faq"
  }
];

  return (
    <StyleProvider buttonVariant="expand" siteBackground="noise" heroBackground="gradientBars">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
          logo="Bramfelder Bedachung"
          logoImageSrc="http://img.b2bpic.net/free-photo/statue-woman-frankfurt-germany_1268-20929.jpg"
          ctaButton={{
            text: "Get Quote",            href: "#contact"}}
          navItems={navItems} 
        />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterMinimal
          brand="Bramfelder Bedachungs GmbH"
          copyright="© 2024 Bramfelder Bedachungs GmbH. All rights reserved."
          socialLinks={[
            {
              icon: "Facebook",              href: "#"},
            {
              icon: "Instagram",              href: "#"},
          ]}
        />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}