standardize initial buttons

This commit is contained in:
2022-02-01 00:11:37 -05:00
parent e20552ce86
commit 1b33632c29
3 changed files with 20 additions and 27 deletions

View File

@ -4,16 +4,13 @@
</h1>
<%= if @containers |> Enum.empty?() do %>
<div class="flex flex-col space-y-4 justify-center items-center">
<h1 class="title text-xl text-primary-500">
No containers
</h1>
<h2 class="title text-xl text-primary-500">
No containers 😔
</h2>
<%= live_patch to: Routes.container_index_path(@socket, :new),
class: "btn btn-primary" do %>
Create your first container!
<% end %>
</div>
<%= live_patch "Add your first container!",
to: Routes.container_index_path(@socket, :new),
class: "btn btn-primary" %>
<% else %>
<%= live_patch to: Routes.container_index_path(@socket, :new),
class: "btn btn-primary" do %>