-
Notifications
You must be signed in to change notification settings - Fork 742
Expand file tree
/
Copy pathFooter.tsx
More file actions
41 lines (38 loc) · 1.14 KB
/
Footer.tsx
File metadata and controls
41 lines (38 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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/.github/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>
);
}