From e6c3e8c7f62bea5dffca80c1e363004ff922edd9 Mon Sep 17 00:00:00 2001 From: George Lima Date: Thu, 20 Dec 2018 11:10:44 -0300 Subject: [PATCH] feture: add Send view side information --- app/views/send.js | 179 +++++++++++++++++++++++++++++++--------------- 1 file changed, 122 insertions(+), 57 deletions(-) diff --git a/app/views/send.js b/app/views/send.js index f2ab094..4fb02de 100644 --- a/app/views/send.js +++ b/app/views/send.js @@ -6,9 +6,19 @@ import { InputLabelComponent } from '../components/input-label'; import { InputComponent } from '../components/input'; import { TextComponent } from '../components/text'; import { SelectComponent } from '../components/select'; +import { RowComponent } from '../components/row'; +import { ColumnComponent } from '../components/column'; +import { Divider } from '../components/divider'; +import { Button } from '../components/button'; -const Wrapper = styled.div` +const FormWrapper = styled.div` margin-top: ${props => props.theme.layoutContentPaddingTop}; + width: 80%; +`; + +const SendWrapper = styled(ColumnComponent)` + margin-top: 60px; + width: 15%; `; const ShowFeeButton = styled.button` @@ -24,6 +34,42 @@ const ShowFeeButton = styled.button` } `; +const InfoCard = styled.div` + width: 100%; + background-color: ${props => props.theme.colors.cardBackgroundColor}; + border-radius: ${props => props.theme.boxBorderRadius}; +`; + +const InfoContent = styled.div` + padding: 15px; +`; + +const InfoCardLabel = styled(TextComponent)` + opacity: 0.5; + margin-bottom: 10px; +`; + +const InfoCardUSD = styled(TextComponent)` + opacity: 0.5; + margin-top: 2.5px; +`; + +const FormButton = styled(Button)` + margin: 10px 0; + border-color: ${props => (props.focused + ? props.theme.colors.activeItem + : props.theme.colors.inactiveItem)}; + + &:hover { + border-color: ${props => (props.focused + ? props.theme.colors.activeItem + : props.theme.colors.inactiveItem)}; + background-color: ${props => (props.focused + ? props.theme.colors.activeItem + : props.theme.colors.inactiveItem)}; + } +`; + type Props = {}; type State = { showFee: boolean, @@ -56,65 +102,84 @@ export class SendView extends PureComponent { } = this.state; return ( - - - - - - - - - - - this.setState(state => ({ showFee: !state.showFee }))} - > - + + + + + + + + + - - {showFee && ( - - - this.setState(state => ({ showFee: !state.showFee })) + } + > + - - )} - + + {showFee && ( + + + + + )} + + + + + + + + + + + + + + + + + + + ); } }