1
0

Redesigned login screen

This commit is contained in:
Christiaan Goossens 2017-03-31 19:03:10 +02:00
parent 8883d28453
commit 5d998b0e33
3 changed files with 150 additions and 61 deletions

117
assets/css/login.css Normal file
View File

@ -0,0 +1,117 @@
.appinfodiv{
background-color: #DDDDDD;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.formdiv{
background-color: #AAAAAA;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
@import url(http://fonts.googleapis.com/css?family=Roboto);
/****** LOGIN MODAL ******/
.loginmodal-container {
padding: 30px;
max-width: 350px;
width: 100% !important;
background-color: #F7F7F7;
margin: 0 auto;
border-radius: 2px;
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
overflow: hidden;
font-family: roboto;
}
.loginmodal-container h1 {
text-align: center;
font-size: 1.8em;
font-family: roboto;
}
.loginmodal-container input[type=submit] {
width: 100%;
display: block;
margin-bottom: 10px;
position: relative;
}
.loginmodal-container input[type=text], input[type=password] {
height: 44px;
font-size: 16px;
width: 100%;
margin-bottom: 10px;
-webkit-appearance: none;
background: #fff;
border: 1px solid #d9d9d9;
border-top: 1px solid #c0c0c0;
padding: 0 8px;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.loginmodal-container input[type=text]:hover, input[type=password]:hover {
border: 1px solid #b9b9b9;
border-top: 1px solid #a0a0a0;
-moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.loginmodal {
text-align: center;
font-size: 14px;
font-family: 'Arial', sans-serif;
font-weight: 700;
height: 36px;
padding: 0 8px;
}
.loginmodal-submit {
border: 0px;
color: #fff;
text-shadow: 0 1px rgba(0,0,0,0.1);
background-color: #4d90fe;
padding: 17px 0px;
font-family: roboto;
font-size: 14px;
}
.loginmodal-submit:hover {
border: 0px;
text-shadow: 0 1px rgba(0,0,0,0.3);
background-color: #357ae8;
}
.loginmodal-container a {
text-decoration: none;
color: #666;
font-weight: 400;
text-align: center;
display: inline-block;
opacity: 0.6;
transition: opacity ease 0.5s;
}
body{
color: #ff6000;
}
html, body{
height: 100%;
}
.logo{
display: block;
}
.full{
width: 100%;
height: 100%;
}

View File

@ -16,14 +16,21 @@ namespace Inforbank\Application;
use \Slim\App;
use Inforbank\Application\Helper\Redirect;
use Inforbank\Proxy;
class Login
{
public function __construct(App $app)
{
$app->get('/login', function ($request, $response, $args) {
$query = $request->getQueryParams();
$error = isset($query['error']);
// Render index view
return $this->renderer->render($response, 'login.phtml', $args);
return $this->renderer->render($response, 'login.phtml', array(
'base' => Proxy::$route->getBaseUrl() . "/",
'error' => $error
));
});
$app->post('/login', function ($request, $response, $args) {

View File

@ -2,73 +2,38 @@
<html>
<head>
<meta charset="utf-8"/>
<title>InforBank - Inloggen</title>
<link href='//fonts.googleapis.com/css?family=Lato:300' rel='stylesheet' type='text/css'>
<title>Inforbank</title>
<link rel="stylesheet" href="<?= $base ?>/assets/css/login.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!--link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous" -->
<base href="<?= $base ?>">
</head>
<style>
.form-signin {
max-width: 330px;
padding: 15px;
margin: 0 auto;
}
.btn-primary {
color: #ff6000;
background-color: #2e652c;
border-color: #2e6da4;
margin-top: 5px;
}
.form-control{
margin: 5px 0;
}
body{
color: #ff6000;
}
html, body{
height: 100%;
}
.logo{
display: block;
}
.full{
width: 100%;
height: 100%;
}
.formdiv{
background-color: #AAAAAA;
height: 100%;
padding: 10% 0 0 70px;
}
.appinfodiv{
background-color: #DDDDDD;
height: 100%;
padding: 10% 0 0 70px;
}
</style>
<body>
<div class="full">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 appinfodiv">
<img class="logo" alt="logo" src="assets/logo.png"/>
<h3>Welkom bij de InforBank</h1>
Bij InforBank krijg je zelfs 10% rente op betaalrekeningen.<br/><br/>
Je kunt bij InforBank ook online betalen.<br/><br/>
BIC: INFONL2N
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 formdiv">
<form class="form-signin" method="post">
<h2 class="form-signin-heading">Inloggen</h2>
<label for="inputUsername" class="sr-only">Rekeningnummer (alleen cijfers)</label>
<input type="text" id="inputUsername" name="rekeningnr" class="form-control" placeholder="012456789"/>
<label for="inputPassword" class="sr-only">Pascode</label>
<input type="password" id="inputPassword" name="pascode" class="form-control" placeholder="0000"/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Inloggen</button>
</form>
<div class="col-md-6 appinfodiv">
<div>
<img class="logo" alt="logo" src="assets/logo.png"/>
<h3>Welkom bij de InforBank</h1>
Bij InforBank krijg je zelfs 10% rente op betaalrekeningen.<br/><br/>
Je kunt bij InforBank ook online betalen.<br/><br/>
BIC: INFONL2N
</div>
</div>
<div class="col-md-6 formdiv">
<div class="loginmodal-container">
<h1>Inloggen bij de Inforbank</h1><br>
<?php if ($error) {
?>
<div class="alert alert-warning" role="alert">De ingevulde gegevens zijn incorrect. Probeer het opnieuw.</div><br/>
<?php
} ?>
<form method="post" action="">
<input type="text" name="rekeningnr" placeholder="Rekeningnummer (alleen cijfers)">
<input type="password" name="pascode" placeholder="Pascode">
<input type="submit" name="login" class="login loginmodal-submit" value="Login">
</form>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</body>
</html>