42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import type { JSX } from "preact";
|
|
|
|
const LINKS = [
|
|
{
|
|
title: "Source",
|
|
href: "https://github.com/denoland/fresh",
|
|
},
|
|
{
|
|
title: "License",
|
|
href: "https://github.com/denoland/fresh/blob/main/LICENSE",
|
|
},
|
|
{
|
|
title: "Code of Conduct",
|
|
href: "https://github.com/denoland/fresh/blob/main/CODE_OF_CONDUCT.md",
|
|
},
|
|
];
|
|
|
|
export default function Footer(props: JSX.HTMLAttributes<HTMLElement>) {
|
|
return (
|
|
<footer
|
|
class={`border-t-2 border-foreground-secondary/20 md:h-16 flex mt-16 justify-center md:mx-16 ${props.class}`}
|
|
>
|
|
<div class="flex flex-col sm:flex-row gap-4 justify-between items-center max-w-screen-xl mx-auto w-full sm:px-6 md:px-8 p-4 text-base">
|
|
<div class="text-foreground-secondary text-center">
|
|
<span>© {new Date().getFullYear()} the Fresh authors</span>
|
|
</div>
|
|
|
|
<div class="flex items-center gap-8">
|
|
{LINKS.map((link) => (
|
|
<a
|
|
href={link.href}
|
|
class="text-foreground-secondary hover:underline"
|
|
>
|
|
{link.title}
|
|
</a>
|
|
))}
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
);
|
|
}
|