Skip to content

Commit

Permalink
fix(FE): home refactor UI (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
tetogomez committed Apr 20, 2021
1 parent 371e880 commit a1a8a94
Show file tree
Hide file tree
Showing 11 changed files with 490 additions and 412 deletions.
1 change: 1 addition & 0 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"apollo-link-ws": "^1.0.20",
"apollo-utilities": "^1.3.4",
"axios": "^0.19.2",
"clsx": "^1.1.1",
"d3-force": "^2.1.1",
"d3-geo": "^1.12.1",
"d3-geo-projection": "^2.9.0",
Expand Down
54 changes: 0 additions & 54 deletions webapp/src/components/Footer.js

This file was deleted.

35 changes: 35 additions & 0 deletions webapp/src/components/Footer/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from 'react'
import { makeStyles } from '@material-ui/styles'
import { Grid, List, ListItemText, ListItem, Box } from '@material-ui/core'

import { generalConfig } from '../../config'

import styles from './styles'

const useStyles = makeStyles(styles)

const Footer = () => {
const classes = useStyles()

return (
<Box className={classes.wrapper}>
<Grid container item xs={12}>
<List>
{generalConfig.footerLinks.map((link, index) => (
<ListItem className={classes.listItem} key={index}>
<ListItemText
primary={
<a href={link.src} target="_blank" rel="noopener noreferrer">
{link.text}
</a>
}
/>
</ListItem>
))}
</List>
</Grid>
</Box>
)
}

export default Footer
23 changes: 23 additions & 0 deletions webapp/src/components/Footer/styles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export default (theme) => ({
wrapper: {
padding: `${theme.spacing(1) / 4}px ${theme.spacing(4)}px`,
background: theme.palette.common.white,
position: 'relative'
},
listItem: {
display: 'inline-block',
width: 'auto',
paddingLeft: theme.spacing(2),
paddingRight: theme.spacing(2),
'&, &:hover, &:active': {
color: theme.palette.common.black
},
'& a': {
color: theme.sidebar.footer.color,
lineHeight: '20px',
textAlign: 'center',
letterSpacing: '0.1px',
textDecoration: 'none'
}
}
})
25 changes: 25 additions & 0 deletions webapp/src/components/Sidebar/eosLogo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a1a8a94

Please sign in to comment.