"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import FaqBase from '@/components/sections/faq/FaqBase';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven';
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="bounce-effect"
        defaultTextAnimation="entrance-slide"
        borderRadius="rounded"
        contentWidth="compact"
        sizing="mediumLargeSizeLargeTitles"
        background="blurBottom"
        cardStyle="soft-shadow"
        primaryButtonStyle="gradient"
        secondaryButtonStyle="layered"
        headingFontWeight="normal"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingOverlay
      navItems={[
        {
          name: "Home",
          id: "/",
        },
        {
          name: "Marketplace",
          id: "/marketplace",
        },
        {
          name: "Accommodation",
          id: "/accommodation",
        },
        {
          name: "Help & Docs",
          id: "/docs",
        },
        {
          name: "Contact",
          id: "/contact",
        },
      ]}
      brandName="Easymigree"
    />
  </div>

  <div id="metric" data-section="metric">
      <MetricCardEleven
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      title="Why Choose Us"
      description="Best housing support."
      metrics={[
        {
          id: "a1",
          value: "100+",
          title: "Verified Rooms",
          description: "Safe spaces.",
          imageSrc: "http://img.b2bpic.net/free-photo/multiethnic-training-group-discussing-their-task_74855-2998.jpg",
        },
      ]}
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqBase
      textboxLayout="default"
      useInvertedBackground={false}
      title="Housing Help"
      description="Find your home safely."
      faqs={[
        {
          id: "h1",
          title: "How to spot scams?",
          content: "Read our safety guide.",
        },
      ]}
      faqsAnimation="slide-up"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseReveal
      logoText="Easymigree"
      columns={[
        {
          title: "Platform",
          items: [
            {
              label: "Marketplace",
              href: "/marketplace",
            },
            {
              label: "Accommodation",
              href: "/accommodation",
            },
          ],
        },
        {
          title: "Resources",
          items: [
            {
              label: "Help & Docs",
              href: "/docs",
            },
            {
              label: "News",
              href: "#",
            },
          ],
        },
        {
          title: "Legal",
          items: [
            {
              label: "Terms of Use",
              href: "#",
            },
            {
              label: "Privacy Policy",
              href: "#",
            },
          ],
        },
      ]}
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
