@@ -5,11 +5,8 @@ import Image from "next/image";
55import Link from "next/link" ;
66import { useState } from "react" ;
77
8- import { useExplosionContext } from "@/contexts/ExplosionContext" ;
9-
108export default function Navbar ( ) {
119 const [ isDropdownOpen , setIsDropdownOpen ] = useState ( false ) ;
12- const { triggerExplosionAt } = useExplosionContext ( ) ;
1310
1411 const navItems = [
1512 { href : "/" , label : "Home" } ,
@@ -19,19 +16,11 @@ export default function Navbar() {
1916 { href : "/artwork" , label : "Art Showcase" } ,
2017 ] ;
2118
22- const handleNavClick = ( e : React . MouseEvent ) => {
23- triggerExplosionAt ( e . clientX , e . clientY ) ;
24- } ;
25-
2619 return (
2720 < >
2821 < header className = "sticky top-0 z-50 flex h-24 w-full items-center border-b-2 border-border/20 border-b-primary bg-landingCard px-20 font-jersey10" >
2922 < div className = "flex flex-1 items-center" >
30- < Link
31- href = "/"
32- className = "flex items-center gap-3 text-2xl lg:mr-5"
33- onClick = { handleNavClick }
34- >
23+ < Link href = "/" className = "flex items-center gap-3 text-2xl lg:mr-5" >
3524 < Image
3625 src = "/game_dev_club_logo.svg"
3726 alt = "logo"
@@ -55,7 +44,6 @@ export default function Navbar() {
5544 < Link
5645 key = { item . href }
5746 href = { item . href }
58- onClick = { handleNavClick }
5947 className = "whitespace-nowrap text-foreground/90 transition-colors duration-150 hover:text-primary"
6048 >
6149 { item . label }
@@ -79,8 +67,7 @@ export default function Navbar() {
7967 < Link
8068 key = { item . href }
8169 href = { item . href }
82- onClick = { ( e ) => {
83- handleNavClick ( e ) ;
70+ onClick = { ( ) => {
8471 setIsDropdownOpen ( false ) ;
8572 } }
8673 className = "block whitespace-nowrap px-4 py-3 text-lg transition-colors duration-150 hover:bg-accent"
0 commit comments