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 { Facebook, Instagram, Twitter } from "lucide-react";
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: "Services", href: "#services" },
  { name: "Testimonials", href: "#testimonials" },
  { name: "Maintenance", href: "#maintenance" },
  { name: "Faq", href: "#faq" },
  { name: "Contact", href: "#contact" }
];

  return (
    <StyleProvider buttonVariant="shift" siteBackground="noise" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="Crystal Gardens"
      logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=355dv0"
      ctaButton={{
        text: "Contact Us",        href: "#contact"}}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterMinimal
      brand="Crystal Gardens Landscape & Gardening Services"
      copyright="© 2024 Crystal Gardens. All rights reserved."
      socialLinks={[
        { icon: "Facebook", href: "https://facebook.com" },
        { icon: "Instagram", href: "https://instagram.com" },
        { icon: "Twitter", href: "https://twitter.com" },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}