File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ import { usePathname } from "next/navigation"
55import { Button } from "@/components/ui/button"
66import { Avatar , AvatarFallback } from "@/components/ui/avatar"
77import { ConnectButton } from '@rainbow-me/rainbowkit'
8- import Image from "next/ image"
8+ // Helper function to get the correct image path for GitHub Pages
99const getImagePath = ( path : string ) => {
10- return path ;
10+ // For static export, we need to ensure the path works with GitHub Pages
11+ return path . startsWith ( '/' ) ? path : `/${ path } ` ;
1112} ;
1213
1314export default function Navigation ( ) {
@@ -19,7 +20,7 @@ export default function Navigation() {
1920 < div className = "flex items-center justify-between h-16" >
2021 < Link href = "/" className = "flex items-center gap-3 hover:opacity-80 transition-opacity" >
2122 < div className = "w-12 h-12 flex items-center justify-center" >
22- < Image
23+ < img
2324 src = { getImagePath ( "/block.png" ) }
2425 alt = "HackHub Logo"
2526 width = { 48 }
You can’t perform that action at this time.
0 commit comments