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}> <div className={styles.buttonsContainer}>
<section> <section>
{ {
back && <div onClick={back}><FaAngleLeft style={{ verticalAlign: 'top' }} /> Back</div> back && <div onClick={back} className={styles.backButton} ><FaAngleLeft /> Back</div>
} }
</section> </section>
<section> <section>
{ {
next && <div onClick={next}>Next <FaAngleRight style={{ verticalAlign: 'top' }} /></div> next && <div onClick={next} className={styles.nextButton} >Next <FaAngleRight /></div>
} }
</section> </section>
</div> </div>

24
app/components/Onboarding/FormContainer.scss

@ -22,7 +22,7 @@
.info { .info {
color: $white; color: $white;
margin: 20px 0 20px 0; margin-bottom: 20px;
padding: 20px 40px; padding: 20px 40px;
h1 { h1 {
@ -41,13 +41,13 @@
position: relative; position: relative;
background: $spaceblue; background: $spaceblue;
height: 100vh; height: 100vh;
padding: 60px 40px; padding: 40px 40px;
} }
.footer { .footer {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
padding: 20px 40px; padding: 25px 40px;
color: $white; color: $white;
width: calc(100% - 80px); width: calc(100% - 80px);
@ -56,14 +56,30 @@
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
div { .nextButton {
cursor: pointer; cursor: pointer;
transition: all 0.25s; 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 { &:hover {
opacity: 0.5; opacity: 0.5;
} }
} }
} }
} }

Loading…
Cancel
Save