-
Notifications
You must be signed in to change notification settings - Fork 17
/
Links.tsx
94 lines (89 loc) · 2.33 KB
/
Links.tsx
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import { Unstable_Grid2 as Grid, Link as MuiLink, Stack } from "@mui/material"
// import {
// useFreshworksWidget,
// useOneTrustInfoToggle
// } from 'codeforlife/hooks';
import { type FC } from "react"
import { LINK_IMPACT_REPORT_2023 } from "../../app/env"
import { Link } from "codeforlife/components/router"
import { paths } from "../../routes"
const FooterLink: FC<{
href: string
text: string
external?: boolean
}> = ({ href, text, external }) => {
return (
<Link
to={href}
target={external ? "_blank" : "_self"}
sx={{
textDecoration: "none",
"&:hover": {
textDecoration: "underline",
},
}}
>
{text}
</Link>
)
}
export interface LinksProps {}
const Links: FC<LinksProps> = () => {
return (
<Grid
container
spacing={1}
sx={{
color: "white !important",
fontWeight: "bold",
}}
>
<Grid xs={12} sm={4}>
<Stack spacing={1}>
<FooterLink href={paths.aboutUs._} text={"About us"} />
{/*TODO: Use Freshdesk hook*/}
<MuiLink
sx={{
textDecoration: "none",
"&:hover": {
textDecoration: "underline",
},
}}
>
Help and support
</MuiLink>
<FooterLink
href={LINK_IMPACT_REPORT_2023}
text={"Impact Report 2023"}
external={true}
/>
</Stack>
</Grid>
<Grid xs={12} sm={4}>
<Stack spacing={1}>
<FooterLink href={paths.privacyNotice._} text={"Privacy notice"} />
<FooterLink href={paths.termsOfUse._} text={"Terms of use"} />
{/*TODO: Use OneTrust banner hook*/}
<MuiLink
sx={{
textDecoration: "none",
"&:hover": {
textDecoration: "underline",
},
}}
>
Cookie settings
</MuiLink>
</Stack>
</Grid>
<Grid xs={12} sm={4}>
<Stack spacing={1}>
<FooterLink href={paths.homeLearning._} text={"Home learning"} />
<FooterLink href={paths.getInvolved._} text={"Get involved"} />
<FooterLink href={paths.codingClubs._} text={"Coding clubs"} />
</Stack>
</Grid>
</Grid>
)
}
export default Links