-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSiteFooter.tsx
More file actions
61 lines (58 loc) · 1.74 KB
/
Copy pathSiteFooter.tsx
File metadata and controls
61 lines (58 loc) · 1.74 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
import { Box, Text } from "@obolnetwork/obol-ui";
import type { CSS } from "@stitches/react";
import { TopNavLink, TopSpacer } from "@components/assessment/stitches";
import { ASSESS_PATH, METHODOLOGY_PATH, VALOS_URL } from "@constants/index";
const navLink: CSS = {
fontSize: "$2",
fontWeight: "$medium",
color: "$textMiddle",
textDecoration: "none",
"&:hover": { color: "$body" },
};
type SiteFooterProps = {
/** Max width of the inner content — match the page's main column. */
contentWidth?: number;
};
/** Shared site footer — reused across the landing, assessment, and methodology. */
export function SiteFooter({ contentWidth = 1140 }: SiteFooterProps) {
return (
<Box
as="footer"
css={{ borderTop: "1px solid $bg05", backgroundColor: "$bg01", py: "$lg" }}
>
<Box
css={{
maxWidth: contentWidth,
margin: "0 auto",
padding: "0 28px",
display: "flex",
alignItems: "center",
gap: 16,
flexWrap: "wrap",
}}
>
<Text css={{ fontSize: "$2", fontWeight: "$bold", color: "$body" }}>
Validator{" "}
<Text as="span" css={{ display: "inline", color: "var(--theme-brand)" }}>
Beat
</Text>
</Text>
<Text css={{ fontSize: "$2", color: "$textMiddle" }}>
A simple view into validator operations
</Text>
<TopSpacer />
<TopNavLink href={METHODOLOGY_PATH}>Methodology</TopNavLink>
<Box
as="a"
href={VALOS_URL}
target="_blank"
rel="noopener noreferrer"
css={navLink}
>
valOS
</Box>
<TopNavLink href={ASSESS_PATH}>Assess</TopNavLink>
</Box>
</Box>
);
}