feat: add the add new project vard
This commit is contained in:
parent
718d14edf0
commit
405ea1c814
|
@ -22,6 +22,7 @@ import CardActionArea from '@material-ui/core/CardActionArea';
|
||||||
import LinearProgress from '@material-ui/core/LinearProgress';
|
import LinearProgress from '@material-ui/core/LinearProgress';
|
||||||
|
|
||||||
import defaultProjectImage from '../../images/default-project-img.png';
|
import defaultProjectImage from '../../images/default-project-img.png';
|
||||||
|
import newProjectImage from '../../images/new-project.png';
|
||||||
|
|
||||||
const SORT_TYPES = {
|
const SORT_TYPES = {
|
||||||
date: 'date',
|
date: 'date',
|
||||||
|
@ -58,6 +59,12 @@ const styles = theme => ({
|
||||||
},
|
},
|
||||||
progress: {
|
progress: {
|
||||||
height: 10
|
height: 10
|
||||||
|
},
|
||||||
|
'new-project-img': {
|
||||||
|
textAlign: 'center',
|
||||||
|
margin: 0,
|
||||||
|
paddingTop: 115,
|
||||||
|
paddingBottom: 43
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -91,7 +98,7 @@ function ProjectCard({classes, project}) {
|
||||||
<Typography gutterBottom variant="h5" component="h2" className={classes['card-title']} noWrap>
|
<Typography gutterBottom variant="h5" component="h2" className={classes['card-title']} noWrap>
|
||||||
{project.manifest.title}
|
{project.manifest.title}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography component="p" className={classes['card-content']} noWrap>
|
<Typography component="p" className={classes['card-content']} noWrap gutterBottom>
|
||||||
{project.manifest.description}
|
{project.manifest.description}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography component="p" className={classes['card-content']} color="textSecondary">
|
<Typography component="p" className={classes['card-content']} color="textSecondary">
|
||||||
|
@ -142,10 +149,18 @@ function Projects({projectAddedEvents, classes}) {
|
||||||
if (!project.manifest) {
|
if (!project.manifest) {
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
return (<Grid key={'project-' + index} item xs={12} sm={6} md={4} lg={3} className="project-list-item">
|
return (<Grid key={'project-' + index} item xs={12} sm={6} md={4} lg={3} className={classes.card}>
|
||||||
<ProjectCard project={project} classes={classes}/>
|
<ProjectCard project={project} classes={classes}/>
|
||||||
</Grid>);
|
</Grid>);
|
||||||
})}
|
})}
|
||||||
|
<Grid item xs={12} sm={6} md={4} lg={3} className="project-list-item">
|
||||||
|
<Card className={classes.card}>
|
||||||
|
<CardActionArea href="/#/create-project/" style={{height: 460}}>
|
||||||
|
<p className={classes['new-project-img']}><img alt="new project" src={newProjectImage}/></p>
|
||||||
|
<Typography align="center" className={classes['card-content']}>Add your own project</Typography>
|
||||||
|
</CardActionArea>
|
||||||
|
</Card>
|
||||||
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
Loading…
Reference in New Issue