Add wrapper CSS for AccountDetailsModal

This commit is contained in:
sdtsui 2017-08-21 05:58:30 -07:00
parent 3fa7c5dc08
commit 35508a2898
3 changed files with 49 additions and 36 deletions

View File

@ -30,44 +30,40 @@ module.exports = connect(mapStateToProps, mapDispatchToProps)(AccountDetailsModa
// It utilizes modal styles
AccountDetailsModal.prototype.render = function () {
return h('div', {}, [
h('div.buy-modal-content.transfers-subview', {
h('div.account-details-modal-wrapper', {
}, [
h('div.buy-modal-content-title-wrapper.flex-column.flex-center', {
style: {},
}, [
h('div.buy-modal-content-title', {
style: {},
}, 'Account Details Modal'),
h('div', {}, 'How would you like to buy Ether?'),
h('div', {}, [
'ICON',
]),
h('div.buy-modal-content-options.flex-column.flex-center', {}, [
h('div.buy-modal-content-option', {
onClick: () => {},
}, [
h('div.buy-modal-content-option-title', {}, 'Coinbase'),
h('div.buy-modal-content-option-subtitle', {}, 'Buy with Fiat'),
]),
h('div.buy-modal-content-option', {}, [
h('div.buy-modal-content-option-title', {}, 'Shapeshift'),
h('div.buy-modal-content-option-subtitle', {}, 'Trade any digital asset for any other'),
]),
h('div.buy-modal-content-option', {}, [
h('div.buy-modal-content-option-title', {}, 'Direct Deposit'),
h('div.buy-modal-content-option-subtitle', {}, 'Deposit from another account'),
]),
h('div', {}, [
'X',
]),
h('div', {}, [
]),
h('div', {}, [
'QR Code',
]),
h('div', {}, [
'Account Display',
]),
h('div', {}, [
'divider',
]),
h('div', {}, [
'View aCcount on etherscan',
]),
h('div', {}, [
'export private key',
]),
h('button', {
style: {
background: 'white',
},
onClick: () => { this.props.hideModal() },
}, h('div.buy-modal-content-footer#buy-modal-content-footer-text',{}, 'Cancel')),
])
])
}

View File

@ -40,7 +40,7 @@ const MODALS = {
boxShadow: 'rgba(0, 0, 0, 0.15) 0px 2px 2px 2px',
},
laptopModalStyle: {
width: '45%',
width: '375px',
top: 'calc(30% + 10px)',
boxShadow: 'rgba(0, 0, 0, 0.15) 0px 2px 2px 2px',
},
@ -50,8 +50,16 @@ const MODALS = {
contents: [
h(AccountDetailsModal, {}, []),
],
mobileModalStyle: {},
laptopModalStyle: {},
mobileModalStyle: {
width: '95%',
top: isPopupOrNotification() === 'popup' ? '48vh' : '36.5vh',
boxShadow: 'rgba(0, 0, 0, 0.15) 0px 2px 2px 2px',
},
laptopModalStyle: {
width: '360px',
top: 'calc(30% + 10px)',
boxShadow: 'rgba(0, 0, 0, 0.15) 0px 2px 2px 2px',
},
},
NEW_ACCOUNT: {

View File

@ -164,3 +164,12 @@
padding: 10px;
font-size: 18px;
}
// Account Details Modal
.account-details-modal-wrapper {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
}