import FooterBasic from '@/components/sections/footer/FooterBasic';
import NavbarFloating from '@/components/ui/NavbarFloating';
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": "Главная",
    "href": "#hero"
  },
  {
    "name": "Костюмы",
    "href": "#products"
  },
  {
    "name": "Контакты",
    "href": "#contact"
  },
  {
    "name": "About",
    "href": "#about"
  },
  {
    "name": "Features",
    "href": "#features"
  },
  {
    "name": "Metrics",
    "href": "#metrics"
  },
  {
    "name": "Testimonials",
    "href": "#testimonials"
  }
];

  return (
    <StyleProvider buttonVariant="bounce" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloating
      logo="Kvalitelli"
      ctaButton={{
        text: "Записаться",
        href: "#contact",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterBasic
      columns={[
        {
          title: "Контакты",
          items: [
            {
              label: "пр. Красный, 66, Новосибирск",
              href: "#",
            },
            {
              label: "+7(922) 399-90-07",
              href: "tel:+79223999007",
            },
          ],
        },
        {
          title: "Информация",
          items: [
            {
              label: "Политика конфиденциальности",
              href: "#",
            },
            {
              label: "Персональные данные",
              href: "#",
            },
          ],
        },
      ]}
      leftText="© 2026 Kvalitelli. Все права защищены."
      rightText="Создаем безупречный стиль."
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
