memEx/lib/memex_web/templates/layout/live.html.heex

55 lines
1.5 KiB
Plaintext
Raw Normal View History

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"
2022-07-25 22:04:10 -04:00
class="fixed opacity-0 top-0 left-0 w-screen h-screen bg-primary-900 z-50
2022-02-25 21:39:22 -05:00
flex flex-col justify-center items-center space-y-4
transition-opacity ease-in-out duration-500"
>
2022-07-25 22:04:10 -04:00
<h1 class="title text-2xl title-primary-500 text-primary-400">
2022-02-25 21:39:22 -05:00
<%= gettext("Loading...") %>
</h1>
2022-07-25 22:04:10 -04:00
<i class="fas fa-3x fa-spin fa-gear text-primary-400"></i>
2022-02-25 21:39:22 -05:00
</div>
<div
id="disconnect"
2022-07-25 22:04:10 -04:00
class="fixed opacity-0 top-0 left-0 w-screen h-screen bg-primary-900 z-50
2022-02-25 21:39:22 -05:00
flex flex-col justify-center items-center space-y-4
transition-opacity ease-in-out duration-500"
>
2022-07-25 22:04:10 -04:00
<h1 class="title text-2xl title-primary-500 text-primary-400">
2022-02-25 21:39:22 -05:00
<%= gettext("Reconnecting...") %>
</h1>
2022-07-25 22:04:10 -04:00
<i class="fas fa-3x fa-fade fa-satellite-dish text-primary-400"></i>
2022-02-25 21:39:22 -05:00
</div>