import { useRouter } from 'next/router'; // import { Input } from 'postcss'; // Removed incorrect import import React, { useEffect, useRef, useState } from 'react'; import FeaturedEvent from './custom/FeaturedEvent'; import Footer from './custom/footer'; import Header from './custom/header'; import { Button } from './ui/button'; import { FlipWords } from './ui/flip-words'; const ProfilePage = () => { 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 */}
); }; export default ProfilePage;