-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show page first draft almost complete. TODOs: Add menu functionality from Livebeats. Investigate merging views. What we have here is technically functional and we can always hide the button.
- Loading branch information
1 parent
df54b86
commit 014db13
Showing
3 changed files
with
60 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,36 @@ | ||
<div class="flex-row"> | ||
<.back navigate={~p"/artists"}></.back> | ||
<.header> | ||
<%= @artist.name %> | ||
<:subtitle>This is a artist record from your database.</:subtitle> | ||
</.header> | ||
<div class="flex flex-col pt-4 pl-10"> | ||
<header class="sticky top-0 w-full bg-white divide-y-2 pt-2 pb-2"> | ||
<div class="flex flex-row justify-between items-end"> | ||
<div class="text-3xl font-bold"><%= @artist.name %></div> | ||
<button | ||
id="artist_menu" | ||
type="button" | ||
class="group bg-gray-100 rounded-full px-0.5 py-0.5 text-sm text-left font-medium text-primary-500 hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-primary-500" | ||
phx-click={} | ||
phx-hook="ArtistMenu" | ||
data-active-class="bg-gray-100" | ||
aria-haspopup="true" | ||
> | ||
<Heroicons.ellipsis_horizontal solid class="h-6 w-6 stroke-current" /> | ||
</button> | ||
<%!-- <span class="text-primary-200"> | ||
</span> --%> | ||
</div> | ||
<div class="text-gray-500 text-sm uppercase font-medium"><%= @album_count %> albums</div> | ||
</header> | ||
<div :for={album <- @albums} class="flex pt-14"> | ||
<img | ||
src={if is_nil(album.image_url), do: "/images/album.svg", else: album.image_url} | ||
class="h-48 w-48 bg-gray-200" | ||
/> | ||
<div class="pl-12 text-2xl"> | ||
<div class="text-black font-bold text-xl"><%= album.name %></div> | ||
<div class="flex flex-col text-gray-500 text-sm uppercase font-medium pt-1"> | ||
<%= album.genre %> · <%= album.year %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |