major redesign and refactor

+ centralized urls
+ reduce max app width
+ bump up header height to 23rem
This commit is contained in:
geoffrey45
2022-09-15 12:36:30 +03:00
parent 69b8b17e84
commit 94eb198e47
17 changed files with 179 additions and 82 deletions
+33 -26
View File
@@ -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;
+3 -3
View File
@@ -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 {
+1 -1
View File
@@ -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"
/>
+1 -1
View File
@@ -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;