Skip to content

Commit

Permalink
update nav redirects to work
Browse files Browse the repository at this point in the history
  • Loading branch information
sk337 committed Jan 24, 2024
1 parent a57e0c2 commit c00d0d4
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions src/components/nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,36 @@ import {
NavigationMenuList,
NavigationMenuTrigger,
NavigationMenuViewport,
} from "@/components/ui/navigation-menu"
} from "@/components/ui/navigation-menu";


export default function Nav(){
export default function Nav() {
return (
<NavigationMenu className="m-5 text-center">
<NavigationMenuList>
<NavigationMenuItem>
<a href="#">Home</a>
<a
href="#"
onClick={() => {
window.location.hash = "#";
window.location.reload();
}}
>
Home
</a>
</NavigationMenuItem>
<NavigationMenuItem>|</NavigationMenuItem>
<NavigationMenuItem>
<a href="#leaderboard">Leaderboard</a>
<a
href="#"
onClick={() => {
window.location.hash = "#leaderboard";
window.location.reload();
}}
>
Leaderboard
</a>
</NavigationMenuItem>
</NavigationMenuList>
</NavigationMenu>
)

}
);
}

0 comments on commit c00d0d4

Please sign in to comment.