File tree Expand file tree Collapse file tree 3 files changed +49
-15
lines changed
Expand file tree Collapse file tree 3 files changed +49
-15
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -7,26 +7,29 @@ import { PageComponent } from "../../types"
77import { featureFlags } from "../../constants"
88import AnnouncementBanner from "../../components/AnnouncementBanner"
99import tbtcAppBannerIllustration from "../../static/images/tBTCAppBanner.svg"
10+ import PageLayout from "../PageLayout"
1011
1112const 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
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import { Outlet } from "react-router-dom"
44import SubNavigationPills from "../components/SubNavigationPills"
55import { PageComponent , ExternalLinkProps } from "../types"
66import useDocumentTitle from "../hooks/useDocumentTitle"
7+ import { ExternalHref } from "../enums/externalHref"
8+ import { Box , Link as ChakraLink } from "@chakra-ui/react"
79
810export 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}
You can’t perform that action at this time.
0 commit comments