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
+33
View File
@@ -0,0 +1,33 @@
/** @jsx h */
import { h, tw } from "../client_deps.ts";
const LINKS = [
{
title: "Source",
href: "https://github.com/lucacasonato/fresh",
},
];
export default function Footer() {
const footer = tw
`border(t-2 gray-200) bg-gray-100 h-32 flex flex-col gap-4 justify-center`;
const inner = tw
`mx-auto max-w-screen-lg flex items-center justify-center gap-8`;
const linkStyle = tw`text-gray-600 hover:underline`;
const copyright = tw`text(gray-600 center)`;
return (
<footer class={footer}>
<div class={inner}>
{LINKS.map((link) => (
<a href={link.href} class={linkStyle}>
{link.title}
</a>
))}
</div>
<div class={copyright}>
<span>© {new Date().getFullYear()} the fresh authors</span>
</div>
</footer>
);
}