💄 update vinyl-page

Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
Sindre Kjelsrud 2024-02-20 10:30:18 +01:00
parent 90deb66ad8
commit 5309908a11
Signed by untrusted user who does not match committer: sidski
GPG key ID: D2BBDF3EDE6BA9A6
25 changed files with 63 additions and 32 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

BIN
public/img/vinyl/asia.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
public/img/vinyl/dare.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

View file

@ -1,94 +1,117 @@
[
{
"album": "Harry's House",
"artist": "Harry Styles"
"artist": "Harry Styles",
"cover": "/img/vinyl/harrys_house.webp"
},
{
"album": "SÅ KLART DET GJØR VONDT",
"artist": "Ramón"
"artist": "Ramón",
"cover": "/img/vinyl/sa_klart_det_gjor_vondt.webp"
},
{
"album": "Minecraft Volume Alpha",
"artist": "C418"
"artist": "C418",
"cover": "/img/vinyl/minecraft_volume_alpha.webp"
},
{
"album": "College Park",
"artist": "Logic"
"artist": "Logic",
"cover": "/img/vinyl/college_park.webp"
},
{
"album": "Evig Eventyr",
"artist": "Ka2"
"artist": "Ka2",
"cover": "/img/vinyl/evig_eventyr.webp"
},
{
"album": "Grease",
"artist": "John Travolta & Olivia Newton-John"
"artist": "John Travolta & Olivia Newton-John",
"cover": "/img/vinyl/grease.webp"
},
{
"album": "Under Cover",
"artist": "The Rolling Stones"
"artist": "The Rolling Stones",
"cover": "/img/vinyl/under_cover.webp"
},
{
"album": "The Beatles (The White Album)",
"artist": "The Beatles"
"artist": "The Beatles",
"cover": "/img/vinyl/the_white_album.webp"
},
{
"album": "Beverly Hills Cop",
"artist": "Various artists"
"artist": "Various artists",
"cover": "/img/vinyl/beverly_hills_cop.webp"
},
{
"album": "One Trick Pony",
"artist": "Paul Simon"
"artist": "Paul Simon",
"cover": "/img/vinyl/one_trick_pony.webp"
},
{
"album": "The Domino Theory",
"artist": "Bolland"
"artist": "Bolland",
"cover": "/img/vinyl/the_domino_theory.jpg"
},
{
"album": "Master of Reality",
"artist": "Black Sabbath"
"artist": "Black Sabbath",
"cover": "/img/vinyl/master_of_reality.webp"
},
{
"album": "Studio Tan",
"artist": "Frank Zappa"
"artist": "Frank Zappa",
"cover": "/img/vinyl/studio_tan.webp"
},
{
"album": "DARE!",
"artist": "The Human League"
"artist": "The Human League",
"cover": "/img/vinyl/dare.webp"
},
{
"album": "Saturday Night Fever",
"artist": "Bee Gees"
"artist": "Bee Gees",
"cover": "/img/vinyl/saturday_night_fever.webp"
},
{
"album": "Cruisin",
"artist": "Village People"
"artist": "Village People",
"cover": "/img/vinyl/cruisin.webp"
},
{
"album": "Turn Back",
"artist": "Toto"
"artist": "Toto",
"cover": "/img/vinyl/turn_back.jpg"
},
{
"album": "Arrival",
"artist": "ABBA"
"artist": "ABBA",
"cover": "/img/vinyl/arrival.webp"
},
{
"album": "Knights of the New Thunder",
"artist": "TNT"
"artist": "TNT",
"cover": "/img/vinyl/knights_of_the_new_thunder.webp"
},
{
"album": "Combat Rock",
"artist": "The Clash"
"artist": "The Clash",
"cover": "/img/vinyl/combat_rock.webp"
},
{
"album": "Asia",
"artist": "Asia"
"artist": "Asia",
"cover": "/img/vinyl/asia.webp"
},
{
"album": "Face Value",
"artist": "Phil Collins"
"artist": "Phil Collins",
"cover": "/img/vinyl/face_value.webp"
},
{
"album": "Greatest Hits",
"artist": "Air Supply"
"artist": "Air Supply",
"cover": "/img/vinyl/greatest_hits_airsupply.webp"
}
]
]

View file

@ -3,11 +3,12 @@ import SectionContainer from '../components/SectionContainer.astro';
import vinyl from '../data/vinyl.json'
const vinylByAlbumTitle = vinyl.reduce((acc:any, currentVinyl) => {
const { album, artist } = currentVinyl;
const { album, artist, cover } = currentVinyl;
if (!acc[album]) {
acc[album] = {
vinyls: [],
artist: artist
artist: artist,
cover: cover
};
}
acc[album].vinyls.push(currentVinyl);
@ -28,11 +29,18 @@ const vinylData = Object.keys(vinylByAlbumTitle).map(albumTitle => {
<SectionContainer>
<main class="flex flex-col gap-4 mt-4">
<h1 class="text-3xl font-extrabold">📀 Platesamlinga</h1>
{vinylData.map((album) => (
<div class="flex flex-col">
<li><strong>{album.title}</strong> by {album.artist}</li>
</div>
))}
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-6">
{vinylData.map((album) => (
<div class="flex flex-col">
<img
src={album.cover}
class="w-400"
/>
<p class="font-bold">{album.title}</p>
<p>{album.artist}</p>
</div>
))}
</div>
</main>
</SectionContainer>
@ -41,4 +49,4 @@ const vinylData = Object.keys(vinylByAlbumTitle).map(albumTitle => {
list-style: disc inside;
padding: 0 0 0 10px;
}
</style>
</style>