import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
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": "About",    "href": "#about"
  },
  {
    "name": "Features",    "href": "#features"
  },
  {
    "name": "Listings",    "href": "#listings"
  },
  {
    "name": "Testimonials",    "href": "#testimonials"
  },
  {
    "name": "Hero",    "href": "#hero"
  },
  {
    "name": "Social Proof",    "href": "#social-proof"
  },
  {
    "name": "Faq",    "href": "#faq"
  }
];

  return (
    <StyleProvider buttonVariant="shift" siteBackground="gridDots" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
          logo="PropertySeller"
          logoImageSrc="http://img.b2bpic.net/free-photo/home-icon-sign-front-side_187299-39255.jpg"
          ctaButton={{
            text: "Contact Us",            href: "#contact"}}
          navItems={navItems}
        />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleCard
          brand="PropertySeller"
          columns={[
            {
              title: "Company",              items: [
                {
                  label: "About",                  href: "#about"},
                {
                  label: "Careers",                  href: "#"},
                {
                  label: "Press",                  href: "#"},
              ],
            },
            {
              title: "Resources",              items: [
                {
                  label: "Guides",                  href: "#"},
                {
                  label: "Market Trends",                  href: "#"},
                {
                  label: "Legal",                  href: "#"},
              ],
            },
          ]}
          copyright="© 2024 PropertySeller. All rights reserved."
          links={[
            {
              label: "Privacy Policy",              href: "#"},
            {
              label: "Terms of Service",              href: "#"},
          ]}
        />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
