Jack Mallers
7 years ago
5 changed files with 114 additions and 1 deletions
@ -0,0 +1,41 @@ |
|||
import React, { Component } from 'react' |
|||
import PropTypes from 'prop-types' |
|||
import CurrencyIcon from 'components/CurrencyIcon' |
|||
import styles from './StepThree.scss' |
|||
|
|||
class StepThree extends Component { |
|||
render() { |
|||
const { push_amt, setPushAmount } = this.props |
|||
|
|||
return ( |
|||
<div className={styles.container}> |
|||
<div className={styles.explainer}> |
|||
<h2>Push Amount</h2> |
|||
<p>The push amount is the amount of bitcoin (if any at all) you'd like to "push" to the other side of the channel when it opens. This amount will set on the remote side as part of the initial commitment state.</p> |
|||
</div> |
|||
|
|||
<form> |
|||
<label htmlFor='amount'> |
|||
<CurrencyIcon currency={'btc'} crypto={'btc'} /> |
|||
</label> |
|||
<input |
|||
autoFocus |
|||
type='number' |
|||
min='0' |
|||
max='0.16' |
|||
ref={input => this.input = input} |
|||
size='' |
|||
value={push_amt} |
|||
onChange={event => setPushAmount(event.target.value)} |
|||
id='amount' |
|||
style={{ width: isNaN((push_amt.length + 1) * 55) ? 140 : (push_amt.length + 1) * 55 }} |
|||
/> |
|||
</form> |
|||
</div> |
|||
) |
|||
} |
|||
} |
|||
|
|||
StepThree.propTypes = {} |
|||
|
|||
export default StepThree |
@ -0,0 +1,58 @@ |
|||
@import '../../variables.scss'; |
|||
|
|||
.container { |
|||
margin-bottom: 50px; |
|||
padding: 20px; |
|||
|
|||
.explainer { |
|||
margin: 20px 0 50px 0; |
|||
padding-bottom: 20px; |
|||
border-bottom: 1px solid $lightgrey; |
|||
|
|||
h2 { |
|||
margin: 10px 0 20px 0; |
|||
font-size: 28px; |
|||
} |
|||
|
|||
p { |
|||
line-height: 1.5; |
|||
font-size: 16px; |
|||
} |
|||
} |
|||
|
|||
form { |
|||
display: flex; |
|||
flex-direction: row; |
|||
justify-content: center; |
|||
align-items: center; |
|||
} |
|||
|
|||
label { |
|||
margin-left: -25px; |
|||
height: 200px; |
|||
color: $main; |
|||
|
|||
svg { |
|||
width: 65px; |
|||
height: 65px; |
|||
} |
|||
|
|||
svg[data-icon='ltc'] { |
|||
margin-right: 10px; |
|||
|
|||
g { |
|||
transform: scale(1.75) translate(-5px, -5px); |
|||
} |
|||
} |
|||
} |
|||
|
|||
input[type=number] { |
|||
color: $main; |
|||
width: 30px; |
|||
height: 200px; |
|||
font-size: 100px; |
|||
border: none; |
|||
outline: 0; |
|||
-webkit-appearance: none; |
|||
} |
|||
} |
Loading…
Reference in new issue