'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'; import React from 'react'; import { FlipWords } from '@/components/ui/flip-words'; 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)); } const words = [ 'adventure', 'concert', 'outing', 'journey', 'hackathon', 'conference', ]; return ( <>
{/* Video Background */} {isClient && ( )} {/* Dark Overlay for Enhanced Readability */}
{/* Page Content Over the Video */}
Book your next on the Flare blockchain.
); }