💄 update vinyl-page
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
BIN
public/img/vinyl/arrival.webp
Normal file
After Width: | Height: | Size: 99 KiB |
BIN
public/img/vinyl/asia.webp
Normal file
After Width: | Height: | Size: 165 KiB |
BIN
public/img/vinyl/beverly_hills_cop.webp
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
public/img/vinyl/college_park.webp
Normal file
After Width: | Height: | Size: 148 KiB |
BIN
public/img/vinyl/combat_rock.webp
Normal file
After Width: | Height: | Size: 98 KiB |
BIN
public/img/vinyl/cruisin.webp
Normal file
After Width: | Height: | Size: 150 KiB |
BIN
public/img/vinyl/dare.webp
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
public/img/vinyl/evig_eventyr.webp
Normal file
After Width: | Height: | Size: 534 KiB |
BIN
public/img/vinyl/face_value.webp
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
public/img/vinyl/grease.webp
Normal file
After Width: | Height: | Size: 138 KiB |
BIN
public/img/vinyl/greatest_hits_airsupply.webp
Normal file
After Width: | Height: | Size: 131 KiB |
BIN
public/img/vinyl/harrys_house.webp
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
public/img/vinyl/knights_of_the_new_thunder.webp
Normal file
After Width: | Height: | Size: 328 KiB |
BIN
public/img/vinyl/master_of_reality.webp
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
public/img/vinyl/minecraft_volume_alpha.webp
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
public/img/vinyl/one_trick_pony.webp
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
public/img/vinyl/sa_klart_det_gjor_vondt.webp
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
public/img/vinyl/saturday_night_fever.webp
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
public/img/vinyl/studio_tan.webp
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
public/img/vinyl/the_domino_theory.jpg
Normal file
After Width: | Height: | Size: 467 KiB |
BIN
public/img/vinyl/the_white_album.webp
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
public/img/vinyl/turn_back.jpg
Normal file
After Width: | Height: | Size: 167 KiB |
BIN
public/img/vinyl/under_cover.webp
Normal file
After Width: | Height: | Size: 132 KiB |
|
@ -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"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
|
|
@ -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>
|
||||
|
|