From 2498af616b086ee5f68f844a8b969fd0b4a540a5 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Mon, 11 Feb 2019 17:07:11 -0500 Subject: [PATCH] add Project container --- app/components/MainCointainer.jsx | 2 + app/components/projects/Project.jsx | 99 +++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 app/components/projects/Project.jsx diff --git a/app/components/MainCointainer.jsx b/app/components/MainCointainer.jsx index 4a90e20..c21b117 100644 --- a/app/components/MainCointainer.jsx +++ b/app/components/MainCointainer.jsx @@ -23,6 +23,7 @@ import FundsManagement from './FundsManagement' import ContractAdmin from './ContractAdmin' import TransferGraph from './TransfersGraph' import Dashboard from './Dashboard' +import Project from './projects/Project' const drawerWidth = 240 @@ -198,6 +199,7 @@ class PersistentDrawerLeft extends React.Component { } /> + {this.props.children} diff --git a/app/components/projects/Project.jsx b/app/components/projects/Project.jsx new file mode 100644 index 0000000..b829ff4 --- /dev/null +++ b/app/components/projects/Project.jsx @@ -0,0 +1,99 @@ +import React from 'react' +import Typography from '@material-ui/core/Typography' +import Card from '@material-ui/core/Card'; +import CardHeader from '@material-ui/core/CardHeader'; +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 Avatar from '@material-ui/core/Avatar'; +import { withStyles } from '@material-ui/core/styles' +import PropTypes from 'prop-types' + +const styles = theme => ({ + root: { + display: 'grid', + gridTemplateColumns: '1fr 3fr', + gridTemplateRows: '1fr 7fr', + gridColumnGap: '1em', + gridRowGap: '36px' + }, + paper: { + padding: theme.spacing.unit * 2, + textAlign: 'center', + color: theme.palette.text.secondary, + }, + title: { + fontSize: '2.5rem' + }, + subTitle: { + fontSize: '1.5rem', + fontWeight: 200 + }, + creator:{ + display: 'flex', + flexDirection: 'column', + justifyContent: 'space-around', + alignItems: 'center' + }, + creatorName: { + fontSize: '1rem' + }, + media: { + objectFit: 'cover' + }, + secondRow: { + gridColumnStart: '1', + gridColumnEnd: '3' + } +}) + +function Project({ classes }) { + return ( +
+
+ + R + + By Creator Name +
+
+ + Akira, The Linux Design Tool + + + UX/UI Design application for Linux + +
+
+ + + + + + Lizard + + + Lizards are a widespread group of squamate reptiles, with over 6,000 species, ranging + across all continents except Antarctica + + + + +
+
+ ) +} + +Project.propTypes = { + classes: PropTypes.object.isRequired, +} + +export default withStyles(styles)(Project)