1
0
Fork 0

refactor: move content of src/ to root dir for readability

This commit is contained in:
Vojtěch Mareš 2022-12-06 13:02:09 +01:00
parent 87958d1d28
commit 532d1eba99
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
69 changed files with 5 additions and 4 deletions

18
components/NavLink.tsx Normal file
View file

@ -0,0 +1,18 @@
import { ReactNode } from 'react';
import Link from 'next/link';
type Props = {
href: string,
children: ReactNode,
}
export function NavLink({href, children}: Props) {
return (
<Link
href={href}
className="inline-block rounded-lg py-1 px-2 text-lg font-medium text-slate-700 hover:bg-slate-100 hover:text-slate-900"
>
{children}
</Link>
);
}