styling improvements, including implementing alerts with phx hook to clear flash after bootstrap alert close event

This commit is contained in:
Adam Piontek 2021-02-26 12:07:33 -05:00
commit 951249be93
12 changed files with 100 additions and 18 deletions
lib/bones73k_web/views

View file

@ -7,4 +7,15 @@ defmodule Bones73kWeb.LayoutView do
true -> Keyword.update(opts, :class, "active", fn c -> "#{c} active" end)
end
end
def alert_kinds do
[
success: "alert alert-success",
info: "alert alert-info",
error: "alert alert-danger",
warning: "alert alert-warning",
primary: "alert alert-primary",
secondary: "alert alert-secondary"
]
end
end