Skip to content

Commit

Permalink
fixed github icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Precious-Macaulay committed Jan 20, 2025
1 parent a1ac0e6 commit 2472df3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Binary file removed public/github-mark-white.png
Binary file not shown.
Binary file removed public/github-mark.png
Binary file not shown.
7 changes: 2 additions & 5 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import { Link, useLocation } from 'react-router-dom';
import { cn } from '@/lib/utils';
import { PhotoIcon, HomeIcon } from '@heroicons/react/24/outline';
import { GitHubLogoIcon } from '@radix-ui/react-icons';

interface NavItem {
to: string;
Expand Down Expand Up @@ -55,11 +56,7 @@ const Navbar: React.FC = () => {
<footer className="text-sm text-gray-500">
<div className="flex-shrink-0 my-3 transition-all duration-200 ease-in-out">
<Link to="https://github.com/astriaai/imagine" className="flex items-center justify-center md:justify-start" target="_blank" rel="noopener noreferrer">
<img
src={window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? "./github-mark-white.png" : "./github-mark.png"}
alt="GitHub Logo"
className="h-7 w-7 transition-transform duration-200 hover:scale-110"
/>
<GitHubLogoIcon className='h-7 w-7 transition-transform duration-200 hover:scale-110 text white' />
<span className="ml-2 text-black text-md font-semibold hidden custom-lg:inline dark:text-white">Open Source Code</span>
</Link>
</div>
Expand Down

0 comments on commit 2472df3

Please sign in to comment.