From b815f77240bcc3db3627261e1c36dfb30d93862a Mon Sep 17 00:00:00 2001 From: andersonid Date: Wed, 2 Apr 2025 14:47:51 -0300 Subject: [PATCH] refactor: melhorias na interface de login e alertas, foco em mobile-first --- static/css/style.css | 42 +++++++++++-- templates/login.html | 137 ++++++++++++++++++++++++++++++++----------- 2 files changed, 142 insertions(+), 37 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 36fed98..7eebb80 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -41,6 +41,13 @@ body { height: 35px; width: auto; margin-right: 10px; + object-fit: contain; +} + +.login-logo { + height: 100px; + width: auto; + object-fit: contain; } .nav-link { @@ -114,16 +121,33 @@ body { box-shadow: 0 0 0 0.2rem rgba(232, 0, 12, 0.25); } -.alert-success { - background-color: #28a745; - color: white; +.alert { + position: fixed; + top: 1rem; + left: 50%; + transform: translateX(-50%); + z-index: 1050; + min-width: 300px; + max-width: 90%; + text-align: center; + backdrop-filter: blur(5px); border: none; + box-shadow: 0 4px 12px rgba(0,0,0,0.15); +} + +.alert-info { + background-color: rgba(255,255,255,0.9); + color: var(--secondary-color); } .alert-danger { background-color: var(--primary-color); color: white; - border: none; +} + +.alert-success { + background-color: rgba(40, 167, 69, 0.9); + color: white; } /* Animações para feedback */ @@ -142,6 +166,10 @@ body { font-size: 1.2rem; } + .navbar-logo { + height: 30px; + } + .container { padding: 1rem; } @@ -149,6 +177,12 @@ body { .card { margin-bottom: 1rem; } + + .alert { + margin: 1rem; + width: calc(100% - 2rem); + max-width: none; + } } .dropdown-menu { diff --git a/templates/login.html b/templates/login.html index 652174c..37a0733 100644 --- a/templates/login.html +++ b/templates/login.html @@ -3,13 +3,13 @@ {% block title %}Login{% endblock %} {% block content %} -
-
+
+
-
+
- -

Controles OCI

+ +

Controles OCI

{% with messages = get_flashed_messages(with_categories=true) %} @@ -23,44 +23,56 @@ {% endif %} {% endwith %} -
-
- -
- - - - + +
+ + +
+ Por favor, informe seu email.
-
- -
- - - - - +
+ + +
+ Por favor, informe sua senha.
+
-
+ +
+ + Precisa de ajuda? Entre em contato com o administrador. + +
{% block extra_js %} {% endblock %} {% endblock %} \ No newline at end of file