From c0478ed1b24b40c4ced4a32de9c6ee9a075c7317 Mon Sep 17 00:00:00 2001 From: Gronod Date: Fri, 15 May 2026 23:16:10 +0100 Subject: [PATCH] feat: revise login screen with logo and smooth transition to splash - Replace 'Login to Emby' heading with sofarr logo and subtitle - Subtitle reads 'Login with your Emby credentials' - Login form fades out smoothly before splash screen appears - Form labels remain left-aligned within centered login box --- public/app.js | 14 ++++++++++++++ public/index.html | 3 ++- public/style.css | 21 +++++++++++++++++---- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/public/app.js b/public/app.js index 705c157..24a9798 100644 --- a/public/app.js +++ b/public/app.js @@ -64,6 +64,18 @@ function stopAutoRefresh() { } } +function fadeOutLogin() { + return new Promise(resolve => { + const login = document.getElementById('login-container'); + login.classList.add('fade-out'); + login.addEventListener('transitionend', () => { + login.style.display = 'none'; + login.classList.remove('fade-out'); + resolve(); + }, { once: true }); + }); +} + function showSplash() { const splash = document.getElementById('splash-screen'); splash.style.display = 'flex'; @@ -130,6 +142,8 @@ async function handleLogin(e) { if (data.success) { currentUser = data.user; isAdmin = !!data.user.isAdmin; + // Fade out login, then show splash while loading data + await fadeOutLogin(); showSplash(); showDashboard(); const splashStart = Date.now(); diff --git a/public/index.html b/public/index.html index 8e05d95..251ea79 100644 --- a/public/index.html +++ b/public/index.html @@ -16,7 +16,8 @@