Skip to content

Commit 6c472b7

Browse files
authored
Merge pull request #3332 from danjm/MM-onboarding-flow-style-improvements
[NewUI] Onboarding flow style improvements
2 parents 8f5817c + baab991 commit 6c472b7

File tree

5 files changed

+54
-3
lines changed

5 files changed

+54
-3
lines changed

mascara/src/app/first-time/create-password-screen.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class CreatePasswordScreen extends Component {
5959
? <LoadingScreen loadingMessage="Creating your new account" />
6060
: (
6161
<div>
62-
<h2 className="alpha-warning">Warning: This is Experimental software and is a Developer BETA</h2>
6362
<div className="first-view-main">
6463
<div className="mascara-info">
6564
<Mascot

mascara/src/app/first-time/index.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
width: 100vw;
55
background-color: #FFF;
66
overflow: auto;
7+
display: flex;
8+
justify-content: center;
79
}
810

911
.alpha-warning {
1012
background: #f7861c;
1113
color: #fff;
1214
line-height: 2em;
13-
padding-left: 2em;
15+
padding-left: 10vw;
1416
}
1517

1618
.first-view-main {
@@ -23,7 +25,6 @@
2325
display: flex;
2426
flex-flow: column;
2527
margin-top: 70px;
26-
margin-right: 10vw;
2728
width: 35vw;
2829
max-width: 550px;
2930
}
@@ -48,6 +49,10 @@
4849
max-width: 35rem;
4950
}
5051

52+
.create-password {
53+
margin: 67px 0 50px 0px;
54+
}
55+
5156
.import-account {
5257
max-width: initial;
5358
}

ui/app/app.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ App.prototype.renderAppBar = function () {
239239
showNetworkDropdown,
240240
hideNetworkDropdown,
241241
currentView,
242+
isInitialized,
243+
betaUI,
244+
isPopup,
242245
} = this.props
243246

244247
if (window.METAMASK_UI_TYPE === 'notification') {
@@ -285,6 +288,8 @@ App.prototype.renderAppBar = function () {
285288
// metamask name
286289
h('h1', 'MetaMask'),
287290

291+
h('div.beta-label', 'BETA'),
292+
288293
]),
289294

290295
h('div.header__right-actions', [
@@ -317,6 +322,9 @@ App.prototype.renderAppBar = function () {
317322
]),
318323
]),
319324

325+
!isInitialized && !isPopup && betaUI && h('h2.alpha-warning',
326+
'Please be aware that this version is still under development'),
327+
320328
])
321329
)
322330
}

ui/app/css/itcss/components/header.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,21 @@
7676
}
7777
}
7878

79+
.beta-label {
80+
font-family: Roboto;
81+
text-transform: uppercase;
82+
font-weight: 500;
83+
font-size: 0.8rem;
84+
padding-left: 9px;
85+
color: $buttercup;
86+
align-self: flex-start;
87+
margin-top: 10px;
88+
89+
@media screen and (max-width: 575px) {
90+
display: none;
91+
}
92+
}
93+
7994
h2.page-subtitle {
8095
text-transform: uppercase;
8196
color: #aeaeae;

ui/app/css/itcss/components/newui-sections.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,3 +290,27 @@ $wallet-view-bg: $alabaster;
290290
.token-balance__amount {
291291
padding-right: 6px;
292292
}
293+
294+
295+
// first time
296+
.first-view-main {
297+
display: flex;
298+
flex-direction: row-reverse;
299+
justify-content: space-between;
300+
301+
@media screen and (max-width: 575px) {
302+
height: 100%;
303+
}
304+
305+
@media screen and (min-width: 576px) {
306+
width: 85vw;
307+
}
308+
309+
@media screen and (min-width: 769px) {
310+
width: 80vw;
311+
}
312+
313+
@media screen and (min-width: 1281px) {
314+
width: 62vw;
315+
}
316+
}

0 commit comments

Comments
 (0)