diff --git a/src/router.js b/src/router.js index 05cf900..84aa6f7 100644 --- a/src/router.js +++ b/src/router.js @@ -20,6 +20,7 @@ import { BrowserRouter, Route, Switch } from 'react-router-dom'; import App from './app'; import Login from './user/login'; +import LoginSelect from './user/login-select'; import Logout from './user/logout'; import Home from './common/home'; import Scenarios from './scenario/scenarios'; @@ -34,7 +35,8 @@ class Root extends React.Component { return ( - + + diff --git a/src/styles/app.css b/src/styles/app.css index a2d887d..5ca9250 100644 --- a/src/styles/app.css +++ b/src/styles/app.css @@ -219,6 +219,26 @@ body { background-color: white; } +/** + * Login select + */ + .login-select { + position: sticky; + width: 300px; + height: 200px; + top: 50%; + left: 50%; + margin-top: 50px; + margin-bottom: 100px; + transform: translate(-50%); + + + padding: 20px 20px; + + background-color: #a8c7cf; + box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), + 0 9px 18px 0 rgba(0, 0, 0, 0.1); +} /** * Login form diff --git a/src/user/login-select.js b/src/user/login-select.js new file mode 100644 index 0000000..d8f6178 --- /dev/null +++ b/src/user/login-select.js @@ -0,0 +1,72 @@ +/** + * This file is part of VILLASweb. + * + * VILLASweb is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * VILLASweb is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with VILLASweb. If not, see . + ******************************************************************************/ + +import React, { Component } from 'react'; +import { Form, Button, FormGroup, FormControl, FormLabel, Col } from 'react-bootstrap'; +//import RecoverPassword from './recover-password' +//import AppDispatcher from '../common/app-dispatcher'; +import Header from '../common/header'; +import Footer from '../common/footer'; +import { withRouter } from 'react-router-dom'; + + + +class LoginSelect extends Component { + constructor(props) { + super(props); + + + + this.state = { + standardlogin: true, + keycloaklogin: true, + jupyterlogin: false + } + } + + villaswebLogin = e => { + this.props.history.replace('/login-villas'); + } + + jupyterLogin() { + + } + + + render() { + + return ( +
+
+
+
+ +
+ +
+ +
+
+ +
+ ); + } +} + +export default withRouter(LoginSelect);