Merge pull request #3468 from danjm/i3033-responsive-newui-onboarding
Make new-ui create password screen responsive.feature/default_network_editable
commit
6a17a0cdf1
@ -0,0 +1,59 @@ |
||||
.welcome-screen { |
||||
display: flex; |
||||
flex-flow: column; |
||||
justify-content: center; |
||||
align-items: center; |
||||
font-family: Roboto; |
||||
font-weight: 400; |
||||
width: 100%; |
||||
flex: 1 0 auto; |
||||
padding: 70px 0; |
||||
background: $white; |
||||
|
||||
@media screen and (max-width: 575px) { |
||||
padding: 0; |
||||
} |
||||
|
||||
&__info { |
||||
display: flex; |
||||
flex-flow: column; |
||||
width: 100%; |
||||
height: 100%; |
||||
align-items: center; |
||||
|
||||
&__header { |
||||
font-size: 1.65em; |
||||
margin-bottom: 14px; |
||||
|
||||
@media screen and (max-width: 575px) { |
||||
font-size: 1.5em; |
||||
} |
||||
} |
||||
|
||||
&__copy { |
||||
font-size: 1em; |
||||
width: 400px; |
||||
max-width: 90vw; |
||||
text-align: center; |
||||
|
||||
@media screen and (max-width: 575px) { |
||||
font-size: 0.9em; |
||||
} |
||||
} |
||||
} |
||||
|
||||
&__button { |
||||
height: 54px; |
||||
width: 198px; |
||||
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.14); |
||||
color: #FFFFFF; |
||||
font-size: 20px; |
||||
font-weight: 500; |
||||
line-height: 26px; |
||||
text-align: center; |
||||
text-transform: uppercase; |
||||
margin: 35px 0 14px; |
||||
transition: 200ms ease-in-out; |
||||
background-color: rgba(247, 134, 28, 0.9); |
||||
} |
||||
} |
@ -0,0 +1,56 @@ |
||||
import EventEmitter from 'events' |
||||
import h from 'react-hyperscript' |
||||
import { Component } from 'react' |
||||
import PropTypes from 'prop-types' |
||||
import {connect} from 'react-redux' |
||||
import {closeWelcomeScreen} from './actions' |
||||
import Mascot from './components/mascot' |
||||
|
||||
class WelcomeScreen extends Component { |
||||
static propTypes = { |
||||
closeWelcomeScreen: PropTypes.func.isRequired, |
||||
} |
||||
|
||||
constructor(props) { |
||||
super(props) |
||||
this.animationEventEmitter = new EventEmitter() |
||||
} |
||||
|
||||
initiateAccountCreation = () => { |
||||
this.props.closeWelcomeScreen() |
||||
} |
||||
|
||||
render () { |
||||
return h('div.welcome-screen', [ |
||||
|
||||
h('div.welcome-screen__info', [ |
||||
|
||||
h(Mascot, { |
||||
animationEventEmitter: this.animationEventEmitter, |
||||
width: '225', |
||||
height: '225', |
||||
}), |
||||
|
||||
h('div.welcome-screen__info__header', 'Welcome to MetaMask Beta'), |
||||
|
||||
h('div.welcome-screen__info__copy', 'MetaMask is a secure identity vault for Ethereum.'), |
||||
|
||||
h('div.welcome-screen__info__copy', `It allows you to hold ether & tokens,
|
||||
and serves as your bridge to decentralized applications.`),
|
||||
|
||||
h('button.welcome-screen__button', { |
||||
onClick: this.initiateAccountCreation, |
||||
}, 'Continue'), |
||||
|
||||
]), |
||||
|
||||
]) |
||||
} |
||||
} |
||||
|
||||
export default connect( |
||||
null, |
||||
dispatch => ({ |
||||
closeWelcomeScreen: () => dispatch(closeWelcomeScreen()), |
||||
}) |
||||
)(WelcomeScreen) |
Loading…
Reference in new issue