From 22e77d8890e71c00bfd9baf2ad5a1bdc4a868e64 Mon Sep 17 00:00:00 2001 From: deyvisonwanderley Date: Tue, 18 Nov 2025 07:02:54 -0300 Subject: [PATCH] refactor: enhance Sidebar login modal with improved styling and loading state management - Added loading state management to the login modal for better user feedback during authentication. - Updated modal styling with a gradient background and improved button interactions for a more modern look. - Enhanced error message display and form input fields for better accessibility and user experience. - Refined layout and spacing for a cleaner presentation of the login form and auxiliary links. --- apps/web/src/lib/components/Sidebar.svelte | 154 +++++++++++++-------- 1 file changed, 99 insertions(+), 55 deletions(-) diff --git a/apps/web/src/lib/components/Sidebar.svelte b/apps/web/src/lib/components/Sidebar.svelte index b9cc92b..fe64cde 100644 --- a/apps/web/src/lib/components/Sidebar.svelte +++ b/apps/web/src/lib/components/Sidebar.svelte @@ -98,6 +98,7 @@ matricula = ''; senha = ''; erroLogin = ''; + carregandoLogin = false; } function closeLoginModal() { @@ -105,6 +106,7 @@ matricula = ''; senha = ''; erroLogin = ''; + carregandoLogin = false; } function openAboutModal() { @@ -137,6 +139,7 @@ } else { erroLogin = 'Erro ao fazer login'; } + carregandoLogin = false; } async function handleLogout() { @@ -391,101 +394,142 @@ {#if loginModalStore.showModal} -