@@ -4,6 +4,10 @@ import { Router } from 'react-router'
44import User from 'services/User' ;
55import ErrorComponent from 'components/Error/Error' ;
66
7+ const blackStyle = {
8+ color : '#000'
9+ } ;
10+
711class Login extends React . Component
812{
913 constructor ( props , context ) {
@@ -40,25 +44,27 @@ class Login extends React.Component
4044 < div className = "container" >
4145 < div className = "columns is-vcentered" >
4246 < div className = "column is-4 is-offset-4" >
43- < h1 className = "title has-text-centered" >
47+ < p className = "title has-text-centered" style = { blackStyle } >
4448 IClient
45- </ h1 >
49+ </ p >
4650 < form onSubmit = { this . handleSubmit } >
4751 < div className = "box" >
4852 < ErrorComponent error = { this . state . error } />
49- < label className = "label" > Username</ label >
53+ < label className = "label" htmlFor = 'username' > Username</ label >
5054 < p className = "control has-icon" >
5155 < input
56+ id = 'username'
5257 ref = 'username'
5358 className = "input"
5459 type = "text"
5560 placeholder = "Ex: jsmith"
5661 />
5762 < i className = "fa fa-user" />
5863 </ p >
59- < label className = "label" > Password</ label >
64+ < label className = "label" htmlFor = 'password' > Password</ label >
6065 < p className = "control has-icon" >
6166 < input
67+ id = 'password'
6268 ref = 'password'
6369 className = "input"
6470 type = "password"
@@ -68,7 +74,7 @@ class Login extends React.Component
6874 </ p >
6975 < hr />
7076 < p className = "control" >
71- < button className = "button is-primary" > Login</ button >
77+ < button className = "button is-primary" style = { blackStyle } > Login</ button >
7278 </ p >
7379 </ div >
7480 </ form >
0 commit comments