"use client";
import { useState, useEffect } from 'react';
import { ArrowRight, Wand2, Palette, Rocket } from 'lucide-react';
const steps = [
{
icon: ,
title: "Convert & Enhance Your Services",
description: "Use our intuitive tools to turn your current offerings into interactive AI agents",
color: "from-purple-500/30 to-blue-500/30"
},
{
icon: ,
title: "Customize Your Experience",
description: "Leverage our drag-and-drop builder and creative suite (forms, video editor, writer, newsletter) to tailor your AI solutions",
color: "from-blue-500/30 to-purple-500/30"
},
{
icon: ,
title: "Launch & Monetize",
description: "Build your community or list your AI services on our marketplace—boost your revenue by tapping into a growing market of SMBs seeking smart solutions",
color: "from-purple-500/30 to-pink-500/30"
}
];
export default function HowItWorks() {
const [activeStep, setActiveStep] = useState(0);
const [isHovering, setIsHovering] = useState(false);
useEffect(() => {
if (isHovering) return;
const timer = setInterval(() => {
setActiveStep((prev) => (prev + 1) % steps.length);
}, 5000);
return () => clearInterval(timer);
}, [isHovering]);
return (
How It Works
Transform your business with AI in three simple steps
{/* Connecting line */}
{steps.map((step, index) => (
{
setIsHovering(true);
setActiveStep(index);
}}
onMouseLeave={() => setIsHovering(false)}
>
{/* Icon container */}
{/* Content */}
{step.title}
{step.description}
{/* Step indicator */}
Step {index + 1}
{index < steps.length - 1 && (
)}
))}
);
}