mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
major redesign and refactor
+ centralized urls + reduce max app width + bump up header height to 23rem
This commit is contained in:
@@ -10,23 +10,14 @@
|
||||
: '',
|
||||
}"
|
||||
>
|
||||
<div class="big-img noscroll" :class="{ imgSmall: widthIsSmall }">
|
||||
<img :src="imguri.thumb + album.image" class="rounded" />
|
||||
</div>
|
||||
<div
|
||||
class="info"
|
||||
:class="{ nocontrast: album.colors ? isLight(album.colors[0]) : false }"
|
||||
>
|
||||
<div class="art">
|
||||
<img
|
||||
:src="
|
||||
widthIsSmall
|
||||
? imguri.thumb + album.image
|
||||
: imguri.artist + album.artistimg
|
||||
"
|
||||
class="shadow-lg"
|
||||
loading="lazy"
|
||||
:class="`${widthIsSmall ? 'rounded' : 'circular'}`"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<div class="album-info">
|
||||
<div class="top">
|
||||
<div class="h">
|
||||
<span v-if="album.is_soundtrack">Soundtrack</span>
|
||||
@@ -53,9 +44,13 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="big-img noscroll" v-if="!widthIsSmall">
|
||||
<img :src="imguri.thumb + album.image" class="rounded" />
|
||||
<div class="art" v-if="!widthIsSmall">
|
||||
<img
|
||||
:src="imguri.artist + album.artistimg"
|
||||
class="shadow-lg circular"
|
||||
loading="lazy"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -106,7 +101,7 @@ useVisibility(albumheaderthing, handleVisibilityState);
|
||||
<style lang="scss">
|
||||
.a-header {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr max-content;
|
||||
grid-template-columns: max-content 1fr;
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
height: 100% !important;
|
||||
@@ -116,23 +111,38 @@ useVisibility(albumheaderthing, handleVisibilityState);
|
||||
.big-img {
|
||||
height: calc(100%);
|
||||
width: 16rem;
|
||||
margin: auto 0;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
|
||||
img {
|
||||
height: 100%;
|
||||
height: 16rem;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.big-img.imgSmall {
|
||||
width: 12rem;
|
||||
|
||||
img {
|
||||
height: 12rem;
|
||||
}
|
||||
}
|
||||
|
||||
.nocontrast {
|
||||
color: $black;
|
||||
}
|
||||
|
||||
.info {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr max-content;
|
||||
height: 100%;
|
||||
align-items: flex-end;
|
||||
|
||||
.art {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
img {
|
||||
height: 6rem;
|
||||
@@ -146,6 +156,7 @@ useVisibility(albumheaderthing, handleVisibilityState);
|
||||
font-size: 14px;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 600;
|
||||
@@ -158,10 +169,6 @@ useVisibility(albumheaderthing, handleVisibilityState);
|
||||
}
|
||||
}
|
||||
|
||||
.separator {
|
||||
width: 20rem;
|
||||
}
|
||||
|
||||
.bottom {
|
||||
margin-top: $smaller;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div
|
||||
class="table border rounded"
|
||||
class="table"
|
||||
v-if="tracks.length"
|
||||
ref="tracklistElem"
|
||||
:class="{
|
||||
@@ -181,7 +181,7 @@ function getTrackList() {
|
||||
|
||||
.table.isSmall {
|
||||
.songlist-item {
|
||||
grid-template-columns: 1.5rem 1.5fr 2rem 2.5rem;
|
||||
grid-template-columns: 1.5rem 2fr 2rem 2.5rem;
|
||||
}
|
||||
|
||||
.song-artists,
|
||||
@@ -199,7 +199,7 @@ function getTrackList() {
|
||||
|
||||
.table.isMedium {
|
||||
.songlist-item {
|
||||
grid-template-columns: 1.5rem 1.5fr 1fr 2rem 2.5rem;
|
||||
grid-template-columns: 1.5rem 2fr 1fr 2rem 2.5rem;
|
||||
}
|
||||
|
||||
.song-album {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<input
|
||||
type="search"
|
||||
class="header-input rounded-sm pad-sm"
|
||||
placeholder="search here"
|
||||
placeholder="Search here"
|
||||
v-model.trim="source"
|
||||
id="page-search"
|
||||
/>
|
||||
|
||||
@@ -103,7 +103,7 @@ function showMenu(e: Event) {
|
||||
<style lang="scss">
|
||||
.songlist-item {
|
||||
display: grid;
|
||||
grid-template-columns: 1.5rem 1.5fr 1fr 1.5fr 2rem 2.5rem;
|
||||
grid-template-columns: 1.5rem 2fr 1fr 1.5fr 2rem 2.5rem;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
height: 3.75rem;
|
||||
|
||||
Reference in New Issue
Block a user