-
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
// SPDX-FileCopyrightText: 2024 Shota FUJI <pockawoooh@gmail.com>
//
// SPDX-License-Identifier: Apache-2.0
/** @jsx h */
import { h } from "../../../../deps/npm/hastscript/mod.ts";
import { buildClasses, css } from "../css.ts";
import { type BuildContext } from "../context.ts";
const c = buildClasses("w-fo", [
"root",
"copyright",
null,
"thirdPartyNotices",
]);
export const footerStyles = css`
.${c.root} {
display: flex;
flex-direction: column;
justify-content: start;
align-items: end;
gap: 4px;
font-size: 0.8rem;
}
.${c.copyright} {
font-size: 1em;
}
.${c.thirdPartyNotices} {
color: var(--color-fg-sub);
text-decoration: underline;
}
`;
export interface FooterProps {
context: BuildContext;
}
export function footer({ context }: FooterProps) {
return (
<div class={c.root}>
<small class={c.copyright}>{context.copyright}</small>
<a
class={c.thirdPartyNotices}
href={context.resolveURL(context.assets.thirdPartyNotices)}
>
Third party notices
</a>
</div>
);
}