mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-08 12:15:39 +00:00
add gradients to search grids
This commit is contained in:
parent
f141dd7f06
commit
f9cceed2ba
@ -10,6 +10,11 @@
|
|||||||
.no-res {
|
.no-res {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: grid;
|
display: grid;
|
||||||
|
height: calc(100% - $small);
|
||||||
|
place-items: center;
|
||||||
|
font-size: 2rem;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
line-height: 4rem !important;
|
||||||
|
|
||||||
.highlight {
|
.highlight {
|
||||||
padding: $small;
|
padding: $small;
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
:albums="albums.albums"
|
:albums="albums.albums"
|
||||||
:more="albums.more"
|
:more="albums.more"
|
||||||
/>
|
/>
|
||||||
<div class="separator no-border"></div>
|
<div class="separator no-border" v-if="albums.albums.length"></div>
|
||||||
<ArtistGrid
|
<ArtistGrid
|
||||||
v-if="artists.artists.length"
|
v-if="artists.artists.length"
|
||||||
:artists="artists.artists"
|
:artists="artists.artists"
|
||||||
@ -42,14 +42,14 @@
|
|||||||
!tracks.tracks.length &&
|
!tracks.tracks.length &&
|
||||||
!albums.albums.length && query.length !== 0
|
!albums.albums.length && query.length !== 0
|
||||||
"
|
"
|
||||||
class="no-res"
|
class="no-res border rounded"
|
||||||
>
|
>
|
||||||
<div class="no-res-text">
|
<div class="no-res-text">
|
||||||
No results for <span class="highlight rounded">{{ query }}</span>
|
No results for <span class="highlight rounded">{{ query }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="query.length === 0" class="no-res">
|
<div v-else-if="query.length === 0" class="no-res border rounded">
|
||||||
<div class="no-res-text">Find your music 🔍😀</div>
|
<div class="no-res-text">👻 Find your music</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="albums-results">
|
<div class="albums-results">
|
||||||
<div class="heading">ALBUMS</div>
|
<div class="heading theme">ALBUMS</div>
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
<AlbumCard v-for="album in albums" :key="album" :album="album" />
|
<AlbumCard v-for="album in albums" :key="album" :album="album" />
|
||||||
</div>
|
</div>
|
||||||
@ -31,7 +31,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
$theme: #353333;
|
$theme: #6405d1;
|
||||||
|
|
||||||
.right-search .albums-results {
|
.right-search .albums-results {
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
@ -45,13 +45,13 @@ $theme: #353333;
|
|||||||
border: solid 2px $theme;
|
border: solid 2px $theme;
|
||||||
}
|
}
|
||||||
|
|
||||||
.heading {
|
.theme {
|
||||||
background-color: $theme;
|
background-image: linear-gradient(
|
||||||
color: #fff;
|
45deg,
|
||||||
}
|
#380079 20%,
|
||||||
|
#6405d1 50%,
|
||||||
.morexx > button {
|
#1b0342 100%
|
||||||
background-color: $theme !important;
|
);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="artists-results">
|
<div class="artists-results">
|
||||||
<div class="heading">ARTISTS</div>
|
<div class="heading theme">ARTISTS</div>
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
<ArtistCard v-for="artist in artists" :key="artist" :artist="artist" />
|
<ArtistCard v-for="artist in artists" :key="artist" :artist="artist" />
|
||||||
</div>
|
</div>
|
||||||
@ -31,7 +31,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
$theme: #585858cc;
|
$theme: #464545fd;
|
||||||
|
|
||||||
.right-search .artists-results {
|
.right-search .artists-results {
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
@ -44,13 +44,13 @@ $theme: #585858cc;
|
|||||||
border: solid 2px $theme;
|
border: solid 2px $theme;
|
||||||
}
|
}
|
||||||
|
|
||||||
.heading {
|
.theme {
|
||||||
background-color: $theme;
|
background-image: linear-gradient(
|
||||||
color: #fff;
|
45deg,
|
||||||
}
|
#141414 0%,
|
||||||
|
#464545fd 50%,
|
||||||
.morexx > button {
|
#111111 100%
|
||||||
background-color: $theme !important;
|
);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="morexx">
|
<div class="morexx">
|
||||||
<button @click="loadMore">
|
<button @click="loadMore" class="theme">
|
||||||
<div class="text">Load More</div>
|
<div class="text">Load More</div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="tracks-results" v-if="tracks">
|
<div class="tracks-results" v-if="tracks">
|
||||||
<div class="heading">TRACKS</div>
|
<div class="heading theme">TRACKS</div>
|
||||||
<div class="items">
|
<div class="items">
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -39,20 +39,20 @@ function loadMore() {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
$theme: rgb(86, 86, 87);
|
$theme: #0056f5;
|
||||||
|
|
||||||
.right-search .tracks-results {
|
.right-search .tracks-results {
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
padding: $small;
|
padding: $small;
|
||||||
border: 2px solid $theme;
|
border: 2px solid $theme;
|
||||||
|
|
||||||
.heading {
|
.theme {
|
||||||
background-color: $theme;
|
background-image: linear-gradient(
|
||||||
color: #fff;
|
45deg,
|
||||||
}
|
#21216b 20%,
|
||||||
|
$theme 50%,
|
||||||
.morexx > button {
|
#16266b 100%
|
||||||
background-color: $theme !important;
|
);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user