2021-12-30 05:06:19 +08:00
|
|
|
<main role="main" class="grow flex flex-col h-screen">
|
2022-09-02 00:41:28 +08:00
|
|
|
<div class="fixed right-8 top-5 z-[1000] flex flex-col space-y-3">
|
2021-02-11 19:42:17 +08:00
|
|
|
<%= if live_flash(@flash, :info) do %>
|
2022-08-02 21:51:02 +08:00
|
|
|
<div
|
|
|
|
class="shadow-custom-1 max-w-2xl flex items-center space-x-3 rounded-lg px-4 py-2 border-l-4 rounded-l-none border-blue-500 bg-white text-gray-600 hover:bg-gray-50 hover:text-gray-500 cursor-pointer"
|
|
|
|
role="alert"
|
2021-02-11 19:42:17 +08:00
|
|
|
phx-click="lv:clear-flash"
|
2022-08-02 21:51:02 +08:00
|
|
|
phx-value-key="info"
|
|
|
|
>
|
2021-10-27 23:04:33 +08:00
|
|
|
<.remix_icon icon="information-line" class="text-2xl text-blue-500" />
|
2022-09-02 00:41:28 +08:00
|
|
|
<span
|
|
|
|
class="whitespace-pre-wrap pr-2 max-h-52 overflow-y-auto tiny-scrollbar"
|
|
|
|
phx-no-format
|
|
|
|
><%= live_flash(@flash, :info) %></span>
|
2021-02-11 19:42:17 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
2021-01-08 05:13:17 +08:00
|
|
|
|
2022-08-23 05:12:54 +08:00
|
|
|
<%= if live_flash(@flash, :success) do %>
|
|
|
|
<div
|
2022-09-02 00:41:28 +08:00
|
|
|
class="shadow-custom-1 max-w-2xl flex items-center space-x-3 rounded-lg pl-4 pr-2 py-2 border-l-4 rounded-l-none border-blue-500 bg-white text-gray-600 hover:bg-gray-50 hover:text-gray-500 cursor-pointer"
|
2022-08-23 05:12:54 +08:00
|
|
|
role="alert"
|
|
|
|
phx-click="lv:clear-flash"
|
|
|
|
phx-value-key="success"
|
|
|
|
>
|
|
|
|
<.remix_icon icon="checkbox-circle-fill" class="text-2xl text-blue-500" />
|
2022-09-02 00:41:28 +08:00
|
|
|
<span
|
|
|
|
class="whitespace-pre-wrap pr-2 max-h-52 overflow-y-auto tiny-scrollbar"
|
|
|
|
phx-no-format
|
|
|
|
><%= live_flash(@flash, :success) %></span>
|
2022-08-23 05:12:54 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2021-10-22 05:21:54 +08:00
|
|
|
<%= if live_flash(@flash, :warning) do %>
|
2022-08-02 21:51:02 +08:00
|
|
|
<div
|
|
|
|
class="shadow-custom-1 max-w-2xl flex items-center space-x-3 rounded-lg px-4 py-2 border-l-4 rounded-l-none border-yellow-300 bg-white text-gray-600 hover:bg-gray-50 hover:text-gray-500 cursor-pointer"
|
|
|
|
role="alert"
|
2021-10-22 05:21:54 +08:00
|
|
|
phx-click="lv:clear-flash"
|
2022-08-02 21:51:02 +08:00
|
|
|
phx-value-key="warning"
|
|
|
|
>
|
2021-10-29 22:34:06 +08:00
|
|
|
<.remix_icon icon="alert-line" class="text-2xl text-yellow-400" />
|
2022-09-02 00:41:28 +08:00
|
|
|
<span
|
|
|
|
class="whitespace-pre-wrap pr-2 max-h-52 overflow-y-auto tiny-scrollbar"
|
|
|
|
phx-no-format
|
|
|
|
><%= live_flash(@flash, :warning) %></span>
|
2021-10-22 05:21:54 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2021-02-11 19:42:17 +08:00
|
|
|
<%= if live_flash(@flash, :error) do %>
|
2022-08-02 21:51:02 +08:00
|
|
|
<div
|
|
|
|
class="shadow-custom-1 max-w-2xl flex items-center space-x-3 rounded-lg px-4 py-2 border-l-4 rounded-l-none border-red-500 bg-white text-gray-600 hover:bg-gray-50 hover:text-gray-500 cursor-pointer"
|
|
|
|
role="alert"
|
2021-02-11 19:42:17 +08:00
|
|
|
phx-click="lv:clear-flash"
|
2022-08-02 21:51:02 +08:00
|
|
|
phx-value-key="error"
|
|
|
|
>
|
2021-10-27 23:04:33 +08:00
|
|
|
<.remix_icon icon="close-circle-line" class="text-2xl text-red-500" />
|
2022-09-02 00:41:28 +08:00
|
|
|
<span
|
|
|
|
class="whitespace-pre-wrap pr-2 max-h-52 overflow-y-auto tiny-scrollbar"
|
|
|
|
phx-no-format
|
|
|
|
><%= live_flash(@flash, :error) %></span>
|
2021-02-11 19:42:17 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
2021-01-08 05:13:17 +08:00
|
|
|
</div>
|
2021-01-08 04:16:54 +08:00
|
|
|
|
|
|
|
<%= @inner_content %>
|
|
|
|
</main>
|
2022-03-02 07:26:40 +08:00
|
|
|
|
|
|
|
<.confirm_modal />
|