2023-11-04 22:22:46 -04:00
|
|
|
<main role="main" class="pb-8 min-w-full">
|
2022-02-13 21:28:20 -05:00
|
|
|
<header>
|
2023-02-26 00:38:13 -05:00
|
|
|
<.topbar current_user={assigns[:current_user]} />
|
2022-02-25 21:39:22 -05:00
|
|
|
|
|
|
|
<div class="mx-8 my-2 flex flex-col space-y-4 text-center">
|
2023-11-04 22:22:46 -04:00
|
|
|
<p
|
|
|
|
:if={@flash && @flash |> Map.has_key?("info")}
|
|
|
|
class="alert alert-info cursor-pointer"
|
|
|
|
role="alert"
|
|
|
|
phx-click="lv:clear-flash"
|
|
|
|
phx-value-key="info"
|
|
|
|
>
|
2024-07-28 12:59:36 -04:00
|
|
|
<%= Phoenix.Flash.get(@flash, :info) %>
|
2023-02-04 09:16:51 -05:00
|
|
|
</p>
|
2023-11-04 22:22:46 -04:00
|
|
|
|
|
|
|
<p
|
|
|
|
:if={@flash && @flash |> Map.has_key?("error")}
|
|
|
|
class="alert alert-danger cursor-pointer"
|
|
|
|
role="alert"
|
|
|
|
phx-click="lv:clear-flash"
|
|
|
|
phx-value-key="error"
|
|
|
|
>
|
2024-07-28 12:59:36 -04:00
|
|
|
<%= Phoenix.Flash.get(@flash, :error) %>
|
2023-02-04 09:16:51 -05:00
|
|
|
</p>
|
2022-02-25 21:39:22 -05:00
|
|
|
</div>
|
2021-09-02 23:32:52 -04:00
|
|
|
</header>
|
2022-02-25 21:39:22 -05:00
|
|
|
|
2023-11-04 22:22:46 -04:00
|
|
|
<div class="mx-4 sm:mx-8 md:mx-16">
|
2022-02-25 21:39:22 -05:00
|
|
|
<%= @inner_content %>
|
|
|
|
</div>
|
2021-03-11 21:12:55 -05:00
|
|
|
</main>
|
2023-11-04 22:22:46 -04:00
|
|
|
|
|
|
|
<div
|
|
|
|
id="disconnect"
|
|
|
|
class="z-50 fixed opacity-0 bottom-8 right-12 px-8 py-4 w-max h-max
|
|
|
|
border border-primary-400 shadow-lg rounded-lg bg-primary-900 text-primary-400
|
|
|
|
flex justify-center items-center space-x-4
|
|
|
|
transition-opacity ease-in-out duration-500 delay-[2000ms]"
|
|
|
|
>
|
|
|
|
<i class="fas fa-fade text-md fa-satellite-dish"></i>
|
|
|
|
|
|
|
|
<h1 class="title text-md">
|
|
|
|
<%= gettext("Reconnecting...") %>
|
|
|
|
</h1>
|
|
|
|
</div>
|