diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-07-30 09:07:58 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-07-30 09:07:58 +0800 |
commit | fec3e64d630d17d035df43203bbfbf061930cd61 (patch) | |
tree | 475f9e1e9b1ec7337f2f255643e8ba2a0e1903b8 /ui | |
parent | 2a5f2c7f4041006daf5bda4d51117b4fe9544e98 (diff) | |
download | tangerine-wallet-browser-fec3e64d630d17d035df43203bbfbf061930cd61.tar tangerine-wallet-browser-fec3e64d630d17d035df43203bbfbf061930cd61.tar.gz tangerine-wallet-browser-fec3e64d630d17d035df43203bbfbf061930cd61.tar.bz2 tangerine-wallet-browser-fec3e64d630d17d035df43203bbfbf061930cd61.tar.lz tangerine-wallet-browser-fec3e64d630d17d035df43203bbfbf061930cd61.tar.xz tangerine-wallet-browser-fec3e64d630d17d035df43203bbfbf061930cd61.tar.zst tangerine-wallet-browser-fec3e64d630d17d035df43203bbfbf061930cd61.zip |
Add high-level css layout for Send Token
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/send.js | 101 |
1 files changed, 78 insertions, 23 deletions
diff --git a/ui/app/send.js b/ui/app/send.js index 66ba21e3e..bd4cf4ee1 100644 --- a/ui/app/send.js +++ b/ui/app/send.js @@ -143,7 +143,17 @@ SendTransactionScreen.prototype.render = function () { ]), // 'amount' and send button - h('section.flex-row.flex-center', [ + h('section.flex-column.flex-center', [ + + h('div.flex-row.flex-center', { + style: { + width: '100%', + justifyContent: 'space-between', + } + },[ + h('span', { style: {} }, ['Amount']), + h('span', { style: {} }, ['Token <> USD']), + ]), h('input.large-input', { name: 'amount', @@ -157,43 +167,88 @@ SendTransactionScreen.prototype.render = function () { }, }), - h('button.primary', { - onClick: this.onSubmit.bind(this), + ]), + + h('section.flex-column.flex-center', [ + + h('div.flex-row.flex-center', { style: { - textTransform: 'uppercase', + width: '100%', + justifyContent: 'space-between', + } + },[ + h('span', { style: {} }, ['Gas Fee:']), + h('span', { style: {} }, ['What\'s this?']), + ]), + + h('input.large-input', { + name: 'Gas Fee', + placeholder: '0', + type: 'number', + style: { + marginRight: '6px', }, - }, 'Next'), + // dataset: { + // persistentFormId: 'tx-amount', + // }, + }), ]), // // Optional Fields // - h('h3.flex-center.text-transform-uppercase', { - style: { - background: '#EBEBEB', - color: '#AEAEAE', - marginTop: '16px', - marginBottom: '16px', - }, - }, [ - 'Transaction Data (optional)', - ]), - // 'data' field h('section.flex-column.flex-center', [ - h('input.large-input', { - name: 'txData', - placeholder: '0x01234', + + h('div.flex-row.flex-center', { style: { width: '100%', - resize: 'none', - }, - dataset: { - persistentFormId: 'tx-data', + justifyContent: 'flex-start', + } + },[ + h('span', { style: {} }, ['Transaction Memo (optional)']), + h('span', { style: {} }, ['What\'s this?']), + ]), + + h('input.large-input', { + name: 'memo', + placeholder: '', + type: 'string', + style: { + marginRight: '6px', }, }), + ]), + + + + // h('h3.flex-center.text-transform-uppercase', { + // style: { + // background: '#EBEBEB', + // color: '#AEAEAE', + // marginTop: '16px', + // marginBottom: '16px', + // }, + // }, [ + // 'Transaction Data (optional)', + // ]), + + // // 'data' field + // h('section.flex-column.flex-center', [ + // h('input.large-input', { + // name: 'txData', + // placeholder: '0x01234', + // style: { + // width: '100%', + // resize: 'none', + // }, + // dataset: { + // persistentFormId: 'tx-data', + // }, + // }), + // ]), ]) ) } |