diff --git a/monkey/monkey_island/cc/ui/src/components/pages/LoginPage.js b/monkey/monkey_island/cc/ui/src/components/pages/LoginPage.js index c37f5d92a..bd045d271 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/LoginPage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/LoginPage.js @@ -1,7 +1,10 @@ import React from 'react'; -import {Col} from 'react-bootstrap'; +import {Button, Col, Container, Form, Row} from 'react-bootstrap'; import AuthService from '../../services/AuthService'; +import Particles from "react-particles-js"; +import {particleParams} from "../../styles/particle-component/RegistrationPageParams"; +import monkeyDetective from "../../images/militant-monkey.svg"; class LoginPageComponent extends React.Component { login = () => { @@ -41,7 +44,7 @@ class LoginPageComponent extends React.Component { this.auth.needsRegistration() .then(result => { - if(result){ + if (result) { this.redirectToRegistration() } }) @@ -55,39 +58,38 @@ class LoginPageComponent extends React.Component { render() { return ( - -

Login

-
-
-
- Login -
-
-
- this.updateUsername(evt)}/> - this.updatePassword(evt)}/> - - { - this.state.failed ? -
Login failed. Bad credentials.
- : - '' - } -
-
-
-
- - ); + + + + + + +

Login

+
+
+ this.updateUsername(evt)} type='text' placeholder='Username'/> + this.updatePassword(evt)} type='password' placeholder='Password'/> + + { + this.state.failed ? +
Login failed. Bad credentials.
+ : + '' + } + +
+ + + infection monkey + +
+ +
+
) } } diff --git a/monkey/monkey_island/cc/ui/src/components/pages/RegisterPage.js b/monkey/monkey_island/cc/ui/src/components/pages/RegisterPage.js index b74846081..8b6738433 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/RegisterPage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/RegisterPage.js @@ -3,7 +3,6 @@ import {Row, Col, Container, Form, Button} from 'react-bootstrap'; import Particles from 'react-particles-js'; import AuthService from '../../services/AuthService'; -import '../../styles/RegisterPage.scss'; import {particleParams} from '../../styles/particle-component/RegistrationPageParams'; import monkeyDetective from '../../images/detective-monkey.svg'; @@ -80,19 +79,20 @@ class RegisterPageComponent extends React.Component { render() { return ( - + - +

First time?

Let's secure your island!

-
+ this.updateUsername(evt)} type='text' placeholder='Username'/> this.updatePassword(evt)} type='password' placeholder='Password'/> -