'use client'; import { useEffect, useRef } from 'react'; import styles from './HowItWorks.module.css'; export default function HowItWorks() { const sectionRef = useRef(null); useEffect(() => { const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { entry.target.classList.add(styles.visible); } }); }, { threshold: 0.1 } ); const steps = sectionRef.current?.querySelectorAll(`.${styles.step}`); steps?.forEach((step) => observer.observe(step)); return () => observer.disconnect(); }, []); const steps = [ { number: '01', title: 'Connect Your Accounts', description: 'Link all your social media accounts in seconds with our secure OAuth integration.', icon: '🔗', color: '#667eea', }, { number: '02', title: 'Create & Schedule Content', description: 'Design beautiful posts with our editor and schedule them at optimal times using AI suggestions.', icon: '✍️', color: '#ec4899', }, { number: '03', title: 'Engage Your Audience', description: 'Respond to comments, messages, and mentions from a unified inbox across all platforms.', icon: '💬', color: '#14b8a6', }, { number: '04', title: 'Analyze & Optimize', description: 'Track performance metrics and get actionable insights to improve your social media strategy.', icon: '📈', color: '#f59e0b', }, ]; return (
🚀 How It Works

Get Started in 4 Simple Steps

From setup to success, we've made it incredibly easy to manage your social media presence.

{steps.map((step, index) => (
{step.number}
{step.icon}

{step.title}

{step.description}

{index < steps.length - 1 && (
)}
))}

Ready to streamline your social media?

Start your 14-day free trial today. No credit card required.

Get Started Free
); }