diff --git a/app/routes.py b/app/routes.py index fe7f6f6..a327b31 100644 --- a/app/routes.py +++ b/app/routes.py @@ -10,6 +10,9 @@ from app.models import User def index(): form = LoginForm() + flash('pseudo ou mot de passe invalide', 'error') + flash('tout ça c\'est ok !', 'ok') + flash('mais ça non', 'error') if form.validate_on_submit(): user = User.query.filter_by(username=form.username.data).first() if user is None or not user.check_password(form.password.data): diff --git a/app/static/css/global.css b/app/static/css/global.css index 6fe5e6f..e03131d 100644 --- a/app/static/css/global.css +++ b/app/static/css/global.css @@ -167,13 +167,20 @@ input[type="button"].raised:active { } /* Input text */ +input[type="text"], +input[type="search"], +input[type="password"] { + background: #FFFFFF; color: #000000; +} + input[type="text"]:focus, input[type="search"]:focus, input[type="password"]:focus { - + box-shadow: :0 0 0 0.2rem rgba(0,123,255,0.25); } + section { margin: 10px 5%; } @@ -186,4 +193,10 @@ section h1 { section * { transition: .15s ease; -} \ No newline at end of file +} + + +/* Bootstrap-style rules */ +.flex { + display: flex; +} diff --git a/app/static/css/navbar.css b/app/static/css/navbar.css index d2dd033..1b36e6f 100644 --- a/app/static/css/navbar.css +++ b/app/static/css/navbar.css @@ -180,7 +180,7 @@ nav a:focus { margin-right: 10px; } -#menu form p { +#menu form div { padding: 0 5%; } #menu form input[type="text"] { diff --git a/app/templates/base/alerts.html b/app/templates/base/alerts.html index 1157c2e..276cab1 100644 --- a/app/templates/base/alerts.html +++ b/app/templates/base/alerts.html @@ -1,15 +1,15 @@ -{% with messages = get_flashed_messages() %} -{% if messages %} -{% for message in messages %} -
Pourquoi s'inscrire sur Planète Casio ? Parce que c'est cool et qu'ici on peut mettre plein de truc sympas. + Vous saviez que Planète Casio c'est : +
ici il y aura la page qui demande de checker les mails pour valider