-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
135 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import React, { FC, ReactElement } from "react"; | ||
import styled from "styled-components"; | ||
import * as Constants from "../Constants"; | ||
import TextWithLink from "./TestWithLink"; | ||
|
||
const Wrapper = styled.footer` | ||
padding: 1rem; | ||
`; | ||
|
||
const VersionNumber = styled.div` | ||
font-size: 1.4rem; | ||
`; | ||
|
||
const Acknowledgements = styled.div` | ||
font-size: 1rem; | ||
`; | ||
|
||
const Footer: FC = (): ReactElement => ( | ||
<Wrapper> | ||
<VersionNumber> | ||
<TextWithLink | ||
{...Constants.BUILD_SOURCE_TEXT} | ||
url={Constants.BUILD_SOURCE_URL} | ||
/> | ||
</VersionNumber> | ||
<Acknowledgements> | ||
<TextWithLink | ||
{...Constants.UI_ACKNOWLEDGEMENT_TEXT} | ||
url={Constants.UI_ACKNOWLEDGEMENT_URL} | ||
/> | ||
<TextWithLink | ||
{...Constants.BIGNUM_ACKNOWLEDGEMENT_TEXT} | ||
url={Constants.BIGNUM_ACKNOWLEDGEMENT_URL} | ||
/> | ||
<TextWithLink | ||
{...Constants.ISSUES_CONTRIBUTION_TEXT} | ||
url={Constants.ISSUES_CONTRIBUTION_URL} | ||
/> | ||
</Acknowledgements> | ||
</Wrapper> | ||
); | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React, { FC, ReactElement } from "react"; | ||
import styled from "styled-components"; | ||
import * as Constants from "../Constants"; | ||
|
||
const Wrapper = styled.header` | ||
padding: 1rem; | ||
`; | ||
|
||
const Title = styled.h1` | ||
font-size: 2.4rem; | ||
`; | ||
|
||
const Footer: FC = (): ReactElement => ( | ||
<Wrapper> | ||
<Title>{Constants.APP_TITLE}</Title> | ||
</Wrapper> | ||
); | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React, { FC, ReactElement } from "react"; | ||
import styled from "styled-components"; | ||
import * as Constants from "../Constants"; | ||
|
||
const Text = styled.p``; | ||
|
||
const Link = styled.a` | ||
color: ${Constants.ACCENT_COLOR}; | ||
text-decoration: none; | ||
`; | ||
|
||
type TextWithLinkProps = { | ||
pre: string; | ||
link: string; | ||
post: string; | ||
url: string; | ||
}; | ||
|
||
const TextWithLink: FC<TextWithLinkProps> = ( | ||
props: TextWithLinkProps | ||
): ReactElement => ( | ||
<Text> | ||
{props.pre} | ||
<Link href={props.url}>{props.link}</Link> | ||
{props.post} | ||
</Text> | ||
); | ||
|
||
export default TextWithLink; |