mirror of
https://github.com/ysoftdevs/oauth-playground-server.git
synced 2026-04-17 06:09:54 +02:00
Error and success screens redesigned
This commit is contained in:
@@ -1,77 +1,16 @@
|
|||||||
<!DOCTYPE html>
|
{#include base}
|
||||||
<html lang="en">
|
{#title}Error{/title}
|
||||||
<head>
|
<div class="container">
|
||||||
<meta charset="UTF-8">
|
<div class="row">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<div class="col s12 m6 offset-m3">
|
||||||
<title>Login Page</title>
|
<div class="card">
|
||||||
<style>
|
<div class="card-content">
|
||||||
body {
|
<span class="card-title center-align">Error</span>
|
||||||
font-family: Arial, sans-serif;
|
<p>{response.error}</p>
|
||||||
background-color: #f4f4f4;
|
<div class="error-popup" id="error-popup">{response.description}</div>
|
||||||
margin: 0;
|
</div>
|
||||||
padding: 0;
|
</div>
|
||||||
display: flex;
|
</div>
|
||||||
justify-content: center;
|
</div>
|
||||||
align-items: center;
|
|
||||||
height: 100vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-container {
|
|
||||||
background-color: #fff;
|
|
||||||
padding: 20px;
|
|
||||||
border-radius: 5px;
|
|
||||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-container h2 {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-group {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-group label {
|
|
||||||
font-weight: bold;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-group input {
|
|
||||||
width: 100%;
|
|
||||||
padding: 10px;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-button {
|
|
||||||
width: 100%;
|
|
||||||
background-color: #007BFF;
|
|
||||||
color: #fff;
|
|
||||||
border: none;
|
|
||||||
padding: 10px;
|
|
||||||
border-radius: 5px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-button:hover {
|
|
||||||
background-color: #0056b3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.error-popup {
|
|
||||||
background-color: #ff6b6b;
|
|
||||||
color: #fff;
|
|
||||||
padding: 10px;
|
|
||||||
text-align: center;
|
|
||||||
border-radius: 5px;
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="login-container">
|
|
||||||
<h2>Error</h2>
|
|
||||||
<div class="error-code" id="error-code">{response.error}</div>
|
|
||||||
<div class="error-popup" id="error-popup">{response.description}</div>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
{/include}
|
||||||
</html>
|
|
||||||
|
|||||||
@@ -1,76 +1,15 @@
|
|||||||
<!DOCTYPE html>
|
{#include base}
|
||||||
<html lang="en">
|
{#title}Login successful{/title}
|
||||||
<head>
|
<div class="container">
|
||||||
<meta charset="UTF-8">
|
<div class="row">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<div class="col s12 m6 offset-m3">
|
||||||
<title>Login Page</title>
|
<div class="card">
|
||||||
<style>
|
<div class="card-content centered">
|
||||||
body {
|
<span class="card-title center-align">Successful login</span>
|
||||||
font-family: Arial, sans-serif;
|
<h6 style="margin: 50px 0;">You may now close this window</h6>
|
||||||
background-color: #f4f4f4;
|
</div>
|
||||||
margin: 0;
|
</div>
|
||||||
padding: 0;
|
</div>
|
||||||
display: flex;
|
</div>
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
height: 100vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-container {
|
|
||||||
background-color: #fff;
|
|
||||||
padding: 20px;
|
|
||||||
border-radius: 5px;
|
|
||||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-container h2 {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-group {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-group label {
|
|
||||||
font-weight: bold;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-group input {
|
|
||||||
width: 100%;
|
|
||||||
padding: 10px;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-button {
|
|
||||||
width: 100%;
|
|
||||||
background-color: #007BFF;
|
|
||||||
color: #fff;
|
|
||||||
border: none;
|
|
||||||
padding: 10px;
|
|
||||||
border-radius: 5px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-button:hover {
|
|
||||||
background-color: #0056b3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.error-popup {
|
|
||||||
background-color: #ff6b6b;
|
|
||||||
color: #fff;
|
|
||||||
padding: 10px;
|
|
||||||
text-align: center;
|
|
||||||
border-radius: 5px;
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="login-container">
|
|
||||||
<h2>Successful login</h2>
|
|
||||||
<p>You may close this window</p>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
{/include}
|
||||||
</html>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user