diff --git a/src/App.js b/src/App.js index 25c8723..837dfb3 100644 --- a/src/App.js +++ b/src/App.js @@ -8,6 +8,7 @@ import { BrowserRouter as Router, Route, Switch, Redirect } from 'react-router-d import PageNotFound from './containers/PageNotFound'; import ViewRequest from './containers/ViewTicket/ViewTicket'; import { Container } from 'reactstrap'; +import Login from './containers/Admin/Login'; function App() { return ( @@ -20,6 +21,7 @@ function App() { } /> + diff --git a/src/containers/Admin/Login.js b/src/containers/Admin/Login.js new file mode 100644 index 0000000..5d93e1f --- /dev/null +++ b/src/containers/Admin/Login.js @@ -0,0 +1,84 @@ +import React, { Component } from 'react'; +import { + Row, + Col, + Form, + FormGroup, + Label, + Input, + Button +} from 'reactstrap'; + +import Card from '../../components/Card'; + +class Login extends Component { + constructor(props) { + super(props); + + this.state = { + email: '', + password: '', + err: '' + }; + + this.handleInputChange = this.handleInputChange.bind(this); + this.handleSubmit = this.handleSubmit.bind(this); + } + + componentDidMount() { + + } + + handleInputChange(event) { + const target = event.target; + const name = target.name; + const value = target.type === 'checkbox' ? target.checked : target.value; + + this.setState({ + [name]: value + }); + } + + handleSubmit(event) { + event.preventDefault(); + } + + render() { + + if (this.state.err) { + return ( + +

{this.state.err}

+
+ ); + } + + return ( + + + +
+ + + + + + + + + + + +
+ + +
+
+ ); + } +} + +export default Login; \ No newline at end of file