[Client] Improve admin login page
This commit is contained in:
parent
6a9434d388
commit
af02671812
@ -1,26 +1,53 @@
|
|||||||
#places>section {
|
/* Custom fonts */
|
||||||
border: thin solid red;
|
@font-face {
|
||||||
padding: 5px;
|
font-display: swap;
|
||||||
margin-top: 20px;
|
font-family: "Roboto Mono";
|
||||||
}
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url("../fonts/roboto_mono_v22/roboto_mono_v22.woff2") format('woff2'), url("../fonts/roboto_mono_v22/roboto_mono_v22.woff") format('woff'), url("../fonts/roboto_mono_v22/roboto_mono_v22.ttf") format('truetype');
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
|
|
||||||
#section>input{
|
:root {
|
||||||
width: 100%;
|
--admin-grey-color: #5A5656;
|
||||||
}
|
--admin-red-color: #FF0000;
|
||||||
|
--adming-yellow-color: #FFC800;
|
||||||
|
--body-margin: 0.375em;
|
||||||
|
font-family: "Roboto Mono", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
.questionTypeTag{
|
html {
|
||||||
border: thin solid red;
|
background-color: var(--admin-grey-color);
|
||||||
margin-top: 20px;
|
margin: 0;
|
||||||
}
|
}
|
||||||
.questionTypeTag input{
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.questionType{
|
body {
|
||||||
border: thin solid red;
|
margin: var(--body-margin);
|
||||||
margin-top: 20px;
|
}
|
||||||
}
|
|
||||||
.question input{
|
#places>section {
|
||||||
width: 100%;
|
border: thin solid red;
|
||||||
margin: 10px;
|
padding: 5px;
|
||||||
}
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#section>input{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.questionTypeTag{
|
||||||
|
border: thin solid red;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
.questionTypeTag input{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.questionType{
|
||||||
|
border: thin solid red;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
.question input{
|
||||||
|
width: 100%;
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
34
truthinquiry/static/css/admin_ui_login.css
Normal file
34
truthinquiry/static/css/admin_ui_login.css
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
form {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
font-family: "Roboto Mono", sans-serif;
|
||||||
|
font-size: 1em;
|
||||||
|
margin: 1em;
|
||||||
|
padding: 0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.invalid_password {
|
||||||
|
color: var(--adming-yellow-color);
|
||||||
|
font-size: 1.125em;
|
||||||
|
margin-bottom: 0.25em;
|
||||||
|
margin-top: 0.25em;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_title {
|
||||||
|
font-size: 2em;
|
||||||
|
margin: 0.75em;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.password_field {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
@ -1,9 +1,31 @@
|
|||||||
{% if failed %}
|
<!DOCTYPE html>
|
||||||
<p style="color: red"> Invalid password !</p>
|
<html lang="fr">
|
||||||
{% endif %}
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
<form action="/api/v1/admin/auth" method="POST">
|
<title>Truth Inquiry - Connexion à l'interface d'administration</title>
|
||||||
<p>Password :</p>
|
<link rel="stylesheet" href="/static/css/admin_ui.css">
|
||||||
<input name="password">
|
<link rel="stylesheet" href="/static/css/admin_ui_login.css">
|
||||||
<input type="submit" value="Submit">
|
<link rel="icon" href="/static/images/favicon/favicon_32.png" type="image/png" sizes="32x32">
|
||||||
</form>
|
<link rel="icon" href="/static/images/favicon/favicon_64.png" type="image/png" sizes="64x64">
|
||||||
|
<link rel="icon" href="/static/images/favicon/favicon_96.png" type="image/png" sizes="96x96">
|
||||||
|
<link rel="icon" href="/static/images/favicon/favicon_128.png" type="image/png" sizes="128x128">
|
||||||
|
<link rel="icon" href="/static/images/favicon/favicon_192.png" type="image/png" sizes="192x192">
|
||||||
|
<link rel="icon" href="/static/images/favicon/favicon_256.png" type="image/png" sizes="256x256">
|
||||||
|
<link rel="icon" href="/static/images/favicon/favicon_256.png" type="image/png" sizes="512x512">
|
||||||
|
<meta name="color-scheme" content="dark light">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1 class="login_title">Truth Inquiry - Connexion à l'interface d'administration</h1>
|
||||||
|
<form action="/api/v1/admin/auth" method="POST">
|
||||||
|
<div class="password_field">
|
||||||
|
<label for="password" class="password_label">Mot de passe :</label>
|
||||||
|
<input id="password" name="password" type="password" placeholder="Mot de passe" required="required" title="Saisissez votre mot de passe">
|
||||||
|
</div>
|
||||||
|
<input type="submit" value="Connexion">
|
||||||
|
</form>
|
||||||
|
{% if failed %}
|
||||||
|
<p class="invalid_password">Mot de passe invalide !</p>
|
||||||
|
{% endif %}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user