style flashes
This commit is contained in:
parent
3eebba17c4
commit
3cdd7729a6
@ -1,7 +1,9 @@
|
|||||||
<main role="main" class="container min-h-full min-w-full">
|
<main role="main" class="container min-h-full min-w-full">
|
||||||
<header class="mb-4 px-8 py-4 w-full bg-primary-400">
|
<header class="mb-4 px-8 py-4 w-full bg-primary-400">
|
||||||
<%= render "topbar.html", assigns %>
|
<%= render "topbar.html", assigns %>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="mx-8 my-2 flex flex-col space-y-4 text-center">
|
||||||
<%= if get_flash(@conn, :info) do %>
|
<%= if get_flash(@conn, :info) do %>
|
||||||
<p class="alert alert-info" role="alert">
|
<p class="alert alert-info" role="alert">
|
||||||
<%= get_flash(@conn, :info) %>
|
<%= get_flash(@conn, :info) %>
|
||||||
@ -13,7 +15,7 @@
|
|||||||
<%= get_flash(@conn, :error) %>
|
<%= get_flash(@conn, :error) %>
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
</header>
|
</div>
|
||||||
|
|
||||||
<%= @inner_content %>
|
<%= @inner_content %>
|
||||||
</main>
|
</main>
|
||||||
|
@ -1,5 +1,21 @@
|
|||||||
<main role="main" class="container min-w-full min-h-full">
|
<main role="main" class="container min-w-full min-h-full">
|
||||||
|
<header>
|
||||||
<%= live_component CanneryWeb.Live.Component.Topbar, current_user: assigns[:current_user] %>
|
<%= live_component CanneryWeb.Live.Component.Topbar, current_user: assigns[:current_user] %>
|
||||||
|
|
||||||
|
<div class="mx-8 my-2 flex flex-col space-y-4 text-center">
|
||||||
|
<%= if live_flash(@flash, :info) do %>
|
||||||
|
<p class="alert alert-info" role="alert">
|
||||||
|
<%= live_flash(@flash, :info) %>
|
||||||
|
</p>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<%= if live_flash(@flash, :error) do %>
|
||||||
|
<p class="alert alert-danger" role="alert">
|
||||||
|
<%= live_flash(@flash, :error) %>
|
||||||
|
</p>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
<%= @inner_content %>
|
<%= @inner_content %>
|
||||||
</main>
|
</main>
|
||||||
|
Loading…
Reference in New Issue
Block a user