"use client"; import { useEffect, useState } from "react"; import { motion, AnimatePresence } from "motion/react"; import { H3, P } from "@/components/Texts"; const rotating = [ "Communities", "Integrators", "Builders", "Enterprises", "Institutions", "Creators", "Researchers", "Individuals", ]; // ✅ Use local image files (1–8) const gallery = [ "/images/audiences/1.jpg", "/images/audiences/2.jpg", "/images/audiences/3.jpg", "/images/audiences/4.jpg", "/images/audiences/5.jpg", "/images/audiences/6.jpg", "/images/audiences/7.jpg", "/images/audiences/8.jpg", ]; export function HomeAudience() { const [index, setIndex] = useState(0); useEffect(() => { const timer = setInterval(() => { setIndex((prev) => (prev + 1) % rotating.length); }, 3200); return () => clearInterval(timer); }, []); return (
{/* ✅ Top horizontal line + container border */}
{/* ✅ Main content */}
{/* ✅ LEFT — Text & rotating headline */}

Sovereign Infrastructure for{" "} {rotating[index]} {/* Invisible placeholder to avoid layout jump */} {rotating[index]}

The internet wasn’t built for sovereignty. Today, data, AI models, and identity live on centralized clouds and owned by a few.

Mycelium brings infrastructure back to people, communities, and nations: private, resilient, and cryptographically yours.

{/* ✅ RIGHT — Landscape image gallery synced with title */}
{/* ✅ Bottom border */}
); }