parent
b8dec68271
commit
91c890041c
@ -0,0 +1,47 @@ |
||||
.welcome-screen { |
||||
display: flex; |
||||
flex-flow: column; |
||||
justify-content: center; |
||||
align-items: center; |
||||
font-family: Roboto; |
||||
font-weight: 400; |
||||
width: 100%; |
||||
height: 100%; |
||||
padding: 70px 0; |
||||
background: $white; |
||||
|
||||
&__info { |
||||
display: flex; |
||||
flex-flow: column; |
||||
width: 100%; |
||||
height: 100%; |
||||
align-items: center; |
||||
|
||||
&__header { |
||||
font-size: 1.65em; |
||||
margin-bottom: 14px; |
||||
} |
||||
|
||||
&__copy { |
||||
font-size: 1em; |
||||
width: 400px; |
||||
max-width: 90vw; |
||||
text-align: center; |
||||
} |
||||
} |
||||
|
||||
&__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,57 @@ |
||||
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 () { |
||||
super() |
||||
this.animationEventEmitter = new EventEmitter() |
||||
} |
||||
|
||||
initiateAccountCreation = () => { |
||||
this.props.closeWelcomeScreen() |
||||
} |
||||
|
||||
render () { |
||||
// t
|
||||
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