Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
feat(landing-page): add three steps section
Browse files Browse the repository at this point in the history
  • Loading branch information
demmyhonore committed Mar 12, 2020
1 parent 93397b8 commit c95df10
Show file tree
Hide file tree
Showing 8 changed files with 128 additions and 10 deletions.
3 changes: 3 additions & 0 deletions src/i18n/locales/en/home.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"algorithms_will_distribute": "Our algorithms will distribute tasks to everyone",
"create_modern_classics": "Create modern, playable scores from known and unknown classics.",
"every_collaborator": "Every collaborator can contribute to a better score",
"go_to_demo_campaign": "Go to demo campaign",
"great_scores_alt": "Great scores are expensive. Photo by Marius Masalar.",
"great_scores_title": "Great scores are expensive",
Expand All @@ -12,6 +14,7 @@
"scores_available_online": "Scores available online ",
"title": "$t(common:website_name)",
"make_more_memorable": "Make even Mozart more memorable",
"pick_a_score": "Pick a score and invite your collaborators",
"trompa_collaboration_campaign_manager": "Trompa collaboration campaign manager",
"welcome_message": "Welcome to Trompa's campaign manager!"
}
73 changes: 73 additions & 0 deletions src/screens/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,79 @@ export default function Home() {
</div>
</section>
</Grid>
<Grid xs={12} item>
<section>
<Grid
direction="row"
justify="center"
alignItems="center"
container
>
<Grid className={classes.stepsTextContainer} xs={12} sm={6} item>
<div className={classes.stepsTextContent}>
<span className={classes.number}>
1
</span>
<Typography variant="h1">
{t('pick_a_score')}
</Typography>
</div>
</Grid>
<Grid xs={12} sm={6} item>
<img src={images.pickAScore} alt={t('pick_a_score')} />
</Grid>
</Grid>
</section>
</Grid>
<Grid xs={12} item>
<section>
<Grid
className={classes.stepWithGradient}
direction="row"
justify="center"
alignItems="center"
container
>
<Grid xs={12} sm={6} item>
<img src={images.algorithmsWillDistribute} alt={t('algorithms_will_distribute')} />
</Grid>
<Grid className={classes.stepsTextContainer} xs={12} sm={6} item>
<div className={classes.stepsTextContent}>
<span className={classes.number}>
2
</span>
<Typography variant="h1">
{t('algorithms_will_distribute')}
</Typography>
</div>
</Grid>
</Grid>
</section>
</Grid>
<Grid xs={12} item>
<section>
<Grid
direction="row"
justify="center"
alignItems="center"
container
>
<Grid className={classes.stepsTextContainer} xs={12} sm={6} item>
<div className={classes.stepsTextContent}>
<span className={classes.number}>
3
</span>
<Typography variant="h1">
{t('every_collaborator')}
</Typography>
</div>
</Grid>
<Grid xs={12} sm={6} item>
<img src={images.everyCollaborator} alt={t('every_collaborator')} />
</Grid>
</Grid>
</section>
</Grid>
</Grid>
<footer />
</div>
Expand Down
40 changes: 39 additions & 1 deletion src/screens/Home/Home.styles.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createStyles } from '@material-ui/styles';

export default ({ spacing, typography, palette }) => createStyles({
export default ({ spacing, typography, palette, shape }) => createStyles({
relative: {
position: 'relative',
},
Expand Down Expand Up @@ -71,4 +71,42 @@ export default ({ spacing, typography, palette }) => createStyles({
},
},
},
stepsTextContainer: {
display : 'flex',
justifyContent: 'flex-end',
alignItems : 'center',
height : 511,
},
stepsTextContent: {
width : 566,
display : 'flex',
alignItems: 'flex-start',
'& h1' : {
marginTop : spacing(1.5),
marginLeft: spacing(3),
color : palette.text.purpleBlack,
},
},
number: {
height : 65,
width : 65,
minWidth : 65,
borderRadius : '50%',
backgroundColor: palette.primary.main,
fontFamily : typography.fontFamilyAvenir,
color : palette.common.white,
fontSize : 50,
fontWeight : 900,
textAlign : 'center',
},
stepWithGradient: {
background : 'linear-gradient(90deg, rgba(255,140,2,1) 50%, rgba(244,87,49,1) 100%)',
'& $number': {
backgroundColor: palette.common.white,
color : palette.text.purpleBlack,
},
'& $stepsTextContainer': {
justifyContent: 'flex-start',
},
},
});
13 changes: 8 additions & 5 deletions src/theme/images.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
export default {
logo : require('./images/logo.png'),
logoIcon : require('./images/logo_icon.svg'),
collaborateHero: require('./images/collaborate_hero.png'),
greatScores : require('./images/great_scores.png'),
unlockClassics : require('./images/unlock_classics.png'),
algorithmsWillDistribute: require('./images/algorithms_will_distribute.png'),
everyCollaborator : require('./images/every_collaborator.png'),
logo : require('./images/logo.png'),
logoIcon : require('./images/logo_icon.svg'),
collaborateHero : require('./images/collaborate_hero.png'),
greatScores : require('./images/great_scores.png'),
pickAScore : require('./images/pick_a_score.png'),
unlockClassics : require('./images/unlock_classics.png'),
};
Binary file added src/theme/images/algorithms_will_distribute.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/theme/images/every_collaborator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/theme/images/pick_a_score.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions src/theme/palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ export default {
darkBlack : 'rgba(0, 0, 0, 0.7)',
},
text: {
primary : 'rgba(0, 0, 0, 0.7)',
lightBlack: '#3A3A3A',
darkGrey : '#333333',
blue : '#005AA3',
primary : 'rgba(0, 0, 0, 0.7)',
lightBlack : '#3A3A3A',
purpleBlack: '#191847',
darkGrey : '#333333',
blue : '#005AA3',
},
primary: {
main: '#2B44FF',
Expand Down

0 comments on commit c95df10

Please sign in to comment.