import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
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": "Legacy",    "href": "#legacy"
  },
  {
    "name": "Operations",    "href": "#operations"
  },
  {
    "name": "Partnerships",    "href": "#contact"
  },
  {
    "name": "Hero",    "href": "#hero"
  },
  {
    "name": "Metrics",    "href": "#metrics"
  }
];

  return (
    <StyleProvider buttonVariant="magnetic" siteBackground="noiseGradient" heroBackground="horizonGlow">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="GUPCO"
      logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=cphzd7"
      ctaButton={{
        text: "Initiate Partnership",        href: "#contact"}}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimpleMedia
      imageSrc="http://img.b2bpic.net/free-photo/modern-skyscrapers-with-windows_23-2148836792.jpg"
      brand="GUPCO"
      columns={[
        {
          title: "Institutional",          items: [
            {
              label: "Legacy",              href: "#"},
            {
              label: "Management",              href: "#"},
            {
              label: "Academy",              href: "#"},
          ],
        },
        {
          title: "Operations",          items: [
            {
              label: "Exploration",              href: "#"},
            {
              label: "Safety",              href: "#"},
            {
              label: "PR",              href: "#"},
          ],
        },
        {
          title: "Connect",          items: [
            {
              label: "Inquire",              href: "#"},
            {
              label: "Partners",              href: "#"},
            {
              label: "Careers",              href: "#"},
          ],
        },
      ]}
      copyright="© 1965 Gulf of Suez Petroleum Company. All Rights Reserved."
      links={[
        {
          label: "Privacy Policy",          href: "#"},
        {
          label: "Terms of Service",          href: "#"},
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
