From ac19e4795d4a35a2a0caa379faf97af8770f6aef Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 2 Aug 2026 13:00:07 -0500 Subject: [PATCH] Improve login UX and clean up unused home page template - Replace non-standard two-button login pattern with standard 'Keep me logged in' checkbox + single 'Log in' button - Replace unused default Phoenix generator home page template with minimal app-appropriate content --- .../controllers/page_html/home.html.heex | 200 +----------------- .../user_session_html/new.html.heex | 12 +- 2 files changed, 8 insertions(+), 204 deletions(-) diff --git a/lib/microwaveprop_web/controllers/page_html/home.html.heex b/lib/microwaveprop_web/controllers/page_html/home.html.heex index 7c49a7dc..75a3ced7 100644 --- a/lib/microwaveprop_web/controllers/page_html/home.html.heex +++ b/lib/microwaveprop_web/controllers/page_html/home.html.heex @@ -1,199 +1 @@ - - -
-
- -
-

- Phoenix Framework - - v{Application.spec(:phoenix, :vsn)} - -

- -
- -

- Peace of mind from prototype to production. -

-

- Build rich, interactive web applications quickly, with less code and fewer moving parts. Join our growing community of developers using Phoenix to craft APIs, HTML5 apps and more, for fun or at scale. -

- -
-
+NTMS Microwave Propagation — real-time propagation prediction for amateur radio bands 10–241 GHz. diff --git a/lib/microwaveprop_web/controllers/user_session_html/new.html.heex b/lib/microwaveprop_web/controllers/user_session_html/new.html.heex index 09b08383..53863554 100644 --- a/lib/microwaveprop_web/controllers/user_session_html/new.html.heex +++ b/lib/microwaveprop_web/controllers/user_session_html/new.html.heex @@ -36,11 +36,13 @@ spellcheck="false" required /> - <.button class="btn btn-primary w-full" name={@form[:remember_me].name} value="true"> - Log in and stay logged in - - <.button class="btn btn-primary btn-soft w-full mt-2"> - Log in only this time + <.input + field={f[:remember_me]} + type="checkbox" + label="Keep me logged in" + /> + <.button class="btn btn-primary w-full" phx-disable-with="Logging in..."> + Log in