diff options
author | Jacky Chan <jchan@uber.com> | 2017-08-18 19:51:52 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-21 12:51:37 +0800 |
commit | 537f8a6ce1d08ec2227b3bd671ec818186cab12e (patch) | |
tree | a29a9fb056619eb430d465e217f8063196922a93 /mascara | |
parent | 0264ecaad77330b151f4bf4248b66f4659a67cce (diff) | |
download | tangerine-wallet-browser-537f8a6ce1d08ec2227b3bd671ec818186cab12e.tar tangerine-wallet-browser-537f8a6ce1d08ec2227b3bd671ec818186cab12e.tar.gz tangerine-wallet-browser-537f8a6ce1d08ec2227b3bd671ec818186cab12e.tar.bz2 tangerine-wallet-browser-537f8a6ce1d08ec2227b3bd671ec818186cab12e.tar.lz tangerine-wallet-browser-537f8a6ce1d08ec2227b3bd671ec818186cab12e.tar.xz tangerine-wallet-browser-537f8a6ce1d08ec2227b3bd671ec818186cab12e.tar.zst tangerine-wallet-browser-537f8a6ce1d08ec2227b3bd671ec818186cab12e.zip |
CreatePasswordScreen
Diffstat (limited to 'mascara')
-rw-r--r-- | mascara/src/app/first-time/create-password-screen.js | 36 | ||||
-rw-r--r-- | mascara/src/app/first-time/index.css | 65 | ||||
-rw-r--r-- | mascara/src/app/first-time/index.js | 6 |
3 files changed, 104 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 afb1ad8f6..1313de561 100644 --- a/mascara/src/app/first-time/create-password-screen.js +++ b/mascara/src/app/first-time/create-password-screen.js @@ -2,10 +2,42 @@ import React, {Component, PropTypes} from 'react' export default class CreatePasswordScreen extends Component { + state = { + password: '', + confirmPassword: '' + } + render() { return ( - <div> - + <div className="create-password"> + <div className="create-password__title"> + Create Password + </div> + <input + className="first-time-flow__input" + type="password" + placeholder="New Password (min 8 characters)" + onChange={e => this.setState({password: e.target.value})} + /> + <input + className="first-time-flow__input create-password__confirm-input" + type="password" + placeholder="Confirm Password" + onChange={e => this.setState({confirmPassword: e.target.value})} + /> + <button + className="first-time-flow__button" + > + Create + </button> + <a + href="" + className="first-time-flow__link" + onClick={e => e.preventDefault()} + > + Import an account + </a> + <div /> </div> ) } diff --git a/mascara/src/app/first-time/index.css b/mascara/src/app/first-time/index.css new file mode 100644 index 000000000..3d4f17dbb --- /dev/null +++ b/mascara/src/app/first-time/index.css @@ -0,0 +1,65 @@ +.first-time-flow { + height: 100vh; + width: 100vw; + background-color: #FFF; +} + +.create-password { + display: flex; + flex-flow: column nowrap; + margin: 67px 0 0 146px; + max-width: 350px; +} + +.create-password__title { + height: 102px; + width: 280px; + color: #1B344D; + font-size: 40px; + font-weight: 500; + line-height: 51px; + margin-bottom: 24px; +} + +.create-password__confirm-input { + margin-top: 15px; +} + +.first-time-flow__input { + width: 350px; + font-size: 18px; + line-height: 24px; + padding: 15px 28px; + border: 1px solid #CDCDCD; + background-color: #FFFFFF; +} + +.first-time-flow__input::placeholder { + color: #9B9B9B; + font-weight: 200; +} + +.first-time-flow__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; +} + +button.first-time-flow__button:hover { + transform: scale(1); + background-color: rgba(247, 134, 28, 0.9); +} + +.first-time-flow__link { + color: #1B344D; + font-size: 18px; + line-height: 23px; +}
\ No newline at end of file diff --git a/mascara/src/app/first-time/index.js b/mascara/src/app/first-time/index.js index a2cb8d71c..1a9a00eec 100644 --- a/mascara/src/app/first-time/index.js +++ b/mascara/src/app/first-time/index.js @@ -48,7 +48,11 @@ export default class FirstTimeFlow extends Component { } render() { - return <div>{this.renderScreen()}</div> + return ( + <div className="first-time-flow"> + {this.renderScreen()} + </div> + ) } } |