1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

Add hyperscript for wallet display component

This commit is contained in:
sdtsui 2017-07-30 22:10:59 -07:00
parent 0ca50dfb1b
commit 610d6da8ae

View File

@ -29,10 +29,11 @@ WalletView.prototype.render = function () {
style: {
flexGrow: 1,
height: '82vh',
background: '#FAFAFA',
background: '#FAFAFA', // TODO: add to reusable colors
}
}, [
// TODO: Separate component: wallet account details
h('div.flex-row.flex-center', {
style: {
marginLeft: '35px',
@ -71,10 +72,53 @@ WalletView.prototype.render = function () {
},
),
])
]),
// wallet display 1
// token display 1
// TODO: Separate component: wallet contents
h('div.flex-column', {
style: {
marginLeft: '35px',
marginTop: '15px',
alignItems: 'flex-start',
}
}, [
h('span', {
style: {
fontSize: '1.1em',
},
}, 'Wallet'),
h('span', {
style: {
fontSize: '1.8em',
margin: '10px 0px',
},
}, '1001.124 ETH'),
h('span', {
style: {
fontSize: '1.3em',
},
}, '$300,000.00 USD'),
h('div', {
style: {
position: 'absolute',
marginLeft: '-35px',
height: '6em',
width: '4px',
background: '#D8D8D8', // TODO: add to resuable colors
}
}, [
])
]),
// Buy Buttons
// Wallet contents
])
}