-
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/deno.land/x/nano_jsx/mod.ts";
import { css } from "../../css.ts";
const enum C {
Root = "o-fo--root",
Copyright = "o-fo--cpy",
Links = "o-fo--links",
}
export const styles = 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 ViewProps {
copyright: JSX.ElementChildrenAttribute["children"];
children?: JSX.ElementChildrenAttribute["children"];
}
export function View({ copyright, children }: ViewProps) {
return (
<div className={C.Root}>
<small className={C.Copyright}>{copyright}</small>
{children && (
<div className={C.Links}>
{children}
</div>
)}
</div>
);
}