@@ -4,7 +4,8 @@ import styled from '@emotion/styled';
4
4
import { ReactComponent as LogoImage } from 'assets/images/logo.svg' ;
5
5
import { usePrefixedTranslation } from 'hooks' ;
6
6
import { useStore } from 'store' ;
7
- import { Background , Button , HeaderOne , Input } from 'components/base' ;
7
+ import { Background , HeaderOne , Input } from 'components/base' ;
8
+ import PurpleButton from 'components/connect/PurpleButton' ;
8
9
9
10
const Styled = {
10
11
Wrapper : styled . div `
@@ -16,40 +17,56 @@ const Styled = {
16
17
height: 100%;
17
18
` ,
18
19
Logo : styled ( LogoImage ) `
19
- color: ${ props => props . theme . colors . offWhite } ;
20
- width: 80px ;
21
- height: 156px ;
22
- margin-bottom: 30px ;
20
+ color: ${ props => props . theme . colors . white } ;
21
+ width: 60px ;
22
+ height: 80px ;
23
+ margin-bottom: 32px ;
23
24
` ,
24
25
Title : styled ( HeaderOne ) `
25
- font-size: 75px;
26
- margin-bottom: 30px;
26
+ color: ${ props => props . theme . colors . white } ;
27
+ font-size: 48px;
28
+ line-height: 48px;
29
+ margin-bottom: 0px;
27
30
text-transform: uppercase;
28
31
` ,
29
32
Subtitle : styled . div `
33
+ color: ${ props => props . theme . colors . gray } ;
30
34
width: 100%;
31
- max-width: 500px;
32
- margin-bottom: 80px;
35
+ max-width: 400px;
36
+ margin-top: 24px;
37
+ margin-bottom: 24px;
33
38
text-align: center;
34
39
` ,
35
40
Form : styled . form `
36
41
display: flex;
37
42
flex-direction: column;
38
43
align-items: center;
39
44
` ,
45
+ Input : styled ( Input ) `
46
+ font-size: ${ props => props . theme . sizes . l } ;
47
+ width: 100%;
48
+ color: ${ props => props . theme . colors . white } ;
49
+ padding: 8px 0px;
50
+ border-width: 0;
51
+ border-bottom: 2px solid ${ props => props . theme . colors . gray } ;
52
+ min-width: 360px;
53
+ outline: none;
54
+ ` ,
40
55
Label : styled . label `
41
56
margin: 10px 0 80px;
42
57
` ,
43
58
ErrMessage : styled . div `
44
59
width: 100%;
45
- margin: 0 0 80px;
46
- padding: 5px 0;
47
- background-color: ${ props => props . theme . colors . pink } ;
48
- color: ${ props => props . theme . colors . offWhite } ;
49
- text-align: center;
60
+ padding: 8px 0;
61
+ color: ${ props => props . theme . colors . lightningRed } ;
62
+ text-align: left;
50
63
` ,
51
- Submit : styled ( Button ) `
52
- background-color: transparent;
64
+ PurpleButton : styled ( PurpleButton ) `
65
+ font-size: ${ props => props . theme . sizes . s } ;
66
+ margin-top: 32px;
67
+ line-height: 24px;
68
+ padding: 12px 24px;
69
+ width: 100%;
53
70
` ,
54
71
} ;
55
72
@@ -77,7 +94,16 @@ const AuthPage: React.FC = () => {
77
94
// a UI flicker while validating credentials stored in session storage
78
95
if ( ! store . initialized ) return null ;
79
96
80
- const { Wrapper, Logo, Title, Subtitle, Form, Label, ErrMessage, Submit } = Styled ;
97
+ const {
98
+ Wrapper,
99
+ Logo,
100
+ Title,
101
+ Subtitle,
102
+ Form,
103
+ Input,
104
+ ErrMessage,
105
+ PurpleButton,
106
+ } = Styled ;
81
107
return (
82
108
< Background gradient >
83
109
< Wrapper >
@@ -92,13 +118,10 @@ const AuthPage: React.FC = () => {
92
118
autoFocus
93
119
value = { pass }
94
120
onChange = { handleChange }
121
+ placeholder = "Password"
95
122
/>
96
- { error ? (
97
- < ErrMessage > { error } </ ErrMessage >
98
- ) : (
99
- < Label htmlFor = "auth" > { l ( 'passLabel' ) } </ Label >
100
- ) }
101
- < Submit > { l ( 'submitBtn' ) } </ Submit >
123
+ { error && < ErrMessage > { error } </ ErrMessage > }
124
+ < PurpleButton > { l ( 'loginBtn' ) } </ PurpleButton >
102
125
</ Form >
103
126
</ Wrapper >
104
127
</ Background >
0 commit comments