Skip to content

Commit

Permalink
chore: add no matches yet text
Browse files Browse the repository at this point in the history
  • Loading branch information
zvonimirr committed May 11, 2023
1 parent 2f9cebf commit 5c974be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/swipex_web/components/layouts/app.html.heex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<main class="px-4 py-20 sm:px-6 lg:px-8">
<div class="max-w-2xl">
<div>
<.flash_group flash={@flash} />
<%= @inner_content %>
</div>
Expand Down
8 changes: 7 additions & 1 deletion lib/swipex_web/live/profile_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,19 @@ defmodule SwipexWeb.ProfileLive do
</div>
</div>
<% else %>
<p class="text-2xl">No more potential matches!</p>
<div class="flex flex-col">
<p class="text-2xl">No more potential matches!</p>
<p>(Note: You must save your profile before you can start swiping)</p>
</div>
<% end %>
</div>
<hr />
<div class="mt-3 flex flex-col gap-4">
<h1 class="text-5xl">Your matches</h1>
<div class="flex gap-3">
<%= if @matches == [] do %>
<p>No matches yet!</p>
<% end %>
<%= for match <- @matches do %>
<div class="flex flex-col gap-3">
<img src={match.avatar} class="w-32 h-32 rounded-full" />
Expand Down

0 comments on commit 5c974be

Please sign in to comment.