moved music to garden section; added highlight effect to albums
@@ -2,6 +2,10 @@
|
|||||||
import BannerTitleAlt from "$lib/banner-title-alt.svelte";
|
import BannerTitleAlt from "$lib/banner-title-alt.svelte";
|
||||||
import Content from "$lib/content.svelte";
|
import Content from "$lib/content.svelte";
|
||||||
import { albums, type AlbumEntry } from "$lib/likedalbums";
|
import { albums, type AlbumEntry } from "$lib/likedalbums";
|
||||||
|
|
||||||
|
let prnt = function(key: string) {
|
||||||
|
console.log(key)
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
@@ -17,14 +21,16 @@
|
|||||||
<Content>
|
<Content>
|
||||||
<div class="album-button-container">
|
<div class="album-button-container">
|
||||||
{#each albums.entries() as [key, album]}
|
{#each albums.entries() as [key, album]}
|
||||||
{@render albumButton({ album })}
|
{@render albumButton({ key, album })}
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
</Content>
|
</Content>
|
||||||
|
|
||||||
{#snippet albumButton({
|
{#snippet albumButton({
|
||||||
album
|
key,
|
||||||
|
album,
|
||||||
}: {
|
}: {
|
||||||
|
key: string;
|
||||||
album: AlbumEntry;
|
album: AlbumEntry;
|
||||||
})}
|
})}
|
||||||
<div class="album-button">
|
<div class="album-button">
|
||||||
@@ -32,7 +38,9 @@
|
|||||||
class="album-button-img"
|
class="album-button-img"
|
||||||
type="image"
|
type="image"
|
||||||
src="{album.img}"
|
src="{album.img}"
|
||||||
alt="Album art for {album.artist} – {album.title}" />
|
alt="Album art for {album.artist} – {album.title}"
|
||||||
|
on:click={() => prnt(key)}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
|
|
||||||
@@ -46,6 +54,15 @@
|
|||||||
.album-button {
|
.album-button {
|
||||||
width: calc(100%/12);
|
width: calc(100%/12);
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
|
transition: 0.06s ease-in-out scale, 0.1s ease-in-out filter;
|
||||||
|
scale: 1.0;
|
||||||
|
z-index: 1;
|
||||||
|
filter: saturate(0.2) brightness(0.7);
|
||||||
|
}
|
||||||
|
.album-button:hover {
|
||||||
|
scale: 1.25;
|
||||||
|
z-index: 20;
|
||||||
|
filter: saturate(1.0) brightness(1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.album-button-img {
|
.album-button-img {
|
||||||
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 140 KiB |
|
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 92 KiB |
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |