mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 13:08:01 +02:00
parent
764bce8ea7
commit
1468e3743f
4 changed files with 39 additions and 29 deletions
|
@ -347,43 +347,47 @@ img {
|
||||||
box-shadow: 0 0 0.5rem var(--color-border);
|
box-shadow: 0 0 0.5rem var(--color-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.grid, .grid-3 {
|
||||||
|
--col: 1;
|
||||||
|
grid-template-columns: repeat(var(--col), 1fr);
|
||||||
|
}
|
||||||
.grid-3 {
|
.grid-3 {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
}
|
||||||
@media (max-width: 530px) {
|
@media (max-width: 530px) {
|
||||||
[data-compact] .grid-3 {
|
[data-compact] .grid-3 {
|
||||||
grid-template-columns: 1fr 1fr;
|
--col: 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 530px) {
|
@media (min-width: 530px) {
|
||||||
.grid-3 {
|
.grid-3 {
|
||||||
grid-template-columns: 1fr 1fr;
|
--col: 2;
|
||||||
}
|
}
|
||||||
[data-compact] .grid-3 {
|
[data-compact] .grid-3 {
|
||||||
grid-template-columns: 1fr 1fr 1fr;
|
--col: 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 780px) {
|
@media (min-width: 780px) {
|
||||||
|
.grid {
|
||||||
|
--col: 2;
|
||||||
|
display: grid;
|
||||||
|
}
|
||||||
.grid-3 {
|
.grid-3 {
|
||||||
grid-template-columns: 1fr 1fr 1fr;
|
--col: 3;
|
||||||
}
|
}
|
||||||
[data-compact] .grid-3 {
|
[data-compact] .grid-3 {
|
||||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
--col: 4;
|
||||||
}
|
|
||||||
}
|
|
||||||
@media (min-width: 930px) {
|
|
||||||
.grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 1fr 1fr;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 1130px) {
|
@media (min-width: 1130px) {
|
||||||
|
.grid {
|
||||||
|
--col: 3;
|
||||||
|
}
|
||||||
.grid-3 {
|
.grid-3 {
|
||||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
--col: 4;
|
||||||
}
|
}
|
||||||
[data-compact] .grid-3 {
|
[data-compact] .grid-3 {
|
||||||
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
--col: 5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"date": "2023-07-29"
|
"date": "2023-07-30"
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,19 +62,6 @@ onMounted(getCharts);
|
||||||
</select>
|
</select>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-if="data.artists.length > 0">
|
|
||||||
<h2 class="center">{{ t('title.artists') }}</h2>
|
|
||||||
<div class="grid-3 circle">
|
|
||||||
<AlbumItem
|
|
||||||
v-for="i in data.artists"
|
|
||||||
:key="i.id"
|
|
||||||
:name="i.title"
|
|
||||||
:author="i.subtitle"
|
|
||||||
:art="i.thumbnails[1].url"
|
|
||||||
@open-album="getArtist(i.id)" />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<template v-if="data.songs.length > 0">
|
<template v-if="data.songs.length > 0">
|
||||||
<h2 class="center">{{ t('title.songs') }}</h2>
|
<h2 class="center">{{ t('title.songs') }}</h2>
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
|
@ -100,4 +87,23 @@ onMounted(getCharts);
|
||||||
" />
|
" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template v-if="data.artists.length > 0">
|
||||||
|
<h2 class="center">{{ t('title.artists') }}</h2>
|
||||||
|
<div class="grid-3 circle">
|
||||||
|
<AlbumItem
|
||||||
|
v-for="i in data.artists"
|
||||||
|
:key="i.id"
|
||||||
|
:name="i.title"
|
||||||
|
:author="i.subtitle"
|
||||||
|
:art="i.thumbnails[1].url"
|
||||||
|
@open-album="getArtist(i.id)" />
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.center {
|
||||||
|
margin-top: 2rem;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
@ -138,7 +138,7 @@ onMounted(get);
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
letter-spacing: 0.125rem;
|
letter-spacing: 0.125rem;
|
||||||
line-break: anywhere;
|
overflow-wrap: break-word;
|
||||||
background-color: var(--color-background-mute);
|
background-color: var(--color-background-mute);
|
||||||
color: var(--btn-color);
|
color: var(--btn-color);
|
||||||
transition: background-color 0.1s ease;
|
transition: background-color 0.1s ease;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue