|
|
@@ -84,8 +84,8 @@ class LoginInput extends Component {
|
|
|
|
|
|
return (
|
|
|
<div>
|
|
|
- <span style={{marginRight: 20}} className='login-title'><b><FormattedMessage id="register"/>:</b></span>
|
|
|
- <div style={{marginTop: 10}}>
|
|
|
+ <span style={{marginRight: 20,color: '#1385e5'}} className='login-title'><b><FormattedMessage id="register"/>:</b></span>
|
|
|
+ <div style={{marginTop: 15}}>
|
|
|
<span className='login-item'><FormattedMessage id="username"/>: </span>
|
|
|
<Input
|
|
|
placeholder=""
|
|
|
@@ -103,7 +103,7 @@ class LoginInput extends Component {
|
|
|
''
|
|
|
}
|
|
|
</div>
|
|
|
- <div style={{marginTop: 10}}>
|
|
|
+ <div style={{marginTop: 15}}>
|
|
|
<span className='login-item'><FormattedMessage id="password"/>: </span>
|
|
|
<Input
|
|
|
placeholder=""
|
|
|
@@ -114,7 +114,7 @@ class LoginInput extends Component {
|
|
|
style={{width: 200}}
|
|
|
/>
|
|
|
</div>
|
|
|
- <div style={{marginTop: 10}}>
|
|
|
+ <div style={{marginTop: 15}}>
|
|
|
<span className='login-item'><FormattedMessage id="nickname"/>: </span>
|
|
|
<Input
|
|
|
placeholder=""
|
|
|
@@ -125,7 +125,9 @@ class LoginInput extends Component {
|
|
|
style={{width: 200}}
|
|
|
/>
|
|
|
</div>
|
|
|
- <Button type='primary' onClick={() => {
|
|
|
+ <Button type='primary'
|
|
|
+ style={{margin:'10px 0'}}
|
|
|
+ onClick={() => {
|
|
|
request(graphqlUrl, SEARCH_USER, {username: this.state.register_username}).then(data => {
|
|
|
if (data.user_by_props.length === 0) {
|
|
|
let id = idGen('user');
|
|
|
@@ -226,7 +228,7 @@ class LoginInput extends Component {
|
|
|
''
|
|
|
:
|
|
|
<div>
|
|
|
- <span style={{marginRight: 20}} className='login-title'><b><FormattedMessage id="login"/>:</b></span>
|
|
|
+ <span style={{marginRight: 20,color: '#1385e5'}} className='login-title'><b><FormattedMessage id="login"/>:</b></span>
|
|
|
<div style={{marginTop: 10}}>
|
|
|
<span className='login-item'><FormattedMessage id="username"/>: </span>
|
|
|
<Input
|
|
|
@@ -249,7 +251,9 @@ class LoginInput extends Component {
|
|
|
style={{width: 200}}
|
|
|
/>
|
|
|
</div>
|
|
|
- <Button type='primary' onClick={() => {
|
|
|
+ <Button type='primary'
|
|
|
+ style={{margin:'10px 0'}}
|
|
|
+ onClick={() => {
|
|
|
this.setState({
|
|
|
hasLogin: true
|
|
|
})
|
|
|
@@ -287,7 +291,9 @@ class LoginInput extends Component {
|
|
|
this.state.loginStatus === 'failed' ?
|
|
|
<div>
|
|
|
<span style={{marginRight: '10px'}}><FormattedMessage id="login failed"/></span>
|
|
|
- <Button onClick={() => {
|
|
|
+ <Button
|
|
|
+ style={{margin:'10px 0'}}
|
|
|
+ onClick={() => {
|
|
|
this.setState({
|
|
|
hasLogin: false,
|
|
|
loginStatus: '',
|