-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
182 additions
and
21 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,22 +1,91 @@ | ||
#album-metadata { | ||
#album-metadata, | ||
#artist-metadata { | ||
@include display(flex); | ||
@include flex-direction(row); | ||
|
||
figcaption { | ||
display: inline-block; | ||
padding: 0 10px; | ||
vertical-align: top; | ||
} | ||
|
||
figure { | ||
@include display(flex); | ||
@include flex-direction(row); | ||
@include flex-grow(1); | ||
margin: 0; | ||
|
||
img { | ||
width: 300px; | ||
object-fit: contain; | ||
} | ||
} | ||
} | ||
|
||
#album, | ||
#artist { | ||
p + p { | ||
text-indent: 0; | ||
} | ||
} | ||
|
||
#album-metadata img { | ||
max-height: 300px; | ||
max-width: 300px; | ||
} | ||
|
||
#artist-metadata img { | ||
max-height: 180px; | ||
max-width: 360px; | ||
} | ||
|
||
#artist-metadata + section > div { | ||
@include display(flex); | ||
@include flex-direction(column); | ||
} | ||
|
||
#artist > div > section { | ||
display: block; | ||
} | ||
|
||
#albums { | ||
margin-top: 10px; | ||
} | ||
|
||
.secondary-album-art { | ||
width: 160px; | ||
} | ||
|
||
.secondary-artist-art { | ||
max-width: 320px; | ||
} | ||
|
||
.scrollable-figures { | ||
ul { | ||
margin: 0; | ||
overflow-x: auto; | ||
padding: 0; | ||
white-space: nowrap; | ||
width: 99%; | ||
} | ||
|
||
li { | ||
display: inline-block; | ||
list-style-type: none; | ||
margin: 0 10px; | ||
|
||
&:first-child, | ||
&:last-child { | ||
margin: 0; | ||
} | ||
} | ||
|
||
figcaption p { | ||
@include overflow-ellipsis; | ||
} | ||
|
||
figure, | ||
img { | ||
display: inline-block; | ||
margin: 0; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -24,4 +24,5 @@ | |
{{ mtpl('player') }} | ||
{{ mtpl('now-playing') }} | ||
{{ mtpl('album') }} | ||
{{ mtpl('artist') }} | ||
{% endblock footer %} |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<div>[% /* For flexbox */ %] | ||
<h3>[[ artist.name ]]</h3> | ||
|
||
<section id="artist-metadata"> | ||
<figure> | ||
<img src="[[ artist.artistArtRef ]]" alt=""> | ||
<figcaption> | ||
<p>[[ artist.artistBio ]]</p> | ||
</figcaption> | ||
</figure> | ||
</section> | ||
<section class="scrollable-contents"><div> | ||
[% if (!!artist.albums) { %] | ||
<section id="albums" class="scrollable-figures"> | ||
<h4>Albums</h4> | ||
<ul> | ||
[% artist.albums.forEach(function (album) { %] | ||
<li><figure class="secondary-album-art"> | ||
<a href="#/albums/[[ album.albumId ]]"><img src="[[ album.albumArtRef ]]" alt="" title="[[ album.name ]]" class="secondary-album-art"></a> | ||
<figcaption> | ||
<p><a href="#/albums/[[ album.albumId ]]" title="[[ album.name ]]">[[ album.name ]]</a></p> | ||
<p>[% if (!!album.artistId[0]) { %]<a href="#/artists/[[ album.artistId[0] ]]" title="[[ album.artist ]]">[% } %][[ album.artist ]][% if (!!album.artistId[0]) { %]</a>[% } %]</p> | ||
</figcaption> | ||
</figure></li> | ||
[% }); /* artist.albums.forEach */ %] | ||
</ul> | ||
</section> | ||
[% } /* artist.albums */ %] | ||
[% if (!!artist.related_artists) { %] | ||
<section id="related-artists" class="scrollable-figures"> | ||
<h4>Related Artists</h4> | ||
<ul> | ||
[% artist.related_artists.forEach(function (related) { %] | ||
<li><a href="#/artists/[[ related.artistId ]]"><figure class="secondary-artist-art"> | ||
<img src="[[ related.artistArtRef ]]" alt="" title="[[ related.name ]]" class="secondary-artist-art"> | ||
<figcaption title="[[ related.name ]]">[[ related.name ]]</figcaption> | ||
</figure></a></li> | ||
[% }); /* artist.related_artists.forEach */ %] | ||
</ul> | ||
</section> | ||
[% } /* artist.related_artists */ %] | ||
<h4>Top Tracks</h4> | ||
</div></section> | ||
</div> |
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