cannery/lib/cannery_web/templates/layout/live.html.heex

27 lines
753 B
Plaintext
Raw Normal View History

2022-01-21 20:36:25 -05:00
<main class="container min-w-full min-h-full">
2021-09-10 00:35:36 -04:00
<header>
<%= live_component CanneryWeb.Live.Component.Topbar, current_user: assigns[:current_user] %>
2022-01-21 20:36:25 -05:00
2021-09-10 00:35:36 -04:00
<div class="mx-8 my-2 flex flex-col space-y-4 text-center">
<%= if live_flash(@flash, :info) do %>
2022-01-21 20:36:25 -05:00
<p class="alert alert-info" role="alert"
phx-click="lv:clear-flash"
phx-value-key="info">
2021-09-10 00:35:36 -04:00
<%= live_flash(@flash, :info) %>
</p>
<% end %>
2022-01-21 20:36:25 -05:00
2021-09-10 00:35:36 -04:00
<%= if live_flash(@flash, :error) do %>
2022-01-21 20:36:25 -05:00
<p class="alert alert-danger" role="alert"
phx-click="lv:clear-flash"
phx-value-key="error">
2021-09-10 00:35:36 -04:00
<%= live_flash(@flash, :error) %>
</p>
<% end %>
</div>
</header>
2021-03-11 21:12:55 -05:00
<%= @inner_content %>
</main>