From 085413ea67fdc80dfef77012cd8b9be2cb710a86 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Wed, 25 Sep 2019 17:07:01 -0400 Subject: [PATCH] add steps to about page --- src/components/About.jsx | 36 ++++++++++++++++++++++++ src/components/base/icons/IconByName.jsx | 4 +-- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/src/components/About.jsx b/src/components/About.jsx index 5a7570f..f59a5e8 100644 --- a/src/components/About.jsx +++ b/src/components/About.jsx @@ -32,11 +32,32 @@ const style = () => ({ fontWeight: 'bold', 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: { fontSize: '16px', }, description: { gridColumn: '3 / 25' + }, + subSectionTitle: { + gridColumn: '34 / 48', + alignSelf: 'center' } }) @@ -49,6 +70,16 @@ const BulletText = ({ text, className }) => { ) } +const Step = ({ number, title, text }) => { + const classes = useStyles() + return ( +
+ +
{title}
+
{text}
+
+ ) +} const About = () => { const classes = useStyles() @@ -72,6 +103,11 @@ const About = () => {
+ How it works + + + + ) } diff --git a/src/components/base/icons/IconByName.jsx b/src/components/base/icons/IconByName.jsx index b04efba..40956d1 100644 --- a/src/components/base/icons/IconByName.jsx +++ b/src/components/base/icons/IconByName.jsx @@ -18,7 +18,7 @@ const icons = { [PHOTO]: Photo } -const Icon = ({ name, centered }) => { +const Icon = ({ name, centered, text }) => { const Component = icons[name] return (
{ width: '3rem', justifySelf: centered ? 'center' : 'auto' }} > - + {text || }
) }