Files
sweet/www/components/Footer.tsx
T
Luca Casonato 80598d07fd feat: use import maps instead of deps files (#209)
This commit updates fresh to use import maps instead of deps files in generated projects.
2022-05-23 19:35:15 +02:00

43 lines
1.1 KiB
TypeScript

/** @jsx h */
import { h } from "$fresh/runtime.ts";
import { tw } from "../utils/twind.ts";
const LINKS = [
{
title: "Source",
href: "https://github.com/lucacasonato/fresh",
},
{
title: "License",
href: "https://github.com/lucacasonato/fresh/blob/main/LICENSE",
},
{
title: "Code of Conduct",
href: "https://github.com/lucacasonato/fresh/blob/main/CODE_OF_CONDUCT.md",
},
];
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>
);
}