style login page

main
Hannaeko 2023-02-22 13:52:41 +01:00
parent 473daa532a
commit 1cd58f6ff7
4 changed files with 47 additions and 6 deletions

View File

@ -0,0 +1,10 @@
main {
margin-top: 20vh;
}
form {
display: flex;
flex-direction: column;
max-width: 25rem;
margin: auto;
}

View File

@ -1,8 +1,7 @@
body { body {
color: #2e2033;
display: flex; display: flex;
height: 100%; min-height: 100vh;
width: 100%; min-width: 100vw;
margin: 0; margin: 0;
} }
@ -10,6 +9,33 @@ main {
flex-grow: 1; flex-grow: 1;
} }
input {
padding: .35rem .35rem;
font-size: 1rem;
}
input[type="submit"] {
margin-top: 2rem;
background: #712da0;
color: white;
border-left: 5px solid #ffbac6;
border-top: 5px solid #ffbac6;
border-right: 5px solid #f560f5;
border-bottom: 5px solid #f560f5;
}
input[type="submit"]:hover {
background: #7a43a1;
}
input[type="submit"]:active {
background: #875ba6;
}
form label {
margin-top: .75em;
}
zone-content table { zone-content table {
border-collapse: collapse; border-collapse: collapse;
width: 100%; width: 100%;
@ -59,4 +85,3 @@ zone-content tbody tr .rdata div {
display: flex; display: flex;
align-items: baseline; align-items: baseline;
} }

View File

@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}{% endblock title %}Nomilo</title> <title>{% block title %}{% endblock title %}Nomilo</title>
<link rel="stylesheet" type="text/css" href="/styles/main.css"> <link rel="stylesheet" type="text/css" href="/styles/main.css">
{% block styles %}{% endblock styles %}
</head> </head>
<body> <body>
{% block content %}{% endblock content %} {% block content %}{% endblock content %}

View File

@ -1,6 +1,9 @@
{% extends "bases/base.html" %} {% extends "bases/base.html" %}
{% block title %}Login ⋅ {% endblock title %} {% block title %}Login ⋅ {% endblock title %}
{% block styles %}
<link rel="stylesheet" type="text/css" href="/styles/login.css">
{% endblock styles %}
{% block content %} {% block content %}
<main> <main>
@ -10,8 +13,10 @@
</p> </p>
{% endif %} {% endif %}
<form method="POST" action="/login"> <form method="POST" action="/login">
<input type="text" name="username"> <label for="email">Adresse e-mail</label>
<input type="password" name="password"> <input type="email" id="email" name="email">
<label for="password">Mot de passe</label>
<input type="password" id="password" name="password">
<input type="submit" value="Se connecter"> <input type="submit" value="Se connecter">
</form> </form>
</main> </main>