aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-07-30 09:07:58 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-07-30 09:07:58 +0800
commitfec3e64d630d17d035df43203bbfbf061930cd61 (patch)
tree475f9e1e9b1ec7337f2f255643e8ba2a0e1903b8 /ui
parent2a5f2c7f4041006daf5bda4d51117b4fe9544e98 (diff)
downloadtangerine-wallet-browser-fec3e64d630d17d035df43203bbfbf061930cd61.tar.gz
tangerine-wallet-browser-fec3e64d630d17d035df43203bbfbf061930cd61.tar.zst
tangerine-wallet-browser-fec3e64d630d17d035df43203bbfbf061930cd61.zip
Add high-level css layout for Send Token
Diffstat (limited to 'ui')
-rw-r--r--ui/app/send.js101
1 files changed, 78 insertions, 23 deletions
diff --git a/ui/app/send.js b/ui/app/send.js
index 66ba21e3e..bd4cf4ee1 100644
--- a/ui/app/send.js
+++ b/ui/app/send.js
@@ -143,7 +143,17 @@ SendTransactionScreen.prototype.render = function () {
]),
// 'amount' and send button
- h('section.flex-row.flex-center', [
+ h('section.flex-column.flex-center', [
+
+ h('div.flex-row.flex-center', {
+ style: {
+ width: '100%',
+ justifyContent: 'space-between',
+ }
+ },[
+ h('span', { style: {} }, ['Amount']),
+ h('span', { style: {} }, ['Token <> USD']),
+ ]),
h('input.large-input', {
name: 'amount',
@@ -157,43 +167,88 @@ SendTransactionScreen.prototype.render = function () {
},
}),
- h('button.primary', {
- onClick: this.onSubmit.bind(this),
+ ]),
+
+ h('section.flex-column.flex-center', [
+
+ h('div.flex-row.flex-center', {
style: {
- textTransform: 'uppercase',
+ width: '100%',
+ justifyContent: 'space-between',
+ }
+ },[
+ h('span', { style: {} }, ['Gas Fee:']),
+ h('span', { style: {} }, ['What\'s this?']),
+ ]),
+
+ h('input.large-input', {
+ name: 'Gas Fee',
+ placeholder: '0',
+ type: 'number',
+ style: {
+ marginRight: '6px',
},
- }, 'Next'),
+ // dataset: {
+ // persistentFormId: 'tx-amount',
+ // },
+ }),
]),
//
// Optional Fields
//
- h('h3.flex-center.text-transform-uppercase', {
- style: {
- background: '#EBEBEB',
- color: '#AEAEAE',
- marginTop: '16px',
- marginBottom: '16px',
- },
- }, [
- 'Transaction Data (optional)',
- ]),
- // 'data' field
h('section.flex-column.flex-center', [
- h('input.large-input', {
- name: 'txData',
- placeholder: '0x01234',
+
+ h('div.flex-row.flex-center', {
style: {
width: '100%',
- resize: 'none',
- },
- dataset: {
- persistentFormId: 'tx-data',
+ justifyContent: 'flex-start',
+ }
+ },[
+ h('span', { style: {} }, ['Transaction Memo (optional)']),
+ h('span', { style: {} }, ['What\'s this?']),
+ ]),
+
+ h('input.large-input', {
+ name: 'memo',
+ placeholder: '',
+ type: 'string',
+ style: {
+ marginRight: '6px',
},
}),
+
]),
+
+
+
+ // h('h3.flex-center.text-transform-uppercase', {
+ // style: {
+ // background: '#EBEBEB',
+ // color: '#AEAEAE',
+ // marginTop: '16px',
+ // marginBottom: '16px',
+ // },
+ // }, [
+ // 'Transaction Data (optional)',
+ // ]),
+
+ // // 'data' field
+ // h('section.flex-column.flex-center', [
+ // h('input.large-input', {
+ // name: 'txData',
+ // placeholder: '0x01234',
+ // style: {
+ // width: '100%',
+ // resize: 'none',
+ // },
+ // dataset: {
+ // persistentFormId: 'tx-data',
+ // },
+ // }),
+ // ]),
])
)
}