2022-02-25 21:39:22 -05:00
|
|
|
<main class="mb-8 min-w-full">
|
2022-02-13 21:28:20 -05:00
|
|
|
<header>
|
2022-02-25 21:39:22 -05:00
|
|
|
<.topbar current_user={assigns[:current_user]}></.topbar>
|
|
|
|
|
|
|
|
<div class="mx-8 my-2 flex flex-col space-y-4 text-center">
|
|
|
|
<%= if @flash && @flash |> Map.has_key?("info") do %>
|
|
|
|
<p class="alert alert-info" role="alert" phx-click="lv:clear-flash" phx-value-key="info">
|
|
|
|
<%= live_flash(@flash, "info") %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= if @flash && @flash |> Map.has_key?("error") do %>
|
|
|
|
<p
|
|
|
|
class="alert alert-danger"
|
|
|
|
role="alert"
|
|
|
|
phx-click="lv:clear-flash"
|
|
|
|
phx-value-key="error"
|
|
|
|
>
|
|
|
|
<%= live_flash(@flash, "error") %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2022-02-13 21:28:20 -05:00
|
|
|
</header>
|
2022-02-25 21:39:22 -05:00
|
|
|
|
|
|
|
<div class="mx-4 sm:mx-8 md:mx-16">
|
|
|
|
<%= @inner_content %>
|
|
|
|
</div>
|
2022-01-22 13:01:36 -05:00
|
|
|
</main>
|
2022-02-25 21:39:22 -05:00
|
|
|
|
|
|
|
<div
|
|
|
|
id="loading"
|
|
|
|
class="fixed opacity-0 top-0 left-0 w-screen h-screen bg-white z-50
|
|
|
|
flex flex-col justify-center items-center space-y-4
|
|
|
|
transition-opacity ease-in-out duration-500"
|
|
|
|
>
|
2022-02-25 22:13:04 -05:00
|
|
|
<h1 class="title text-2xl title-primary-500 text-primary-500">
|
2022-02-25 21:39:22 -05:00
|
|
|
<%= gettext("Loading...") %>
|
|
|
|
</h1>
|
|
|
|
|
2022-02-25 22:13:04 -05:00
|
|
|
<i class="fas fa-3x fa-spin fa-cog text-primary-500"></i>
|
2022-02-25 21:39:22 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
id="disconnect"
|
|
|
|
class="fixed opacity-0 top-0 left-0 w-screen h-screen bg-white z-50
|
|
|
|
flex flex-col justify-center items-center space-y-4
|
|
|
|
transition-opacity ease-in-out duration-500"
|
|
|
|
>
|
2022-02-25 22:13:04 -05:00
|
|
|
<h1 class="title text-2xl title-primary-500 text-primary-500">
|
2022-02-25 21:39:22 -05:00
|
|
|
<%= gettext("Reconnecting...") %>
|
|
|
|
</h1>
|
|
|
|
|
2022-02-25 22:13:04 -05:00
|
|
|
<i class="fas fa-3x fa-fade fa-satellite-dish text-primary-500"></i>
|
2022-02-25 21:39:22 -05:00
|
|
|
</div>
|