Skip to content

Commit 3b545b8

Browse files
Merge pull request #858 from threshold-network/doc/footer-terms-guidelines
Doc/footer terms w/guidelines
2 parents 22a2a57 + 645fa43 commit 3b545b8

File tree

3 files changed

+49
-15
lines changed

3 files changed

+49
-15
lines changed

src/enums/externalHref.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ export enum ExternalHref {
3737
delight = "https://delightlabs.io",
3838
runningNodeDocs = "https://docs.threshold.network/staking-and-running-a-node/running-a-node",
3939
colossus = "https://colossus.digital",
40+
privacyPolicy = "https://docs.threshold.network/resources/privacy-policy",
41+
termsOfUse = "https://docs.threshold.network/resources/tbtc-terms-of-use",
4042
}

src/pages/Overview/index.tsx

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,29 @@ import { PageComponent } from "../../types"
77
import { featureFlags } from "../../constants"
88
import AnnouncementBanner from "../../components/AnnouncementBanner"
99
import tbtcAppBannerIllustration from "../../static/images/tBTCAppBanner.svg"
10+
import PageLayout from "../PageLayout"
1011

1112
const Overview: PageComponent = () => {
1213
useDocumentTitle("Threshold - Overview")
1314

1415
return (
15-
<Container maxW={{ base: "2xl", xl: "6xl" }} my={16}>
16-
<Image src={thresholdWordMark} mb={4} />
17-
<H1 mb={12}>Overview</H1>
18-
{featureFlags.TBTC_V2 && (
19-
<AnnouncementBanner
20-
variant="primary"
21-
imgSrc={tbtcAppBannerIllustration}
22-
preTitle="get started"
23-
title="Get your Bitcoin to work!"
24-
href="/tBTC"
25-
buttonText="Mint tBTC"
26-
/>
27-
)}
28-
<Outlet />
29-
</Container>
16+
<PageLayout title="Overview">
17+
<Container maxW={{ base: "2xl", xl: "6xl" }} my={16}>
18+
<Image src={thresholdWordMark} mb={4} />
19+
<H1 mb={12}>Overview</H1>
20+
{featureFlags.TBTC_V2 && (
21+
<AnnouncementBanner
22+
variant="primary"
23+
imgSrc={tbtcAppBannerIllustration}
24+
preTitle="get started"
25+
title="Get your Bitcoin to work!"
26+
href="/tBTC"
27+
buttonText="Mint tBTC"
28+
/>
29+
)}
30+
<Outlet />
31+
</Container>
32+
</PageLayout>
3033
)
3134
}
3235

src/pages/PageLayout.tsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { Outlet } from "react-router-dom"
44
import SubNavigationPills from "../components/SubNavigationPills"
55
import { PageComponent, ExternalLinkProps } from "../types"
66
import useDocumentTitle from "../hooks/useDocumentTitle"
7+
import { ExternalHref } from "../enums/externalHref"
8+
import { Box, Link as ChakraLink } from "@chakra-ui/react"
79

810
export interface PageLayoutProps extends ContainerProps {
911
pages?: PageComponent[]
@@ -37,6 +39,33 @@ const PageLayout: FC<PageLayoutProps> = ({
3739
{children}
3840
<Outlet />
3941
</Container>
42+
<Box
43+
as="footer"
44+
w="100%"
45+
py={2}
46+
textAlign="center"
47+
bg="rgba(255,255,255,0.9)"
48+
>
49+
<ChakraLink
50+
href={ExternalHref.privacyPolicy}
51+
isExternal
52+
color="gray.400"
53+
fontSize="xs"
54+
textDecoration="underline"
55+
mr={2}
56+
>
57+
Privacy Policy
58+
</ChakraLink>
59+
<ChakraLink
60+
href={ExternalHref.termsOfUse}
61+
isExternal
62+
color="gray.400"
63+
fontSize="xs"
64+
textDecoration="underline"
65+
>
66+
Terms of Use
67+
</ChakraLink>
68+
</Box>
4069
</>
4170
)
4271
}

0 commit comments

Comments
 (0)