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

  return (
    <StyleProvider buttonVariant="arrow" siteBackground="gridDots" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
          logo="Egypt Diary"
          logoImageSrc="http://img.b2bpic.net/free-photo/hot-air-balloon-ai-generated_268835-18737.jpg"
          ctaButton={{
            text: "Contact Me",            href: "#contact"}}
          navItems={navItems} 
        />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleCard
          brand="Egypt Travel Diary"
          columns={[
            {
              title: "Explore",              items: [
                {
                  label: "Cairo",                  href: "#"},
                {
                  label: "Luxor",                  href: "#"},
              ],
            },
            {
              title: "Planning",              items: [
                {
                  label: "Tips",                  href: "#"},
                {
                  label: "Itineraries",                  href: "#"},
              ],
            },
          ]}
          copyright="© 2024 Egypt Travel Diary"
          links={[
            {
              label: "Privacy",              href: "#"},
            {
              label: "Terms",              href: "#"},
          ]}
        />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
