aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-03-01 04:40:14 +0800
committerGitHub <noreply@github.com>2018-03-01 04:40:14 +0800
commit6c472b73ebdad38fed60917f089ab119a0435e7e (patch)
treed75f9ce03884befed0221b1c2d45611fcbbe9c2d
parent8f5817c090efcb1dc3e4c291cfc4eb929e8d2dca (diff)
parentbaab9917ff741dd8e2f7efea63f85bc3de0f89ca (diff)
downloadtangerine-wallet-browser-6c472b73ebdad38fed60917f089ab119a0435e7e.tar
tangerine-wallet-browser-6c472b73ebdad38fed60917f089ab119a0435e7e.tar.gz
tangerine-wallet-browser-6c472b73ebdad38fed60917f089ab119a0435e7e.tar.bz2
tangerine-wallet-browser-6c472b73ebdad38fed60917f089ab119a0435e7e.tar.lz
tangerine-wallet-browser-6c472b73ebdad38fed60917f089ab119a0435e7e.tar.xz
tangerine-wallet-browser-6c472b73ebdad38fed60917f089ab119a0435e7e.tar.zst
tangerine-wallet-browser-6c472b73ebdad38fed60917f089ab119a0435e7e.zip
Merge pull request #3332 from danjm/MM-onboarding-flow-style-improvements
[NewUI] Onboarding flow style improvements
-rw-r--r--mascara/src/app/first-time/create-password-screen.js1
-rw-r--r--mascara/src/app/first-time/index.css9
-rw-r--r--ui/app/app.js8
-rw-r--r--ui/app/css/itcss/components/header.scss15
-rw-r--r--ui/app/css/itcss/components/newui-sections.scss24
5 files changed, 54 insertions, 3 deletions
diff --git a/mascara/src/app/first-time/create-password-screen.js b/mascara/src/app/first-time/create-password-screen.js
index d1a2ec70f..450d6a479 100644
--- a/mascara/src/app/first-time/create-password-screen.js
+++ b/mascara/src/app/first-time/create-password-screen.js
@@ -59,7 +59,6 @@ class CreatePasswordScreen extends Component {
? <LoadingScreen loadingMessage="Creating your new account" />
: (
<div>
- <h2 className="alpha-warning">Warning: This is Experimental software and is a Developer BETA</h2>
<div className="first-view-main">
<div className="mascara-info">
<Mascot
diff --git a/mascara/src/app/first-time/index.css b/mascara/src/app/first-time/index.css
index 4314efbe6..109946e1d 100644
--- a/mascara/src/app/first-time/index.css
+++ b/mascara/src/app/first-time/index.css
@@ -4,13 +4,15 @@
width: 100vw;
background-color: #FFF;
overflow: auto;
+ display: flex;
+ justify-content: center;
}
.alpha-warning {
background: #f7861c;
color: #fff;
line-height: 2em;
- padding-left: 2em;
+ padding-left: 10vw;
}
.first-view-main {
@@ -23,7 +25,6 @@
display: flex;
flex-flow: column;
margin-top: 70px;
- margin-right: 10vw;
width: 35vw;
max-width: 550px;
}
@@ -48,6 +49,10 @@
max-width: 35rem;
}
+.create-password {
+ margin: 67px 0 50px 0px;
+}
+
.import-account {
max-width: initial;
}
diff --git a/ui/app/app.js b/ui/app/app.js
index 58e38a077..5d37b9bdf 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -239,6 +239,9 @@ App.prototype.renderAppBar = function () {
showNetworkDropdown,
hideNetworkDropdown,
currentView,
+ isInitialized,
+ betaUI,
+ isPopup,
} = this.props
if (window.METAMASK_UI_TYPE === 'notification') {
@@ -285,6 +288,8 @@ App.prototype.renderAppBar = function () {
// metamask name
h('h1', 'MetaMask'),
+ h('div.beta-label', 'BETA'),
+
]),
h('div.header__right-actions', [
@@ -317,6 +322,9 @@ App.prototype.renderAppBar = function () {
]),
]),
+ !isInitialized && !isPopup && betaUI && h('h2.alpha-warning',
+ 'Please be aware that this version is still under development'),
+
])
)
}
diff --git a/ui/app/css/itcss/components/header.scss b/ui/app/css/itcss/components/header.scss
index ac2cecf7e..d91ab3c48 100644
--- a/ui/app/css/itcss/components/header.scss
+++ b/ui/app/css/itcss/components/header.scss
@@ -76,6 +76,21 @@
}
}
+.beta-label {
+ font-family: Roboto;
+ text-transform: uppercase;
+ font-weight: 500;
+ font-size: 0.8rem;
+ padding-left: 9px;
+ color: $buttercup;
+ align-self: flex-start;
+ margin-top: 10px;
+
+ @media screen and (max-width: 575px) {
+ display: none;
+ }
+}
+
h2.page-subtitle {
text-transform: uppercase;
color: #aeaeae;
diff --git a/ui/app/css/itcss/components/newui-sections.scss b/ui/app/css/itcss/components/newui-sections.scss
index 73faebe8b..ecf5e1036 100644
--- a/ui/app/css/itcss/components/newui-sections.scss
+++ b/ui/app/css/itcss/components/newui-sections.scss
@@ -290,3 +290,27 @@ $wallet-view-bg: $alabaster;
.token-balance__amount {
padding-right: 6px;
}
+
+
+// first time
+.first-view-main {
+ display: flex;
+ flex-direction: row-reverse;
+ justify-content: space-between;
+
+ @media screen and (max-width: 575px) {
+ height: 100%;
+ }
+
+ @media screen and (min-width: 576px) {
+ width: 85vw;
+ }
+
+ @media screen and (min-width: 769px) {
+ width: 80vw;
+ }
+
+ @media screen and (min-width: 1281px) {
+ width: 62vw;
+ }
+} \ No newline at end of file