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

  return (
    <StyleProvider buttonVariant="bubble" siteBackground="gridDots" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
          logo="Tree Passion"
          logoImageSrc="http://img.b2bpic.net/free-vector/green-cypress-logo-business-branding-template-designs-inspiration-isolated-white-background_384344-1363.jpg"
          ctaButton={{
            text: "Anfrage senden",            href: "#contact"}}
          navItems={navItems}
        />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterBasic
          columns={[
            {
              title: "Tree Passion",              items: [
                {
                  label: "Über uns",                  href: "#"},
                {
                  label: "Leistungen",                  href: "#"},
              ],
            },
            {
              title: "Rechtliches",              items: [
                {
                  label: "Impressum",                  href: "#"},
                {
                  label: "Datenschutz",                  href: "#"},
              ],
            },
          ]}
          leftText="© 2024 Tree Passion"
          rightText="Ihr Partner für Baumpflege."
        />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
