@@ -12,36 +12,42 @@ import { BasicInput } from 'Components/fields/';
12
12
class JoinForm extends React . Component {
13
13
render ( ) {
14
14
return (
15
- < section css = { { backgroundImage : `url(${ blueBg } )` } } >
16
- < div className = "container inner-top-md inner-bottom-sm" >
17
- < div className = "row" >
18
- < div className = "col-md-6 inner-right inner-bottom-xs" >
19
- < header css = { { p : { fontSize : 16 } } } >
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 = { BasicInput } type = "text" required placeholder = "Username" />
24
- < Field name = "email" component = { BasicInput } type = "email" required placeholder = "Email" />
25
- < Field name = "password" component = { BasicInput } 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 >
37
- </ header >
38
- </ div >
39
- < div className = "col-md-6" >
40
- < div css = { { margin : '10x 20px' , textAlign : 'center' , } } >
41
- < img src = { logoSquared } alt = "codecorgi logo" ariaIgnore />
42
- </ div >
43
- </ div >
44
- </ div >
15
+ < section css = { { backgroundImage : `url(${ blueBg } )` ,
16
+ backgroundSize : 'cover' ,
17
+ padding : '40px 20px 80px' ,
18
+ display : 'flex' ,
19
+ justifyContent : 'center' ,
20
+ alignItems : 'center' ,
21
+ '> div' : { padding : '10px 20px' , flexGrow : 1 , maxWidth : 450 , } ,
22
+ '@media (max-width: 860px)' : {
23
+ flexDirection : 'column' ,
24
+ paddingBottom : 40 ,
25
+ '> div' : { maxWidth : '90%' } ,
26
+ }
27
+ } } >
28
+ < div css = { { background : 'white' , borderRadius : '6px' , padding : '18px' , margin : '0 20px' } } >
29
+ < header css = { { p : { fontSize : 16 } } } >
30
+ < form css = { { } } >
31
+ < h1 > Create an account</ h1 >
32
+ < p > You'll use your email to log in, your username is used when displaying submissions and comments.</ p >
33
+ < Field name = "username" component = { BasicInput } type = "text" required placeholder = "Username" />
34
+ < Field name = "email" component = { BasicInput } type = "email" required placeholder = "Email" />
35
+ < Field name = "password" component = { BasicInput } type = "password" required placeholder = "Password" />
36
+ < p >
37
+ < StyledLink to = { `${ BACKEND_URL } /api/auth/github` } css = { { fontSize : '18px' , padding : '15px 35px 17px' } } >
38
+ Submit
39
+ </ StyledLink >
40
+ </ p >
41
+ < p > Have an account?
42
+ < Link to = { `${ BACKEND_URL } /api/auth/github` } >
43
+ Log in
44
+ </ Link >
45
+ </ p >
46
+ </ form >
47
+ </ header >
48
+ </ div >
49
+ < div css = { { } } >
50
+ < img src = { logoSquared } alt = "codecorgi logo" ariaIgnore />
45
51
</ div >
46
52
</ section >
47
53
) ;
0 commit comments