Files
sweet/www/components/Footer.tsx
T
Josh CollinsworthandMarvin Hagemeister e8d1a68b58 www: refresh home page (#2418)
Overhauls the Fresh homepage with a new design, new demos, and new
sections highlighting Fresh's capabilities.

---------

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2024-05-17 16:08:55 +02:00

41 lines
1.2 KiB
TypeScript

import PropsDemo from "$fresh/tests/fixture_partials/routes/island_props_signals/index.tsx";
import * as Icons from "./Icons.tsx";
import { 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-gray-200 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">
<div class="text-gray-600 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-gray-600 hover:underline">
{link.title}
</a>
))}
</div>
</div>
</footer>
);
}