Skip to content

Commit

Permalink
Update index.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmanbear committed Aug 8, 2024
1 parent 7bd88af commit 951f85a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
import { useLocation } from 'preact-iso';
import openneptuneLogo from 'https://github.com/raw/OpenNeptune3D/slicer-generator/main/src/assets/OpenNept4une.svg';
// Import statement for the logo is commented out because it's causing build issues
// import openneptuneLogo from '../assets/OpenNept4une.svg';

export function Header() {
const { url } = useLocation();

return (
<header>
<a href={import.meta.env.BASE_URL}>
<img src={openneptuneLogo} alt="OpenNeptune logo" class="logo" />
{/* Commenting out the logo image as it is causing build issues */}
{/* <img src={openneptuneLogo} alt="OpenNeptune logo" class="logo" /> */}
</a>
<nav>
<a href={import.meta.env.BASE_URL} class={url == import.meta.env.BASE_URL && 'active'}>
<a href={import.meta.env.BASE_URL} class={url == import.meta.env.BASE_URL ? 'active' : ''}>
Home
</a>
<a href={import.meta.env.BASE_URL+"about"} class={url == import.meta.env.BASE_URL+'about' && 'active'}>
<a href={import.meta.env.BASE_URL+"about"} class={url == import.meta.env.BASE_URL+'about' ? 'active' : ''}>
About
</a>
</nav>
Expand Down

0 comments on commit 951f85a

Please sign in to comment.