mirror of
https://github.com/theoleuthardt/werkzeugkiste.git
synced 2026-06-13 09:37:53 +00:00
feat: new separate frontend and backend folders with fastify as nodejs framework, libreconvert is configured in fastify as route
This commit is contained in:
parent
7b584d2fff
commit
9733de9a39
26 changed files with 1171 additions and 61 deletions
42
frontend/src/components/Navbar.tsx
Normal file
42
frontend/src/components/Navbar.tsx
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
import React from "react";
|
||||
import Image from "next/image";
|
||||
import LOGO from "../assets/werkzeugkasten.svg";
|
||||
import Link from "next/link";
|
||||
|
||||
interface NavProps {
|
||||
className?: string;
|
||||
renderHomeLink: boolean;
|
||||
}
|
||||
|
||||
const Navbar = (props: NavProps) => {
|
||||
return (
|
||||
<div className={`h-18 w-full p-3 ` + props.className}>
|
||||
<nav className="h-14 bg-black text-white font-bold flex flex-row items-center justify-between">
|
||||
<div className="justify-items-start flex flex-1 flex-row items-center">
|
||||
<Image src={LOGO} alt="" width={70} height={70} className="invert" />
|
||||
<div className="text-white text-2xl ml-5">werkzeugkiste.</div>
|
||||
</div>
|
||||
<div className="flex flex-auto justify-center">
|
||||
{props.renderHomeLink ? (
|
||||
<Link
|
||||
href="/"
|
||||
className="justify-center text-2xl hover:underline hover:transition-underline hover:duration-300 hover:text-blue-400"
|
||||
>
|
||||
home
|
||||
</Link>
|
||||
) : null}
|
||||
</div>
|
||||
<div className="flex flex-1 justify-end">
|
||||
<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
|
||||
</Link>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Navbar;
|
||||
Loading…
Add table
Add a link
Reference in a new issue