2022-02-18 17:43:33 -05:00
|
|
|
<main class="mb-8 min-w-full">
|
2021-09-10 00:35:36 -04:00
|
|
|
<header>
|
2022-02-11 22:47:33 -05:00
|
|
|
<.topbar current_user={assigns[:current_user]}></.topbar>
|
2022-02-07 17:36:44 -05:00
|
|
|
|
2021-09-10 00:35:36 -04:00
|
|
|
<div class="mx-8 my-2 flex flex-col space-y-4 text-center">
|
2022-02-07 17:36:44 -05:00
|
|
|
<%= if @flash && @flash |> Map.has_key?("info") do %>
|
2022-01-22 17:21:10 -05:00
|
|
|
<p class="alert alert-info" role="alert" phx-click="lv:clear-flash" phx-value-key="info">
|
2022-02-07 17:36:44 -05:00
|
|
|
<%= live_flash(@flash, "info") %>
|
2021-09-10 00:35:36 -04:00
|
|
|
</p>
|
|
|
|
<% end %>
|
2022-02-07 17:36:44 -05:00
|
|
|
|
|
|
|
<%= if @flash && @flash |> Map.has_key?("error") do %>
|
2022-02-17 21:24:59 -05:00
|
|
|
<p
|
|
|
|
class="alert alert-danger"
|
|
|
|
role="alert"
|
|
|
|
phx-click="lv:clear-flash"
|
|
|
|
phx-value-key="error"
|
|
|
|
>
|
2022-02-07 17:36:44 -05:00
|
|
|
<%= live_flash(@flash, "error") %>
|
2021-09-10 00:35:36 -04:00
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</header>
|
2022-02-07 17:36:44 -05:00
|
|
|
|
2022-02-15 23:52:44 -05:00
|
|
|
<div class="mx-4 sm:mx-8 md:mx-16">
|
|
|
|
<%= @inner_content %>
|
|
|
|
</div>
|
2021-03-11 21:12:55 -05:00
|
|
|
</main>
|
2022-02-18 17:43:08 -05:00
|
|
|
|
|
|
|
<div
|
|
|
|
id="loading"
|
2022-02-19 21:29:36 -05:00
|
|
|
class="fixed opacity-0 top-0 left-0 w-screen h-screen bg-white z-50
|
2022-02-18 17:43:08 -05:00
|
|
|
flex flex-col justify-center items-center space-y-4
|
|
|
|
transition-opacity ease-in-out duration-500"
|
|
|
|
>
|
|
|
|
<h1 class="title text-2xl title-primary-500">
|
|
|
|
<%= gettext("Loading...") %>
|
|
|
|
</h1>
|
|
|
|
|
2022-05-06 23:35:50 -04:00
|
|
|
<i class="fas fa-3x fa-spin fa-gear"></i>
|
2022-02-18 17:43:08 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
id="disconnect"
|
2022-02-19 21:29:36 -05:00
|
|
|
class="fixed opacity-0 top-0 left-0 w-screen h-screen bg-white z-50
|
2022-02-18 17:43:08 -05:00
|
|
|
flex flex-col justify-center items-center space-y-4
|
|
|
|
transition-opacity ease-in-out duration-500"
|
|
|
|
>
|
|
|
|
<h1 class="title text-2xl title-primary-500">
|
|
|
|
<%= gettext("Reconnecting...") %>
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<i class="fas fa-3x fa-fade fa-satellite-dish"></i>
|
|
|
|
</div>
|