feat: add docs section to website (#108)

This commit is contained in:
Luca Casonato
2022-03-07 21:08:55 +01:00
committed by GitHub
parent 026ed86f40
commit 73fd41be31
40 changed files with 1258 additions and 62 deletions
+35
View File
@@ -0,0 +1,35 @@
/** @jsx h */
import { h, tw } from "../client_deps.ts";
export default function NavigationBar(props: { active: string }) {
const items = [
{
name: "Home",
href: "/",
},
{
name: "Docs",
href: "/docs",
},
];
return (
<nav class={tw`bg(gray-50) py-2 border(t-2 b-2 gray-100)`}>
<ul class={tw`flex justify-center gap-8 mx-4`}>
{items.map((item) => (
<li>
<a
href={item.href}
class={tw`text-gray-600 hover:underline ${
props.active == item.href ? "font-bold" : ""
}`}
>
{item.name}
</a>
</li>
))}
</ul>
</nav>
);
}