add steps to about page

This commit is contained in:
Barry Gitarts 2019-09-25 17:07:01 -04:00 committed by Barry G
parent f77122b37d
commit 085413ea67
2 changed files with 38 additions and 2 deletions

View File

@ -32,11 +32,32 @@ const style = () => ({
fontWeight: 'bold', fontWeight: 'bold',
gridColumn: '3 / 23' gridColumn: '3 / 23'
}, },
stepMain: {
gridColumn: '27 / 46',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
textAlign: 'center'
},
stepTitle: {
fontSize: '16px',
fontWeight: 'bold',
marginTop: '1em'
},
stepText: {
fontSize: '16px',
color: '#939BA1',
margin: '0.5em 0 2.5rem'
},
text: { text: {
fontSize: '16px', fontSize: '16px',
}, },
description: { description: {
gridColumn: '3 / 25' gridColumn: '3 / 25'
},
subSectionTitle: {
gridColumn: '34 / 48',
alignSelf: 'center'
} }
}) })
@ -49,6 +70,16 @@ const BulletText = ({ text, className }) => {
</div> </div>
) )
} }
const Step = ({ number, title, text }) => {
const classes = useStyles()
return (
<div className={classes.stepMain}>
<Icon text={number} />
<div className={classes.stepTitle}>{title}</div>
<div className={classes.stepText}>{text}</div>
</div>
)
}
const About = () => { const About = () => {
const classes = useStyles() const classes = useStyles()
@ -72,6 +103,11 @@ const About = () => {
<div className={classes.imgContainer}> <div className={classes.imgContainer}>
<img src={NewInternet} className={classes.img} /> <img src={NewInternet} className={classes.img} />
</div> </div>
<Typography className={classnames(classes.title, classes.subSectionTitle)}>How it works</Typography>
<Step number="1" title="Create project" text="Propose something you want to design, build, do." />
<Step number="2" title="Discuss" text="Discuss your project in a public Status channel." />
<Step number="3" title="Receive funding" text="Withdraw funds pledged to your project." />
<Step number="4" title="Get started" text="Keep everyone informed on your progress." />
</div> </div>
) )
} }

View File

@ -18,7 +18,7 @@ const icons = {
[PHOTO]: Photo [PHOTO]: Photo
} }
const Icon = ({ name, centered }) => { const Icon = ({ name, centered, text }) => {
const Component = icons[name] const Component = icons[name]
return ( return (
<div style={{ <div style={{
@ -31,7 +31,7 @@ const Icon = ({ name, centered }) => {
width: '3rem', width: '3rem',
justifySelf: centered ? 'center' : 'auto' justifySelf: centered ? 'center' : 'auto'
}} > }} >
<Component /> {text || <Component />}
</div> </div>
) )
} }