File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,17 +11,20 @@ import {
1111} from "@/components/ui/eventHighlightCard" ;
1212import Explosion from "@/components/ui/Explosion" ;
1313import LandingGames from "@/components/ui/landingGames" ;
14- import { Button } from "../components/ui/button" ;
1514import { UiEvent , useEvents } from "@/hooks/useEvents" ;
1615
1716export default function Landing ( ) {
1817 const [ showExplosion , setShowExplosion ] = useState ( false ) ;
18+ const [ isShaking , setIsShaking ] = useState ( false ) ;
1919
2020 const handleExplode = ( ) => {
2121 if ( showExplosion ) return ;
2222
2323 setShowExplosion ( true ) ;
2424 setTimeout ( ( ) => setShowExplosion ( false ) , 700 ) ;
25+ // Trigger screen shake
26+ setIsShaking ( true ) ;
27+ setTimeout ( ( ) => setIsShaking ( false ) , 400 ) ;
2528 } ;
2629
2730 const { data, isPending, isError, isFetching } = useEvents ( {
You can’t perform that action at this time.
0 commit comments