@@ -6,35 +6,37 @@ import femaleOctocat from 'Images/femalecodertocat.png';
6
6
import { BACKEND_URL } from 'Constants' ;
7
7
import { jsx } from '@emotion/core' ;
8
8
import { Link } from 'react-router-dom' ;
9
+ import { Field } from 'redux-form' ;
10
+ import { TextField } from 'Components/fields/' ;
9
11
10
12
class JoinForm extends React . Component {
11
13
render ( ) {
12
14
return (
13
15
< section css = { { backgroundImage : `url(${ blueBg } )` } } >
14
16
< div className = "container inner-top-md inner-bottom-sm" >
15
17
< div className = "row" >
16
- < div className = "col-md-5 inner-right inner-bottom-xs" >
18
+ < div className = "col-md-6 inner-right inner-bottom-xs" >
17
19
< header >
18
- < h1 > Join </ h1 >
19
- < p > You'll use your email to log in, your username is used when displaying submissions and comments. </ p >
20
- < p >
21
- < StyledLink to = { ` ${ BACKEND_URL } /api/auth/github` } css = { { fontSize : '18px' , padding : '15px 35px 17px' , marginTop : '35px' } } >
22
- Submit
23
- </ StyledLink >
24
- </ p >
25
- < p > Have an account?
26
- < Link to = { ` ${ BACKEND_URL } /api/auth/github` } >
27
- Log in
28
- </ Link >
29
- </ p >
30
- < p >
31
- < Link to = { ` ${ BACKEND_URL } /api/auth/github` } >
32
- Forgot Password?
33
- </ Link >
34
- </ p >
20
+ < form css = { { background : 'white' , borderRadius : '8px' , padding : '18px' , margin : '0 10px' } } >
21
+ < h1 > Create an account </ h1 >
22
+ < p > You'll use your email to log in, your username is used when displaying submissions and comments. </ p >
23
+ < Field name = "username" component = { TextField } type = "text" required placeholder = "Username" / >
24
+ < Field name = "email" component = { TextField } type = "email" required placeholder = "Email" />
25
+ < Field name = "password" component = { TextField } type = "password" required placeholder = "Password" / >
26
+ < p >
27
+ < StyledLink to = { ` ${ BACKEND_URL } /api/auth/github` } css = { { fontSize : '18px' , padding : '15px 35px 17px' } } >
28
+ Submit
29
+ </ StyledLink >
30
+ </ p >
31
+ < p > Have an account?
32
+ < Link to = { ` ${ BACKEND_URL } /api/auth/github` } >
33
+ Log in
34
+ </ Link >
35
+ </ p >
36
+ </ form >
35
37
</ header >
36
38
</ div >
37
- < div className = "col-md-7 " >
39
+ < div className = "col-md-6 " >
38
40
< div >
39
41
< img src = { femaleOctocat } alt = "Female coder octocat by jeejkang" />
40
42
< p className = "text-center" >
0 commit comments