forked from Lilly-Protocol/lily-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite-footer.tsx
More file actions
72 lines (65 loc) · 2.36 KB
/
Copy pathsite-footer.tsx
File metadata and controls
72 lines (65 loc) · 2.36 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import type { Route } from "next";
import Link from "next/link";
import { routes, siteConfig } from "@/config/site";
import type { RouteScaffold } from "@/types/site";
type SiteFooterProps = {
readonly legalRoutes: readonly RouteScaffold[];
readonly supportRoutes: readonly RouteScaffold[];
};
export function SiteFooter({ legalRoutes, supportRoutes }: SiteFooterProps) {
const currentYear = new Date().getFullYear();
return (
<footer className="border-t border-[var(--color-line)] bg-white/90">
<div className="mx-auto flex w-full max-w-6xl flex-col gap-8 px-4 py-12 sm:px-6 lg:px-8">
<div className="grid gap-8 sm:grid-cols-2 lg:grid-cols-3">
<div>
<Link
className="text-lg font-semibold tracking-tight"
href={routes.home as Route}
>
{siteConfig.name}
</Link>
<p className="mt-2 text-sm text-[var(--color-muted)]">
{siteConfig.description}
</p>
</div>
<nav aria-label="Legal">
<p className="eyebrow text-[var(--color-accent)]">Legal</p>
<ul className="mt-4 grid gap-2">
{legalRoutes.map((route) => (
<li key={route.id}>
<Link
className="text-sm text-[var(--color-muted)] hover:text-[var(--color-ink)]"
href={route.path as Route}
>
{route.title}
</Link>
</li>
))}
</ul>
</nav>
<nav aria-label="Support">
<p className="eyebrow text-[var(--color-accent)]">Support</p>
<ul className="mt-4 grid gap-2">
{supportRoutes.map((route) => (
<li key={route.id}>
<Link
className="text-sm text-[var(--color-muted)] hover:text-[var(--color-ink)]"
href={route.path as Route}
>
{route.title}
</Link>
</li>
))}
</ul>
</nav>
</div>
<div className="border-t border-[var(--color-line)] pt-6">
<p className="text-sm text-[var(--color-muted)]">
© {currentYear} {siteConfig.name}. All rights reserved.
</p>
</div>
</div>
</footer>
);
}