mirror of
https://github.com/theoleuthardt/werkzeugkiste.git
synced 2026-06-13 09:37:53 +00:00
fix: use Link instead of a elements for optimization (thx nextjs)
This commit is contained in:
parent
aa40c16a21
commit
e11c705d3d
1 changed files with 5 additions and 4 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import React from "react";
|
||||
import Image from "next/image";
|
||||
import LOGO from "../assets/werkzeugkasten.svg";
|
||||
import Link from "next/link";
|
||||
|
||||
interface NavProps {
|
||||
className?: string;
|
||||
|
|
@ -17,21 +18,21 @@ const Navbar = (props: NavProps) => {
|
|||
</div>
|
||||
<div className="flex flex-auto justify-center">
|
||||
{props.renderHomeLink ? (
|
||||
<a
|
||||
<Link
|
||||
href="/"
|
||||
className="justify-center text-2xl hover:underline hover:transition-underline hover:duration-300 hover:text-blue-400"
|
||||
>
|
||||
home
|
||||
</a>
|
||||
</Link>
|
||||
) : null}
|
||||
</div>
|
||||
<div className="flex flex-1 justify-end">
|
||||
<a
|
||||
<Link
|
||||
href="https://github.com/theoleuthardt/werkzeugkiste"
|
||||
className="items-end mr-3 text-2xl hover:underline hover:transition-underline hover:duration-300 hover:text-blue-400"
|
||||
>
|
||||
github
|
||||
</a>
|
||||
</Link>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue