feat: add overrides for sign in page

This commit is contained in:
carla 2025-08-04 15:02:54 +02:00
parent c7bdd5501d
commit 96defae986
3 changed files with 10 additions and 4 deletions

View file

@ -1,7 +1,7 @@
/* See the Tailwind configuration guide for advanced usage /* See the Tailwind configuration guide for advanced usage
https://tailwindcss.com/docs/configuration */ https://tailwindcss.com/docs/configuration */
@import "tailwindcss" source(none); @import "tailwindcss";
@source "../css"; @source "../css";
@source "../js"; @source "../js";
@source "../../lib/mv_web"; @source "../../lib/mv_web";

View file

@ -12,6 +12,7 @@ module.exports = {
"../lib/mv_web.ex", "../lib/mv_web.ex",
"../lib/mv_web/**/*.*ex" "../lib/mv_web/**/*.*ex"
], ],
safelist: ['h-screen', 'px-6', 'h-screen', 'place-items-center', 'px-20', 'px-24'], // Classes that are used by AshAuthentication Sign-In Page are otherwise purged
theme: { theme: {
extend: { extend: {
colors: { colors: {

View file

@ -14,7 +14,12 @@ defmodule MvWeb.AuthOverrides do
# set :text_class, "bg-red-500" # set :text_class, "bg-red-500"
# end # end
# override AshAuthentication.Phoenix.Components.SignIn do override AshAuthentication.Phoenix.Components.SignIn do
# set :show_banner, false set :root_class, "min-w-md"
# end end
override AshAuthentication.Phoenix.Components.Banner do
set :text, "Mitgliederverwaltung"
set :image_url, nil
end
end end