Fix #46 add playlists and version to footer

This commit is contained in:
2025-07-10 13:38:41 +02:00
parent 7cdfa00af5
commit 44fc2bb621
11 changed files with 62 additions and 7 deletions

View File

@ -1,6 +1,10 @@
<script>
import git from '$lib/assets/git-branch-fill.svg';
import rss from '$lib/assets/rss-fill.svg';
import spotify from '$lib/assets/spotify-fill.svg';
import youtube from '$lib/assets/youtube-fill.svg';
import tidal from '$lib/assets/tidal.svg';
import { version } from '$app/environment';
</script>
<div class="footer">
@ -16,7 +20,7 @@
<div>
<a href="https://phlaym.net/git/phlaym/moshing-mammut">
<img alt="Git branch" src={git} class="icon" />
<span class="label">Source Code</span>
<span class="label"><span class="feedSuffix">Source Code&nbsp;</span>v{version}</span>
</a>
</div>
|
@ -26,6 +30,30 @@
<span class="label">RSS<span class="feedSuffix">&nbsp;Feed</span></span>
</a>
</div>
|
<div>
<a href="https://open.spotify.com/playlist/62B8GOmJE3YrASAXSQVRVU" target="_blank">
<img alt="Spotify" src={spotify} class="icon" />
<span class="label">Spotify</span>
</a>
</div>
|
<div>
<a
href="https://www.youtube.com/playlist?list=PLrSjNPaM6N4S54jT5R-ebKAYLBIEDb8sX"
target="_blank"
>
<img alt="Youtube" src={youtube} class="icon" />
<span class="label">Youtube</span>
</a>
</div>
|
<div>
<a href="https://tidal.com/playlist/9f60278a-7b9b-459b-b7e5-65a7849fe498" target="_blank">
<img alt="Tidal" src={tidal} class="icon" />
<span class="label">Tidal</span>
</a>
</div>
</div>
<style>

View File

@ -131,11 +131,10 @@
</picture>
<a href={song.pageUrl ?? song.postedUrl} target="_blank">
<div class="info">
<picture>
<picture class="cover">
{@html getSourceSetHtml(song)}
<img
src={song.thumbnailUrl}
class="cover"
alt="Cover for {song.artistName} - {song.title}"
loading="lazy"
width={song.thumbnailWidth}