From c39c7265915293d247bb5d0d5fddb5249e82d28e Mon Sep 17 00:00:00 2001 From: Ashlynne Mitchell Date: Thu, 18 Dec 2025 19:26:55 +1100 Subject: [PATCH] feat: login page --- .vscode/settings.json | 6 ++++ assets/css/app.css | 6 ++++ lib/statusphere_web/components/layouts.ex | 34 +++---------------- .../controllers/page_controller.ex | 23 ++++++++++++- .../controllers/page_html/home.html.heex | 25 ++++++++++++-- .../controllers/page_html/login.html.heex | 19 +++++++++++ lib/statusphere_web/router.ex | 2 ++ .../controllers/page_controller_test.exs | 6 +++- 8 files changed, 88 insertions(+), 33 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 lib/statusphere_web/controllers/page_html/login.html.heex diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..97c17c2 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "tailwindCSS.includeLanguages": { + "phoenix-heex": "html", + "elixir": "html" + } +} diff --git a/assets/css/app.css b/assets/css/app.css index 3b86da7..c2c70b2 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -106,3 +106,9 @@ } /* This file is for your main application CSS */ + +@layer components { + .button { + @apply bg-blue-500 text-white px-3 py-1 rounded-full; + } +} diff --git a/lib/statusphere_web/components/layouts.ex b/lib/statusphere_web/components/layouts.ex index 1ea30d3..f845f23 100644 --- a/lib/statusphere_web/components/layouts.ex +++ b/lib/statusphere_web/components/layouts.ex @@ -35,37 +35,13 @@ defmodule StatusphereWeb.Layouts do def app(assigns) do ~H""" -