import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarCentered from '@/components/ui/NavbarCentered';
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": "Inicio",
    "href": "#"
  },
  {
    "name": "Carreras",
    "href": "#carreras"
  },
  {
    "name": "Admisión",
    "href": "#admision"
  },
  {
    "name": "Vida USMA",
    "href": "#vida"
  },
  {
    "name": "Hero",
    "href": "#hero"
  },
  {
    "name": "Features",
    "href": "#features"
  },
  {
    "name": "Metrics",
    "href": "#metrics"
  }
];

  return (
    <StyleProvider buttonVariant="default" siteBackground="gridDots" heroBackground="lightRaysCenter">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarCentered
      logo="USMA Logo"
      ctaButton={{
        text: "Portal Estudiantil",
        href: "#portal",
      }}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleMedia
      brand="USMA - Universidad Católica Santa María La Antigua"
      columns={[
        {
          title: "Institucional",
          items: [
            {
              label: "Nosotros",
              href: "#",
            },
            {
              label: "Admisiones",
              href: "#",
            },
            {
              label: "Contacto",
              href: "#",
            },
          ],
        },
        {
          title: "Recursos",
          items: [
            {
              label: "Moodle",
              href: "#",
            },
            {
              label: "Biblioteca",
              href: "#",
            },
            {
              label: "Calendario",
              href: "#",
            },
          ],
        },
      ]}
      copyright="© 2024 USMA Panamá. Todos los derechos reservados."
      imageSrc="http://img.b2bpic.net/free-photo/students-learning-library-high-angle_23-2149647042.jpg?_wi=3"
      links={[
        {
          label: "Privacidad",
          href: "#",
        },
        {
          label: "Términos",
          href: "#",
        },
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
