diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-07 06:46:55 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-07 06:46:55 +0800 |
commit | 802c29c98642043cf679eb2658934e0420f8ecc7 (patch) | |
tree | 9d00b014d10bf4c62ad8e203ebb8b471c64af3fe /ui/app/components/tx-view.js | |
parent | 17de77f24a11bfcd26f8472628d6ead28ce8dced (diff) | |
download | tangerine-wallet-browser-802c29c98642043cf679eb2658934e0420f8ecc7.tar tangerine-wallet-browser-802c29c98642043cf679eb2658934e0420f8ecc7.tar.gz tangerine-wallet-browser-802c29c98642043cf679eb2658934e0420f8ecc7.tar.bz2 tangerine-wallet-browser-802c29c98642043cf679eb2658934e0420f8ecc7.tar.lz tangerine-wallet-browser-802c29c98642043cf679eb2658934e0420f8ecc7.tar.xz tangerine-wallet-browser-802c29c98642043cf679eb2658934e0420f8ecc7.tar.zst tangerine-wallet-browser-802c29c98642043cf679eb2658934e0420f8ecc7.zip |
Implement hero balance UI, mobile
Diffstat (limited to 'ui/app/components/tx-view.js')
-rw-r--r-- | ui/app/components/tx-view.js | 89 |
1 files changed, 38 insertions, 51 deletions
diff --git a/ui/app/components/tx-view.js b/ui/app/components/tx-view.js index 75c8a2c11..77ca87834 100644 --- a/ui/app/components/tx-view.js +++ b/ui/app/components/tx-view.js @@ -91,65 +91,52 @@ TxView.prototype.render = function () { ]), - h('div.flex-row', { - style: { - margin: '1.8em 0.9em 0.8em 0.9em', - // flex: '1 0 520px', - } + // laptop: flex-row, flex-center + // mobile: flex-column + h('div.hero-balance', { + style: {}, }, [ - // laptop: flex-row - // mobile: flex-column - h('div.flex-row.flex-center', { - style: { - } - }, [ - - // laptop: 50px 50px - // mobile: 100px 100px - h('img', { - src: '../images/eth_logo.svg', - width: '50px', - height: '50px', - style: { - borderRadius: '25px', - border: '1px solid', - } - }), - - // laptop: 5vw? - // phone: 50vw? - h('div.flex-column.flex-center', { + // laptop: 50px 50px + // mobile: 100px 100px + h('img.hero-balance-icon', { + src: '../images/eth_logo.svg', + width: '60px', + height: '60px', + style: {} + }), + + // laptop: 5vw? + // phone: 50vw? + h('div.hero-balance-display', {}, [ + h('div.token-amount', { style: {} - }, [ - h('div', {}, '1001.124 ETH'), + }, '1001.124 ETH'), - h('div', {}, '$300,000 USD'), - ]), + h('div.fiat-amount', { + style: {} + }, '$300,000 USD'), + ]), - // laptop: 10vw? - // phone: 75vw? - h('div.flex-row.flex-center', { + // laptop: 10vw? + // phone: 75vw? + h('div.flex-row.flex-center.hero-balance-buttons', { + style: {} + }, [ + h('button.btn-clear', { style: { - width: '100%', - } - }, [ - h('button.btn-clear', { - style: { - textAlign: 'center', - }, - }, 'BUY'), - - h('button.btn-clear', { - style: { - textAlign: 'center', - }, - }, 'SEND'), - - ]), - ]), + textAlign: 'center', + }, + }, 'BUY'), + h('button.btn-clear', { + style: { + textAlign: 'center', + marginLeft: '1.4em', + }, + }, 'SEND'), + ]), ]), h('div.flex-row', { |