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": "Home",    "href": "#hero"
  },
  {
    "name": "Features",    "href": "#features"
  },
  {
    "name": "Community",    "href": "#testimonials"
  },
  {
    "name": "About",    "href": "#about"
  },
  {
    "name": "Metrics",    "href": "#metrics"
  },
  {
    "name": "Faq",    "href": "#faq"
  },
  {
    "name": "Contact",    "href": "#contact"
  }
];

  return (
    <StyleProvider buttonVariant="expand" siteBackground="gridLines" heroBackground="lightRaysCorner">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="Omegirls"
      logoImageSrc="http://img.b2bpic.net/free-photo/glowing-blue-neon-number-4-symbol-dark-futuristic-background_84443-91240.jpg"
      ctaButton={{
        text: "Start Chatting",        href: "#contact"}}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterBrand
      brand="Omegirls"
      columns={[
        {
          items: [
            {
              label: "About Us",              href: "#about"},
            {
              label: "Community",              href: "#"},
            {
              label: "Support",              href: "#"},
          ],
        },
        {
          items: [
            {
              label: "Privacy Policy",              href: "#"},
            {
              label: "Terms of Service",              href: "#"},
            {
              label: "Safety Guide",              href: "#"},
          ],
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
