'use client'; import { useEffect, useRef, useState } from 'react'; import { useRouter } from 'next/navigation'; import Header from '../components/custom/header'; import Footer from '../components/custom/footer'; import { Input } from '@/components/ui/input'; import FeaturedEvent from '@/components/custom/FeaturedEvent'; import { Button } from '@/components/ui/button'; export default function Home() { const router = useRouter(); const [isClient, setIsClient] = useState(false); const inputRef: any = useRef(null); useEffect(() => { setIsClient(true); }, []); function searchForEvents() { if (inputRef.current.value == "") return; router.replace("/events?q=" + encodeURIComponent(inputRef.current.value)); } return ( <>
{/* Video Background */} {isClient && ( )} {/* Dark Overlay for Enhanced Readability */}
{/* Page Content Over the Video */}

Book your next adventure
on the Flare blockchain

); }