Skip to content

Commit 4cf3eb2

Browse files
Merge pull request #48 from StabilityNexus/sarthak
Changed Image, and using img
2 parents 1a43e3c + 7cb41f0 commit 4cf3eb2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

components/navigation.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import { usePathname } from "next/navigation"
55
import { Button } from "@/components/ui/button"
66
import { Avatar, AvatarFallback } from "@/components/ui/avatar"
77
import { ConnectButton } from '@rainbow-me/rainbowkit'
8-
import Image from "next/image"
8+
// Helper function to get the correct image path for GitHub Pages
99
const 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

1314
export 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}

0 commit comments

Comments
 (0)