cannery/lib/cannery_web/templates/layout/app.html.eex

22 lines
592 B
Elixir
Raw Normal View History

2021-03-11 21:12:55 -05:00
<main role="main" class="container min-h-full min-w-full">
<header class="mb-4 px-8 py-4 w-full bg-primary-400">
<%= render "topbar.html", assigns %>
2021-09-10 00:35:36 -04:00
</header>
2021-03-11 21:12:55 -05:00
2021-09-10 00:35:36 -04:00
<div class="mx-8 my-2 flex flex-col space-y-4 text-center">
2021-03-11 21:12:55 -05:00
<%= if get_flash(@conn, :info) do %>
<p class="alert alert-info" role="alert">
<%= get_flash(@conn, :info) %>
</p>
<% end %>
<%= if get_flash(@conn, :error) do %>
<p class="alert alert-danger" role="alert">
<%= get_flash(@conn, :error) %>
</p>
<% end %>
2021-09-10 00:35:36 -04:00
</div>
2021-03-11 21:12:55 -05:00
<%= @inner_content %>
</main>