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 { Linkedin, Twitter } from "lucide-react";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";

export default function Layout() {
  const navItems = [
    { name: "About", href: "#about" },
    { name: "Services", href: "#services" },
    { name: "Products", href: "#products" },
    { name: "Contact", href: "#contact" },
    { name: "Hero", href: "#hero" },
    { name: "Metrics", href: "#metrics" },
    { name: "Testimonials", href: "#testimonials" }
  ];

  return (
    <StyleProvider buttonVariant="magnetic" siteBackground="gridDots" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
          logo="Societe Erriadh"
          logoImageSrc="http://img.b2bpic.net/free-vector/modern-geometric-monogram-logo-branding_125964-4542.jpg"
          ctaButton={{
            text: "Get in touch",            href: "#contact"}}
          navItems={navItems}
        />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterMinimal
          brand="Societe Erriadh"
          copyright="© 2024 Societe Erriadh. All rights reserved."
          socialLinks={[
            {
              icon: "Linkedin",              href: "#"},
            {
              icon: "Twitter",              href: "#"},
          ]}
        />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
