"use client";

import { Carousel, Card } from "@/components/ui/apple-cards-carousel";
import { H3, P , Eyebrow} from "@/components/Texts";

export function HomeSlider() {
  const cards = data.map((card) => (
    <Card key={card.src} card={card} />
  ));

  return (
    <div className="w-full h-full py-20 bg-[#0b0b0b]">
      <div className="max-w-7xl mx-auto pl-4">
        <Eyebrow className="text-left">
          Ecosystem
        </Eyebrow>
        <H3 className="text-left text-white">
          Discover the Mycelium Components
        </H3>
        <div className="mt-4 max-w-3xl">
          <P className="text-left text-neutral-400">
            From compute and networking to intelligent automation, these components work together to empower users, developers, and organizations to build freely, without intermediaries.
          </P>
        </div>
      </div>
      <Carousel items={cards} />
    </div>
  );
}


import networkImage from "/images/pages/network.webp";
import agentImage from "/images/pages/agent.webp";
import cloudImage from "/images/pages/cloud.webp";
import gpuImage from "/images/pages/gpu.webp";
import computeImage from "/images/pages/compute.webp";
import storageImage from "/images/pages/storage.png";

const data = [
  {
    category: "DePIN",
    title: "Mycelium Network",
    description: "A decentralized network for distributed computing.",
    src: "/images/pages/network.png",
    bg: networkImage,
    link: "/network",
  },
  {
    category: "AI Agent",
    title: "Mycelium Agent",
    description: "An intelligent agent for task automation.",
    src: "/images/pages/agent.png",
    bg: agentImage,
    link: "/agent",
  },
  {
    category: "Cloud",
    title: "Mycelium Cloud",
    description: "Decentralized cloud storage and services.",
    src: "/images/pages/cloud.png",
    bg: cloudImage,
    link: "/cloud",
  },

  {
    category: "GPU",
    title: "Mycelium GPU",
    description: "Access to a global network of GPUs.",
    src: "/images/pages/gpu.png",
    bg: gpuImage,
    link: "/gpu",
  },
  {
    category: "Compute",
    title: "Mycelium Compute",
    description: "Run computations on a distributed network.",
    src: "/images/pages/compute.png",
    bg: computeImage,
    link: "/compute",
  },
  {
    category: "Storage",
    title: "Mycelium Storage",
    description: "Secure and decentralized data storage.",
    src: "/images/pages/storage.png",
    bg: storageImage,
    link: "/storage",
  },
];
