diff options
author | Eug-VS <eug-vs@keemail.me> | 2020-01-12 03:35:39 +0300 |
---|---|---|
committer | Eug-VS <eug-vs@keemail.me> | 2020-01-12 03:35:39 +0300 |
commit | a68198837b193369bfcc03f320c012d8568836d8 (patch) | |
tree | f0c0c9d11049876acee5af5db91bd9fb0f07bf54 /src/pages | |
parent | 871581e3a7338387e14c9ea8744abad4b83e9f2c (diff) | |
download | chrono-cube-ui-a68198837b193369bfcc03f320c012d8568836d8.tar.gz |
Add Developers section to Contribute page
Diffstat (limited to 'src/pages')
-rw-r--r-- | src/pages/Contribute/Contribute.js | 60 |
1 files changed, 58 insertions, 2 deletions
diff --git a/src/pages/Contribute/Contribute.js b/src/pages/Contribute/Contribute.js index d584bfc..f601f3a 100644 --- a/src/pages/Contribute/Contribute.js +++ b/src/pages/Contribute/Contribute.js @@ -3,6 +3,11 @@ import React from 'react'; import { Typography, Button, + List, + ListItem, + Link, + Avatar, + Divider, makeStyles, } from "@material-ui/core"; @@ -13,10 +18,19 @@ import ContentSection from "../../components/ContentSection/ContentSection"; const useStyles = makeStyles(theme => ({ mono: { padding: theme.spacing(4), - } + + '& .MuiAvatar-root': { + marginRight: theme.spacing(2), + width: theme.spacing(6), + height: theme.spacing(6), + } + }, })); +const developers = require('../../developers.json'); + + const Contribute = () => { const classes = useStyles(); @@ -84,10 +98,52 @@ const Contribute = () => { Report a bug </Button> </ContentSection> + <ContentSection sectionName="Developers"> + <List> + { + developers.map(developer => { + const githubUrl = `https://github.com/${developer.username}`; + const avatarUrl = `${githubUrl}.png`; + + return ( + <> + <ListItem> + <Link href={githubUrl}> + <Avatar alt={developer.username} src={avatarUrl} /> + </Link> + <div> + <Link href={githubUrl}> + <Typography> + {developer.username} + </Typography> + </Link> + <Typography color="textSecondary"> + {developer.role} + </Typography> + </div> + </ListItem> + <Divider variant="middle"/> + </> + ) + }) + } + <ListItem> + <Avatar /> + <Typography>You can be here!</Typography> + </ListItem> + </List> + <Button + variant="contained" + color="secondary" + size="large" + href="https://github.com/users/Eug-VS/projects/3" + > + Join us! + </Button> + </ContentSection> </div> </Window> ); - }; |