'use client'; import HERO_CONTENT from '@/data/hero-content.json'; import HERO_STATS from '@/data/hero-stats.json'; import { Button } from '@components'; import { motion } from 'framer-motion'; import Image from 'next/image'; import { useRouter } from 'next/navigation'; import { Fragment, useEffect, useState } from 'react'; export function HeroSection() { const router = useRouter(); const { communityLabel, headingLine1, headingLine2, description, buttons } = HERO_CONTENT; const [scrollY, setScrollY] = useState(0); useEffect(() => { const handleScroll = () => { setScrollY(window.scrollY); }; window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); return (
{/* Background gradients and motion */}
{communityLabel}

{headingLine1}{' '} {headingLine2}

{description}

{HERO_STATS.map(({ value, label }, i) => (
{value}
{label}
{i < HERO_STATS.length - 1 && (
)} ))}
logo
); }