"use client"; import { useRef } from "react"; import { Eyebrow, CP, CT, H4 } from "@/components/Texts"; import { IoArrowBackOutline, IoArrowForwardOutline } from "react-icons/io5"; import { HomeModernIcon, CpuChipIcon, ServerStackIcon, ShieldCheckIcon, } from "@heroicons/react/24/solid"; const capabilities = [ { isIntro: true, eyebrow: "CAPABILITIES", title: "What is a Pod?", description: "", }, { title: "Your private digital home on the decentralized internet", description: "Your Pod is a private digital home where apps, data, and identity live independently of Big Tech and central servers.", icon: (
), }, { title: "An always-on space you fully control", description: "A dedicated, always-on environment you fully command, your own sovereign slice of the network that never goes offline.", icon: (
), }, { title: "Runs communication, storage, and collaboration tools", description: "Runs your communication, storage, and collaboration tools in a secure local environment without reliance on outside platforms.", icon: (
), }, { title: "Fully encrypted, federated peer-to-peer network", description: "Encrypted, federated peer-to-peer networking that links your Pod directly with trusted devices without intermediaries.", icon: (
), }, ]; export function PodCapabilities() { const sliderRef = useRef(null); const scrollLeft = () => sliderRef.current?.scrollBy({ left: -400, behavior: "smooth" }); const scrollRight = () => sliderRef.current?.scrollBy({ left: 400, behavior: "smooth" }); return (
{/* Horizontal Slider */}
    {capabilities.map((item, idx) => (
  • {/* INTRO CARD */} {item.isIntro ? (
    {item.eyebrow}

    {item.title}

    {item.description}

    {/* Arrow controls */}
    ) : ( <> {/* LEFT-ALIGNED ICON */} {item.icon}
    {/* LEFT-ALIGNED TEXT */} {item.title} {item.description} )}
  • ))}
); }