From 802c29c98642043cf679eb2658934e0420f8ecc7 Mon Sep 17 00:00:00 2001 From: sdtsui Date: Sun, 6 Aug 2017 15:46:55 -0700 Subject: Implement hero balance UI, mobile --- ui/app/components/tx-view.js | 89 +++++++++++++++++++------------------------- 1 file changed, 38 insertions(+), 51 deletions(-) (limited to 'ui/app/components') 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', { -- cgit