diff --git a/static/css/style.css b/static/css/style.css index 6e1f741..91fea44 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -206,12 +206,19 @@ body { width: 100%; } +.login-container { + display: flex; + align-items: center; + justify-content: center; + min-height: calc(100vh - 120px); /* Adjust for footer height */ + background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); +} + .auth-container { display: flex; align-items: center; justify-content: center; min-height: 100vh; - background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); } .auth-box { @@ -1042,3 +1049,13 @@ body.dark-mode { .footer-text { margin: 0; } + +rbox-app { + display: flex; + flex-direction: column; + min-height: 100vh; +} + +.login-container { + flex: 1; +} diff --git a/static/js/components/rbox-app.js b/static/js/components/rbox-app.js index 9520ae7..1be07e2 100644 --- a/static/js/components/rbox-app.js +++ b/static/js/components/rbox-app.js @@ -97,7 +97,27 @@ export class RBoxApp extends HTMLElement { } showLogin() { - this.innerHTML = ''; + this.innerHTML = ` +
+ +
+ + + `; const loginView = this.querySelector('login-view'); loginView.addEventListener('auth-success', () => this.init()); }