livebook/lib/livebook_web/templates/layout/live.html.leex
Jonatan Kłosko a2d1e2f934
Initial redesign (#75)
* Add Remix icons

* Replace existing icons with Remix icons

* Update fonts

* Redesign homepage

* Redesign shortcuts modal

* Fix tests
2021-03-12 11:57:01 +01:00

23 lines
1,006 B
Text

<main role="main" class="flex-grow flex flex-col h-screen">
<div class="fixed right-5 bottom-5 z-50 flex flex-col space-y-3">
<%= if live_flash(@flash, :info) do %>
<div class="flex items-center space-x-2 rounded-lg px-4 py-2 bg-blue-100 text-blue-600 hover:opacity-75 cursor-pointer" role="alert"
phx-click="lv:clear-flash"
phx-value-key="info">
<%= remix_icon("information-line", class: "text-2xl") %>
<span class="whitespace-pre"><%= live_flash(@flash, :info) %></span>
</div>
<% end %>
<%= if live_flash(@flash, :error) do %>
<div class="flex items-center space-x-2 rounded-lg px-4 py-2 bg-red-100 text-red-400 hover:opacity-75 cursor-pointer" role="alert"
phx-click="lv:clear-flash"
phx-value-key="error">
<%= remix_icon("error-warning-line", class: "text-2xl") %>
<span class="whitespace-pre"><%= live_flash(@flash, :error) %></span>
</div>
<% end %>
</div>
<%= @inner_content %>
</main>