aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-07-30 08:38:29 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-07-30 08:38:29 +0800
commit2a5f2c7f4041006daf5bda4d51117b4fe9544e98 (patch)
treee47d217d6bb93ce9c52a394d601f30d840d0696c
parentc0483fc230ec1893f15c6f8994f63e318474846e (diff)
downloadtangerine-wallet-browser-2a5f2c7f4041006daf5bda4d51117b4fe9544e98.tar
tangerine-wallet-browser-2a5f2c7f4041006daf5bda4d51117b4fe9544e98.tar.gz
tangerine-wallet-browser-2a5f2c7f4041006daf5bda4d51117b4fe9544e98.tar.bz2
tangerine-wallet-browser-2a5f2c7f4041006daf5bda4d51117b4fe9544e98.tar.lz
tangerine-wallet-browser-2a5f2c7f4041006daf5bda4d51117b4fe9544e98.tar.xz
tangerine-wallet-browser-2a5f2c7f4041006daf5bda4d51117b4fe9544e98.tar.zst
tangerine-wallet-browser-2a5f2c7f4041006daf5bda4d51117b4fe9544e98.zip
Add responsive container; add send token copy
-rw-r--r--ui/app/components/ens-input.js7
-rw-r--r--ui/app/send.js139
2 files changed, 53 insertions, 93 deletions
diff --git a/ui/app/components/ens-input.js b/ui/app/components/ens-input.js
index 3a33ebf74..93c07599d 100644
--- a/ui/app/components/ens-input.js
+++ b/ui/app/components/ens-input.js
@@ -44,6 +44,13 @@ EnsInput.prototype.render = function () {
return h('div', {
style: { width: '100%' },
}, [
+ h('span', {
+ style: {
+ textAlign: 'left',
+ }
+ }, [
+ 'To:'
+ ]),
h('input.large-input', opts),
// The address book functionality.
h('datalist#addresses',
diff --git a/ui/app/send.js b/ui/app/send.js
index 1235da223..66ba21e3e 100644
--- a/ui/app/send.js
+++ b/ui/app/send.js
@@ -59,14 +59,17 @@ SendTransactionScreen.prototype.render = function () {
return (
- h('.send-screen.flex-column.flex-grow', [
-
- h('div', {
+ h('.send-screen.flex-column.flex-grow', {
+ style: {
+ background: '#FFFFFF', // $background-white
+ marginLeft: '3.5%',
+ marginRight: '3.5%',
+ }
+ }, [
+ h('section.flex-center.flex-row', {
style: {
- position: 'fixed',
- zIndex: 15, // token-icon-z-index
- marginTop: '-55px',
- marginLeft: '20%',
+ zIndex: 15, // $token-icon-z-index
+ marginTop: '-35px',
}
}, [
h(Identicon, {
@@ -76,102 +79,52 @@ SendTransactionScreen.prototype.render = function () {
]),
//
- // Sender Profile
+ // Required Fields
//
- h('.account-data-subsection.flex-row.flex-grow', {
+
+ h('h3.flex-center', {
style: {
- margin: '0 20px',
- width: '335px',
- background: 'white', // $white
marginTop: '-15px',
- zIndex: 13, // $send-screen-z-index
- display: 'flex',
+ fontSize: '20px',
},
}, [
- // header - identicon + nav
- h('.flex-row.flex-space-between', {
- style: {
- marginTop: '15px',
- },
- }, [
- // back button
- h('i.fa.fa-arrow-left.fa-lg.cursor-pointer.color-orange', {
- onClick: this.back.bind(this),
- }),
-
- // large identicon
- h('.identicon-wrapper.flex-column.flex-center.select-none', [
- h(Identicon, {
- diameter: 62,
- address: address,
- }),
- ]),
-
- // invisible place holder
- h('i.fa.fa-users.fa-lg.invisible', {
- style: {
- marginTop: '28px',
- },
- }),
-
- ]),
-
- // account label
-
- h('.flex-column', {
- style: {
- marginTop: '10px',
- alignItems: 'flex-start',
- },
- }, [
- h('h2.font-medium.color-forest.flex-center', {
- style: {
- paddingTop: '8px',
- marginBottom: '8px',
- },
- }, identity && identity.name),
-
- // address and getter actions
- h('.flex-row.flex-center', {
- style: {
- marginBottom: '8px',
- },
- }, [
-
- h('div', {
- style: {
- lineHeight: '16px',
- },
- }, addressSummary(address)),
-
- ]),
-
- // balance
- h('.flex-row.flex-center', [
-
- h(EthBalance, {
- value: account && account.balance,
- conversionRate,
- currentCurrency,
- }),
-
- ]),
- ]),
+ 'Send Tokens',
]),
- //
- // Required Fields
- //
+ h('h3.flex-center', {
+ style: {
+ textAlign: 'center',
+ fontSize: '16px',
+ },
+ }, [
+ 'Send Tokens to anyone with an Ethereum account',
+ ]),
- h('h3.flex-center.text-transform-uppercase', {
+ h('h3.flex-center', {
style: {
- background: '#EBEBEB',
- color: '#AEAEAE',
- marginTop: '15px',
- marginBottom: '16px',
+ textAlign: 'center',
+ fontSize: '16px',
+ },
+ }, [
+ 'Your Aragon Token Balance is:',
+ ]),
+
+ h('h3.flex-center', {
+ style: {
+ textAlign: 'center',
+ fontSize: '43px',
+ },
+ }, [
+ '2.34',
+ ]),
+
+ h('h3.flex-center', {
+ style: {
+ textAlign: 'center',
+ fontSize: '16px',
},
}, [
- 'Send Transaction',
+ 'ANT',
]),
// error message
@@ -194,7 +147,7 @@ SendTransactionScreen.prototype.render = function () {
h('input.large-input', {
name: 'amount',
- placeholder: 'Amount',
+ placeholder: '0',
type: 'number',
style: {
marginRight: '6px',