'use client'; import Link from 'next/link'; import { useEffect, useState } from 'react'; import styles from './Hero.module.css'; export default function Hero() { const [currentSlide, setCurrentSlide] = useState(0); const [typedText, setTypedText] = useState(''); const slides = [ { id: 1, badge: 'INSIGHTS', badgeText: 'Smarter decisions powered by data', title: 'Understand what works and amplify your impact.', subtitle: 'Monitor interactions, audience behavior, and campaign outcomes through a unified insights panel designed to guide better marketing moves.', ctaPrimary: 'View Insights', trustedBy:'Chosen by teams across industries', image: '/images/home/banner-1.webp' }, { id: 2, badge: 'CONTROL', badgeText: 'One dashboard, total clarity', title: 'Take charge of every social channel effortlessly.', subtitle: 'Coordinate publishing, conversations, and performance tracking across platforms without switching tools or losing momentum.', ctaPrimary: 'Access the Dashboard', trustedBy:'Supporting brands, creators, and agencies globally', image: '/images/home/banner-2.webp' }, { id: 3, badge: 'OPTIMIZATION', badgeText: 'Designed for consistent growth', title: 'Turn social activity into measurable business wins.', subtitle: 'Leverage intelligent reports and audience insights to refine your strategy, improve visibility, and scale engagement with confidence.', ctaPrimary: 'Start Your Journey', trustedBy:'Built for fast-moving marketing teams', image: '/images/home/banner-3.webp' }, ]; // Typing effect for the title of the current slide useEffect(() => { const text = slides[currentSlide].title; setTypedText(''); let i = 0; const timer = setInterval(() => { if (i < text.length) { setTypedText((prev) => text.slice(0, i + 1)); i++; } else { clearInterval(timer); } }, 50); return () => clearInterval(timer); }, [currentSlide]); // Auto-slide useEffect(() => { const timer = setInterval(() => { setCurrentSlide((prev) => (prev + 1) % slides.length); }, 5000); return () => clearInterval(timer); }, []); const slide = slides[currentSlide]; return (
{/* Abstract Circles/Shapes like reference */}
{/* Left Content */}
{slide.badge} {slide.badgeText}

{typedText}|

{slide.subtitle}

{/* Search-like CTA Bar like Reference */}
✉️
{/*

{slide.trustedBy}

G
Be
📷
*/}
{/* Right Content - Image & Floating Cards */}
{/* Using dynamic image from slide data */} {slide.title}
{/* Floating Card 1: Congrats */}
📩
Congrats! You have got an Email
{/* Floating Card 2: Jobholder / Users */}
10k+ Active Users
👩 👨 🧑 +
{/* Floating Card 3: Small Message */}
👱‍♀️
Hi,

I am looking for...

{/* Slider Indicators */}
{slides.map((_, idx) => (
); }