From fd4a5ae3db75749f68896c79e7f10d901558517f Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Tue, 12 Feb 2019 12:50:14 -0500 Subject: [PATCH] add progress bar --- app/components/MainCointainer.jsx | 2 +- app/components/projects/Project.jsx | 31 +++++++++++++++++++++++------ 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/app/components/MainCointainer.jsx b/app/components/MainCointainer.jsx index c21b117..26e64b4 100644 --- a/app/components/MainCointainer.jsx +++ b/app/components/MainCointainer.jsx @@ -199,7 +199,7 @@ class PersistentDrawerLeft extends React.Component { } /> - + {this.props.children} diff --git a/app/components/projects/Project.jsx b/app/components/projects/Project.jsx index d2e0676..665d9b7 100644 --- a/app/components/projects/Project.jsx +++ b/app/components/projects/Project.jsx @@ -7,6 +7,7 @@ import CardMedia from '@material-ui/core/CardMedia' import CardContent from '@material-ui/core/CardContent' import CardActions from '@material-ui/core/CardActions' import CardActionArea from '@material-ui/core/CardActionArea' +import LinearProgress from '@material-ui/core/LinearProgress' import Avatar from '@material-ui/core/Avatar' import { withStyles } from '@material-ui/core/styles' import PropTypes from 'prop-types' @@ -54,7 +55,7 @@ const styles = theme => ({ }, infoBox: { display: 'grid', - gridTemplateRows: '2.5rem 2.5rem 2.5rem 2.5rem', + gridTemplateRows: '0rem 2.5rem 2.5rem 2.5rem', gridRowGap: '2rem' }, infoBoxSection: { @@ -64,19 +65,28 @@ const styles = theme => ({ infoText: { fontSize: '2rem' }, + raisedAmount: { + fontSize: '2em', + color: theme.palette.primary.main + }, subtext: { ...theme.typography.caption, fontSize: '1rem' + }, + linearColorPrimary: { + backgroundColor: '#00000014', + }, + linearBarColorPrimary: { + backgroundColor: theme.palette.primary.main } }) -function Project({ classes }) { +function Project({ classes, match }) { + const projectId = match.params.id return (
- - R - + By Creator Name
@@ -97,8 +107,16 @@ function Project({ classes }) { />
+
- + $13,412 pledged of $48,894 goal @@ -120,6 +138,7 @@ function Project({ classes }) { Project.propTypes = { classes: PropTypes.object.isRequired, + match: PropTypes.object } export default withStyles(styles)(Project)