import FooterMinimal from '@/components/sections/footer/FooterMinimal';
import NavbarFloatingLogo from '@/components/ui/NavbarFloatingLogo';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Github, Linkedin, Twitter } from "lucide-react";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";

export default function Layout() {
  const navItems = [
  {
    "name": "Cases",    "href": "#"
  },
  {
    "name": "Evidence",    "href": "#"
  },
  {
    "name": "About",    "href": "#"
  },
  {
    "name": "Hero",    "href": "#hero"
  },
  {
    "name": "Metrics",    "href": "#metrics"
  },
  {
    "name": "Features",    "href": "#features"
  },
  {
    "name": "Team",    "href": "#team"
  }
];

  return (
    <StyleProvider buttonVariant="magnetic" siteBackground="floatingGradient" heroBackground="gradientBars">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarFloatingLogo
      logo="Case Files"
      logoImageSrc="asset://hero-1"
      ctaButton={{
        text: "Sign In",        href: "#"}}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterMinimal
      brand="Case Files: The Hidden Truth"
      copyright="© 2024 Case Files Inc. All rights reserved."
      socialLinks={[
        {
          icon: "Twitter",          href: "#"},
        {
          icon: "Github",          href: "#"},
        {
          icon: "Linkedin",          href: "#"},
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
