From fc6a05250bb1915ac1f3b4333f8f5d835ddd6778 Mon Sep 17 00:00:00 2001 From: MrXyfir Date: Fri, 29 Mar 2019 13:44:50 -0700 Subject: [PATCH] Improve footer --- web/components/info/Info.tsx | 153 ++++++++++++++++++++++++++++------- 1 file changed, 125 insertions(+), 28 deletions(-) diff --git a/web/components/info/Info.tsx b/web/components/info/Info.tsx index a0ad5523..e1b9dc1e 100644 --- a/web/components/info/Info.tsx +++ b/web/components/info/Info.tsx @@ -14,6 +14,8 @@ import { } from '@material-ui/core'; const phonegap = /source~phonegap/.test(localStorage.r); +const REPO_URL = 'https://github.com/Xyfir/ptorx'; +const DOCS_URL = `${REPO_URL}/blob/docs`; const styles = (theme: Theme) => createStyles({ @@ -50,10 +52,21 @@ const styles = (theme: Theme) => height: '5em', width: '5em' }, + footerSection: { + minWidth: '12em', + padding: '2em', + flex: 1 + }, sectionImage: { height: '15em', width: '15em' }, + xyfirNetwork: { + marginBottom: '2em', + fontWeight: 'bold', + textAlign: 'center', + width: '100%' + }, getPtorx: { textAlign: 'center', padding: '2em' @@ -74,9 +87,10 @@ const styles = (theme: Theme) => display: 'flex' }, footer: { + justifyContent: 'center', fontFamily: '"Roboto"', - textAlign: 'center', - padding: '2em' + flexWrap: 'wrap', + display: 'flex' }, header: { backgroundSize: 'cover', @@ -103,6 +117,16 @@ const styles = (theme: Theme) => fontSize: '180%', color: theme.palette.secondary.main }, + h3: { + marginBottom: '0.2em', + fontSize: '150%' + }, + ul: { + lineHeight: '2em', + listStyle: 'none', + padding: 0, + margin: 0 + }, ol: { fontFamily: '"Roboto"', fontSize: '110%' @@ -375,7 +399,7 @@ const _Info = ({ classes, user }: InfoProps) => ( Don't trust us with your emails?{' '} - + Our code is completely open source for you to view. {' '} You can even host your own server or contribute to our codebase to @@ -385,31 +409,104 @@ const _Info = ({ classes, user }: InfoProps) => ( );