general improvement

This commit is contained in:
Hannaeko 2023-02-23 13:21:19 +01:00
parent c910ca5f99
commit e15ad04c64
5 changed files with 36 additions and 8 deletions

View file

@ -1,5 +1,13 @@
form { form {
max-width: 25rem;
margin: auto;
flex-grow: 1; flex-grow: 1;
max-width: 40ch;
margin: 25vh auto 0 auto;
}
main {
flex-direction: row;
}
h1 {
text-align: center;
} }

View file

@ -17,6 +17,7 @@ main {
flex-grow: 1; flex-grow: 1;
display: flex; display: flex;
padding: 1rem; padding: 1rem;
flex-direction: column;
} }
h1 { h1 {
@ -27,7 +28,27 @@ h1 {
a { a {
color: var(--color-primary); color: var(--color-primary);
text-decoration: none; text-decoration: none;
position: relative;
padding-bottom: .3em;
}
a::after {
content: "";
display: block;
width: 100%;
border-bottom: 2px solid var(--color-hightlight-2); border-bottom: 2px solid var(--color-hightlight-2);
position: absolute;
bottom: .1em;
transition: .2s;
}
a:hover::after {
content: "";
display: block;
width: 100%;
border-bottom: 2px solid var(--color-hightlight-2);
position: absolute;
bottom: .3em;
} }
p.feedback { p.feedback {
@ -80,6 +101,7 @@ form label {
form { form {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: fit-content;
} }
nav.main { nav.main {

View file

@ -9,10 +9,6 @@ nav.secondary li {
margin-right: 1rem; margin-right: 1rem;
} }
main {
flex-direction: column;
}
main > section { main > section {
max-width: 120ch; max-width: 120ch;
} }

View file

@ -1,6 +1,6 @@
{% extends "bases/base.html" %} {% extends "bases/base.html" %}
{% block title %}Login ⋅ {% endblock title %} {% block title %}Se connecter ⋅ {% endblock title %}
{% block styles %} {% block styles %}
<link rel="stylesheet" type="text/css" href="/styles/login.css"> <link rel="stylesheet" type="text/css" href="/styles/login.css">
{% endblock styles %} {% endblock styles %}
@ -8,6 +8,7 @@
{% block content %} {% block content %}
<main> <main>
<form method="POST" action="/login"> <form method="POST" action="/login">
<h1>Se connecter</h1>
{% if error %} {% if error %}
<p class="feedback error" role="alert"> <p class="feedback error" role="alert">
{{ error }} {{ error }}

View file

@ -1,8 +1,9 @@
{% extends "bases/app.html" %} {% extends "bases/app.html" %}
{% block title %}Créer une zone ⋅ {% endblock title %} {% block title %}Ajouter une zone ⋅ {% endblock title %}
{% block main %} {% block main %}
<h1>Ajouter une zone</h1>
<form method="POST" action="/zones/new"> <form method="POST" action="/zones/new">
{% if error %} {% if error %}
<p class="feedback error" role="alert"> <p class="feedback error" role="alert">