chore: fix asset path again attempt #4

This commit is contained in:
Rahul Jain
2025-10-15 21:29:48 +05:30
parent 2c3c5981f6
commit 2dbe4c1d94
2 changed files with 4 additions and 8 deletions
+2 -4
View File
@@ -1,9 +1,6 @@
import Link from 'next/link';
import Image from 'next/image';
// Import logo from public directory for GitHub Pages compatibility
import logoImage from '../../../public/mdg.png';
export function Footer() {
return (
<footer className="border-border bg-card border-t py-8">
@@ -11,11 +8,12 @@ export function Footer() {
{/* Logo Section */}
<div className="mb-8 flex items-center justify-center gap-3">
<Image
src={logoImage}
src="/mdg.png"
alt="GitHub Profile README Generator Logo"
width={48}
height={48}
className="h-12 w-12"
unoptimized
/>
<span className="text-xl font-bold">GitHub Profile README Generator</span>
</div>
+2 -4
View File
@@ -7,9 +7,6 @@ import { ThemeToggle } from '@/components/ui/theme-toggle';
import { AccessibilityMenu } from '@/components/ui/accessibility-menu';
import { GitHubStats } from '@/components/ui/github-stats';
// Import logo from public directory for GitHub Pages compatibility
import logoImage from '../../../public/mdg.png';
const navigation = [
{ name: 'Generator', href: '/' },
{ name: 'Addons', href: '/addons' },
@@ -33,12 +30,13 @@ export function Header({}: HeaderProps = {}) {
<div className="flex items-center gap-4">
<Link href="/" prefetch={true} className="flex items-center gap-3 hover:opacity-80">
<Image
src={logoImage}
src="/mdg.png"
alt="GitHub Profile README Generator Logo"
width={40}
height={40}
className="h-10 w-10"
priority
unoptimized
/>
<span className="hidden text-xl font-bold sm:inline-block lg:text-2xl">
GitHub Profile README Generator