From 444100f5ad3e3be5c08bb5ad4d0618224860f612 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Tue, 20 Aug 2019 14:27:15 -0400 Subject: [PATCH] add list projects component add initial list projects layout --- src/components/MainCointainer.jsx | 4 +- src/components/projects/ListProjects.jsx | 29 +++++++++++ .../projects/styles/ListProjects.js | 50 +++++++++++++++++++ 3 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 src/components/projects/ListProjects.jsx create mode 100644 src/components/projects/styles/ListProjects.js diff --git a/src/components/MainCointainer.jsx b/src/components/MainCointainer.jsx index 6a2fedc..18cf786 100644 --- a/src/components/MainCointainer.jsx +++ b/src/components/MainCointainer.jsx @@ -32,6 +32,7 @@ import BackProject from './projects/BackProject' import ProjectPledges from './projects/ProjectPledges' import CreateProject from './projects/CreateProject' import CreateDelegate from './projects/CreateDelegate' +import ListProjects from './projects/ListProjects' const drawerWidth = 240 const formatAccount = account => { @@ -225,7 +226,8 @@ class PersistentDrawerLeft extends React.Component {
- + + } /> diff --git a/src/components/projects/ListProjects.jsx b/src/components/projects/ListProjects.jsx new file mode 100644 index 0000000..bdd1387 --- /dev/null +++ b/src/components/projects/ListProjects.jsx @@ -0,0 +1,29 @@ +import React from 'react' +import { withStyles } from '@material-ui/core/styles' +import Typography from '@material-ui/core/Typography' +import classnames from 'classnames' +import styles from './styles/ListProjects' + +function ListProjects({ classes }) { + console.log({classes}) + return ( +
+ + Liquid Funding + + + Fund. Build. Together. + + + All Projects + + Name + Description + Funding details + Contact person + Date created +
+ ) +} + +export default withStyles(styles)(ListProjects) diff --git a/src/components/projects/styles/ListProjects.js b/src/components/projects/styles/ListProjects.js new file mode 100644 index 0000000..2fcde3e --- /dev/null +++ b/src/components/projects/styles/ListProjects.js @@ -0,0 +1,50 @@ +const styles = theme => ({ + theme, + main: { + display: 'grid', + gridTemplateColumns: 'repeat(48, [col] 1fr)', + gridTemplateRows: '1fr 1fr 1fr' + }, + title: { + fontSize: '2.5rem', + textAlign: 'center' + + }, + subTitle: { + color: '#4360DF', + fontSize: '1.5rem', + textAlign: 'center' + }, + fullWidth: { + gridColumn: '1 / 49' + }, + tableTitle: { + color: '#939BA1', + fontSize: '1.2rem', + gridColumn: '3 / 49' + }, + tableHeader: { + color: 'rgba(147, 155, 161, 0.4)', + fontSize: '0.9rem', + gridRow: '4 / 5' + }, + headerName: { + gridColumn: '3 / 13' + }, + headerDescription: { + gridColumn: '13 / 23' + }, + headerDetails: { + gridColumn: '23 / 28' + }, + headerContact: { + gridColumn: '30 / 35' + }, + dateCreated: { + gridColumn: '37 / 42' + }, + readMore: { + gridColumn: '43 / 46' + } +}) +export default styles