From edc8760465c7b222cde7b157654ac16e1488552b Mon Sep 17 00:00:00 2001 From: Frank Tovar Date: Tue, 3 Feb 2026 00:57:52 +0100 Subject: [PATCH] Turn auth toggle into link --- wwwroot/app.js | 5 ++++- wwwroot/index.html | 4 +++- wwwroot/styles.css | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/wwwroot/app.js b/wwwroot/app.js index 7fd9a09..e237c59 100644 --- a/wwwroot/app.js +++ b/wwwroot/app.js @@ -327,7 +327,10 @@ function renderPhaseTitles() { function setupHandlers() { const toggleAuth = $("auth-toggle"); if (toggleAuth) { - toggleAuth.addEventListener("click", () => setAuthMode(state.authMode === "login" ? "register" : "login")); + toggleAuth.addEventListener("click", (e) => { + e.preventDefault(); + setAuthMode(state.authMode === "login" ? "register" : "login"); + }); } setAuthMode(state.authMode); diff --git a/wwwroot/index.html b/wwwroot/index.html index fff3739..5d331ae 100644 --- a/wwwroot/index.html +++ b/wwwroot/index.html @@ -19,7 +19,6 @@

Log in

-
Language @@ -58,6 +57,9 @@ +
diff --git a/wwwroot/styles.css b/wwwroot/styles.css index c6b69a4..42f5c45 100644 --- a/wwwroot/styles.css +++ b/wwwroot/styles.css @@ -184,6 +184,7 @@ p { margin: 0; } .link { color: #30afea; text-decoration: none; font-weight: 700; } .link:hover { text-decoration: underline; } .link.compact { font-size: 14px; } +.auth-toggle-link { text-align: center; display: inline-block; } .chip { background: #c5dff1; color: #2c1c0d; padding: 4px 8px; border-radius: 999px; font-size: 12px; } .chip.danger-chip { background: #e0564f; border: 1px solid #c54740; color: #fffaf3; }