-
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 { Child, h } from "../../../../deps/esm.sh/hastscript/mod.ts";
import { buildClasses, css } from "../css.ts";
const c = buildClasses("w-fo", [
"root",
"copyright",
"links",
]);
export const footerStyles = css`
.${c.root} {
display: flex;
justify-content: space-between;
align-items: center;
gap: 2em;
}
.${c.copyright} {
font-size: 0.8em;
}
.${c.links} {
font-size: 0.9em;
display: flex;
gap: 0.25em 0.5em;
justify-content: start;
align-items: start;
}
`;
export interface FooterProps {
copyright: Child;
children?: Child;
}
export function footer({ copyright, children }: FooterProps) {
return (
<div class={c.root}>
<small class={c.copyright}>{copyright}</small>
{children && (
<div class={c.links}>
{children}
</div>
)}
</div>
);
}