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": "#home" },
    { "name": "Services", "href": "#services" },
    { "name": "Products", "href": "#products" },
    { "name": "About", "href": "#about" },
    { "name": "Team", "href": "#team" },
    { "name": "Testimonials", "href": "#testimonials" },
    { "name": "Faq", "href": "#faq" }
  ];

  return (
    <StyleProvider buttonVariant="bubble" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
          logo="QuickSeva"
          logoImageSrc="https://storage.googleapis.com/webild/users/user_3FAakrGyZd7VBV36Fpvs1I0qz8k/uploaded-1781520761041-gy58vkal.png"
          ctaButton={{
            text: "Book Now",            href: "#contact"
          }}
          navItems={navItems}
        />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterMinimal
          brand="QuickSeva"
          copyright="© 2024 QuickSeva Technologies. All rights reserved."
          socialLinks={[
            { icon: "Facebook" },
            { icon: "Instagram" },
            { icon: "Twitter" }
          ]}
        />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
