Skip to content

Commit

Permalink
Improve styling of album show page
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislo committed Sep 7, 2023
1 parent 4546729 commit 715b203
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/views/albums/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<h1><%= @album.title %></h1>
<h2><%= @album.artist.name %></h2>
<%= image_tag @album.cover.representation(resize_to_limit: [400, 400]) %>
<div class="mb-3">
<h1 class="text-lg font-medium leading-tight"><%= @album.title %></h1>
<h2 class="text-sm text-slate-600"><%= @album.artist.name %></h2>
</div>

<%= image_tag @album.cover.representation(resize_to_limit: [400, 400]), class: 'w-full' %>

<h3 class="text-lg my-3">Tracklist</h3>
<ol>
<% @album.tracks.each_with_index do |track, index| %>
<li><%= index + 1 %>. <%= track.title %> <%= text_link_to 'Edit', edit_artist_album_track_url(track.artist, track.album, track) %></li>
Expand Down

0 comments on commit 715b203

Please sign in to comment.