standardize initial buttons

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

View File

@ -4,7 +4,6 @@
</h1> </h1>
<%= if @invites |> Enum.empty?() do %> <%= if @invites |> Enum.empty?() do %>
<div class="flex flex-col space-y-4 justify-center items-center">
<h1 class="title text-xl text-primary-500"> <h1 class="title text-xl text-primary-500">
No invites 😔 No invites 😔
</h1> </h1>
@ -13,7 +12,6 @@
class: "btn btn-primary" do %> class: "btn btn-primary" do %>
Invite someone new! Invite someone new!
<% end %> <% end %>
</div>
<% else %> <% else %>
<%= live_patch to: Routes.invite_index_path(@socket, :new), <%= live_patch to: Routes.invite_index_path(@socket, :new),
class: "btn btn-primary" do %> class: "btn btn-primary" do %>

View File

@ -6,15 +6,13 @@
Tags can be added to your containers to help you organize Tags can be added to your containers to help you organize
</p> </p>
<%= if @tags |> Enum.empty?() do %> <%= if @tags |> Enum.empty?() do %>
<div class="flex flex-col space-y-4 justify-center items-center"> <h2 class="title text-xl text-primary-500">
<h1 class="title text-xl text-primary-500"> No tags 😔
No tags </h2>
</h1>
<%= live_patch("Create your first tag!", <%= live_patch "Make your first tag!",
to: Routes.tag_index_path(@socket, :new), to: Routes.tag_index_path(@socket, :new),
class: "btn btn-primary" class: "btn btn-primary" %>
) %>
</div>
<% else %> <% else %>
<%= live_patch("New Tag", <%= live_patch("New Tag",
to: Routes.tag_index_path(@socket, :new), to: Routes.tag_index_path(@socket, :new),