Browse Source

fix(onboarding-layout-ui): Reworked spacing and buttons

renovate/lint-staged-8.x
odb366 7 years ago
parent
commit
55ca88e588
  1. 4
      app/components/Onboarding/FormContainer.js
  2. 24
      app/components/Onboarding/FormContainer.scss

4
app/components/Onboarding/FormContainer.js

@ -37,12 +37,12 @@ const FormContainer = ({
<div className={styles.buttonsContainer}>
<section>
{
back && <div onClick={back}><FaAngleLeft style={{ verticalAlign: 'top' }} /> Back</div>
back && <div onClick={back} className={styles.backButton} ><FaAngleLeft /> Back</div>
}
</section>
<section>
{
next && <div onClick={next}>Next <FaAngleRight style={{ verticalAlign: 'top' }} /></div>
next && <div onClick={next} className={styles.nextButton} >Next <FaAngleRight /></div>
}
</section>
</div>

24
app/components/Onboarding/FormContainer.scss

@ -22,7 +22,7 @@
.info {
color: $white;
margin: 20px 0 20px 0;
margin-bottom: 20px;
padding: 20px 40px;
h1 {
@ -41,13 +41,13 @@
position: relative;
background: $spaceblue;
height: 100vh;
padding: 60px 40px;
padding: 40px 40px;
}
.footer {
position: absolute;
bottom: 0;
padding: 20px 40px;
padding: 25px 40px;
color: $white;
width: calc(100% - 80px);
@ -56,14 +56,30 @@
flex-direction: row;
justify-content: space-between;
div {
.nextButton {
cursor: pointer;
transition: all 0.25s;
background: #31343f;
padding: 10px 30px 10px 40px;
width: 54px;
text-align: center;
&:hover {
background: darken($gold, 5%);
}
}
.backButton {
cursor: pointer;
transition: all 0.25s;
padding: 10px 20px 10px 0px;
text-align: center;
&:hover {
opacity: 0.5;
}
}
}
}

Loading…
Cancel
Save