feat: apple music -> last.fm

This commit is contained in:
Cory Dransfeldt 2023-07-26 16:37:16 -07:00
parent fc59d929b4
commit 657e21e9cd
No known key found for this signature in database
22 changed files with 88 additions and 1347 deletions

View file

@ -3,7 +3,7 @@
{% render "icons/email.liquid" %}
{% render "icons/github.liquid" %}
{% render "icons/mastodon.liquid" %}
{% render "icons/apple-music.liquid" %}
{% render "icons/lastfm.liquid" %}
{% render "icons/letterboxd.liquid" %}
{% render "icons/trakt.liquid" %}
{% render "icons/coffee.liquid" %}

View file

@ -4,7 +4,7 @@
<div class="ml-1">Albums</div>
</h2>
<div class="grid grid-cols-2 gap-2 md:grid-cols-4 not-prose">
{% for album in music.albums %}
{% for album in music %}
<a href="{{ album.url }}" title="{{album.name | escape}} by {{ album.artist | escape }}">
<div class="relative block h-full">
<div class="absolute left-0 top-0 h-full w-full rounded-lg border border-purple-600 hover:border-purple-500 bg-cover-gradient dark:border-purple-400 dark:hover:border-purple-500"></div>
@ -15,7 +15,7 @@
</div>
</div>
{%- capture albumName %}{{ album.name | escape }}{% endcapture -%}
{% image album.art, albumName, 'rounded-lg w-full h-full', '225px' %}
{% image album.image, albumName, 'rounded-lg w-full h-full', '225px' %}
</div>
</a>
{% endfor %}

View file

@ -4,18 +4,18 @@
<div class="ml-1">Artists</div>
</h2>
<div class="grid grid-cols-2 gap-2 md:grid-cols-4 not-prose">
{% for artist in music.artists %}
<a href="{{ artist.url }}" title="{{artist.artist | escape}}">
{% for artist in music %}
<a href="{{ artist.url }}" title="{{artist.name | escape}}">
<div class="relative block">
<div class="absolute left-0 top-0 h-full w-full rounded-lg border border-purple-600 hover:border-purple-500 bg-cover-gradient dark:border-purple-400 dark:hover:border-purple-500"></div>
<div class="absolute left-1 bottom-2 drop-shadow-md">
<div class="px-1 text-xs font-bold text-white line-clamp-2">{{ artist.artist }}</div>
<div class="px-1 text-xs font-bold text-white line-clamp-2">{{ artist.name }}</div>
<div class="px-1 text-xs text-white">
{{ artist.plays }} plays
</div>
</div>
{%- capture artistImg %}{{ artist.artist | artist }}{% endcapture -%}
{%- capture artistName %}{{ artist.artist | escape }}{% endcapture -%}
{%- capture artistImg %}{{ artist.image }}{% endcapture -%}
{%- capture artistName %}{{ artist.name | escape }}{% endcapture -%}
{% image artistImg, artistName, 'rounded-lg w-full', '225px', 'eager' %}
</div>
</a>