"use client" import { Button } from "@/components/ui/button" import { useAuth } from "@/hooks/useAuth"; import { useCUSDBalance } from "@/hooks/useCUSDBalance"; import { useWalletConnection } from "@/hooks/useWalletConnection"; import { motion } from "framer-motion" import { ArrowRight, CheckCircle } from "lucide-react" import { useState } from "react"; export function HeroSection() { const { address, isConnected, isConnecting, connect, disconnect, chainId } = useWalletConnection(); const { authenticate, isAuthenticating, clearAuth, isAuthenticated } = useAuth(); const { data: balance } = useCUSDBalance(address); const [showNetworkModal, setShowNetworkModal] = useState(false); const expectedChainId = parseInt(process.env.NEXT_PUBLIC_CHAIN_ID || '11142220'); const isWrongNetwork = isConnected && chainId !== expectedChainId; const handleConnect = async () => { try { // Step 1: Connect wallet await connect(); // Step 2: Authenticate await authenticate(); } catch (error) { console.error('Connection/Authentication error:', error); } }; return (
{/* Green accent border on top */}
{/* Content */}
{/* Left Column - Main Content */}
AI-Powered Verification

Complete tasks.{" "} Get verified by AI. {" "} Earn instantly.

Join the AI-powered microtask marketplace on Celo Sepolia. Complete data labeling, surveys, and content moderation tasks. Get paid in cUSD instantly. {/* Feature Pills */} {[ { label: "Powered by Gemini AI" }, { label: "Built on Celo Sepolia" }, { label: "Instant Payments" }, ].map((item, i) => (
{item.label}
))}
{/* Right Column - Stats Box */}

Platform Statistics

2,847
Active Tasks
$24,392
Paid This Week
15,234
Verified Workers
) }