feat: add overrides for sign in page

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

View file

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

View file

@ -12,6 +12,7 @@ module.exports = {
"../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: {
extend: {
colors: {

View file

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