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

  return (
    <StyleProvider buttonVariant="magnetic" siteBackground="noiseGradient" heroBackground="radialGradient">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="Red Diamond"
      logoImageSrc="http://img.b2bpic.net/free-vector/casino-diamond-with-splashes_1017-7741.jpg"
      ctaButton={{
        text: "Consultation",        href: "#contact"}}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterBrand
      brand="Red Diamond Services © 2024"
      columns={[
        {
          items: [
            {
              label: "Services",              href: "#services"},
            {
              label: "Pricing",              href: "#pricing"},
            {
              label: "Contact",              href: "#contact"},
          ],
        },
        {
          items: [
            {
              label: "Privacy Policy",              href: "#"},
            {
              label: "Terms of Service",              href: "#"},
          ],
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
