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": "About",
    "href": "#about"
  },
  {
    "name": "Expertise",
    "href": "#features"
  },
  {
    "name": "Team",
    "href": "#team"
  },
  {
    "name": "Contact",
    "href": "#contact"
  },
  {
    "name": "Testimonial",
    "href": "#testimonial"
  },
  {
    "name": "Faq",
    "href": "#faq"
  }
];

  return (
    <StyleProvider buttonVariant="bounce" siteBackground="gridDots" heroBackground="cornerGlow">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="Fashandi & Associates"
      ctaButton={{
        text: "Book Consultation",
        href: "#contact",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterBasic
      columns={[
        {
          title: "Practice Areas",
          items: [
            {
              label: "Litigation",
              href: "#",
            },
            {
              label: "Corporate Law",
              href: "#",
            },
            {
              label: "Real Estate",
              href: "#",
            },
          ],
        },
        {
          title: "Firm",
          items: [
            {
              label: "Our Partners",
              href: "#team",
            },
            {
              label: "Careers",
              href: "#",
            },
            {
              label: "Ethics",
              href: "#",
            },
          ],
        },
        {
          title: "Connect",
          items: [
            {
              label: "LinkedIn",
              href: "#",
            },
            {
              label: "Twitter",
              href: "#",
            },
            {
              label: "Contact",
              href: "#contact",
            },
          ],
        },
      ]}
      leftText="© 2024 Fashandi & Associates. All rights reserved."
      rightText="Professional Legal Services"
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
