[#810, github-backed example][xl]: improve looks, improve README, rename from simple-example to github-backed (#864)

This commit is contained in:
João Demenech
2023-05-09 19:19:36 -03:00
committed by GitHub
parent 714faf9986
commit 3f350f8fcd
24 changed files with 258 additions and 518 deletions

View File

@@ -0,0 +1,20 @@
import Link from "next/link";
import HomeIcon from "../icons/HomeIcon";
export default function Breadcrumbs({ links }: { links: { title: string, href?: string, target?: string }[] }) {
const current = links.at(-1);
return <div className="flex items-center uppercase font-black text-xs">
<Link className="flex items-center" href='/'><HomeIcon /></Link>
{/* {links.length > 1 && links.slice(0, -1).map((link) => {
return <>
<span className="mx-4">/</span>
<Link href={link.href}>{link.title}</Link>
</>
})} */}
<span className="mx-4">/</span>
<span>{current.title}</span>
</div >
}