"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 NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import ProductCardFour from '@/components/sections/product/ProductCardFour';

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="marketplace-list" data-section="marketplace-list">
      <ProductCardFour
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="four-items-2x2-equal-grid"
      useInvertedBackground={true}
      products={[
        {
          id: "p1",
          name: "Used Laptop",
          price: "€450",
          variant: "Electronics",
          imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-colleagues-talking_23-2149006917.jpg",
        },
        {
          id: "p2",
          name: "Desk Chair",
          price: "€50",
          variant: "Furniture",
          imageSrc: "http://img.b2bpic.net/free-photo/women-traveling-paris_23-2149305810.jpg",
        },
        {
          id: "p3",
          name: "Bike",
          price: "€120",
          variant: "Cars/Transport",
          imageSrc: "http://img.b2bpic.net/free-photo/front-view-young-people-hostel_23-2150446779.jpg",
        },
        {
          id: "p4",
          name: "Monitor",
          price: "€80",
          variant: "Electronics",
          imageSrc: "http://img.b2bpic.net/free-photo/full-shot-woman-holding-microphone_23-2149267742.jpg",
        },
        {
          id: "p5",
          name: "Guitar",
          price: "€150",
          variant: "Gaming/Hobby",
          imageSrc: "http://img.b2bpic.net/free-photo/brazilian-family-enjoying-meal-together_23-2151156153.jpg",
        },
        {
          id: "p6",
          name: "Winter Coat",
          price: "€40",
          variant: "Clothes",
          imageSrc: "http://img.b2bpic.net/free-photo/system-administrator-debugging-company-servers-preventing-failures_482257-124403.jpg",
        },
      ]}
      title="Browse Marketplace"
      description="Find what you need from our local community."
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqBase
      textboxLayout="default"
      useInvertedBackground={false}
      title="Marketplace FAQs"
      description="Answers to common buying and selling questions."
      faqs={[
        {
          id: "m1",
          title: "Are fees applied?",
          content: "Posting is free for community members.",
        },
      ]}
      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>
  );
}
