mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
Merge - fix search and add correct image path for album card (#52)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<router-link
|
||||
:to="{
|
||||
name: 'AlbumView',
|
||||
params: { album: album.album, artist: album.artist },
|
||||
params: { album: album.title, artist: album.artist },
|
||||
}"
|
||||
class="result-item"
|
||||
>
|
||||
@@ -10,20 +10,24 @@
|
||||
<div
|
||||
class="album-art image"
|
||||
:style="{
|
||||
backgroundImage: `url("${album.image}")`,
|
||||
backgroundImage: `url("${imguri + album.image}")`,
|
||||
}"
|
||||
></div>
|
||||
<div class="play shadow-lg image"></div>
|
||||
</div>
|
||||
<div class="title ellip">{{ album.album }}</div>
|
||||
<div class="title ellip">{{ album.title }}</div>
|
||||
<div class="artistsx ellipsis">{{ album.artist }}</div>
|
||||
</router-link>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ["album"],
|
||||
};
|
||||
<script setup lang="ts">
|
||||
import { AlbumInfo } from "../../interfaces";
|
||||
import { paths } from "../../config";
|
||||
|
||||
const imguri = paths.images.thumb;
|
||||
defineProps<{
|
||||
album: AlbumInfo;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="xartist" :style="{ backgroundColor: `#${color}` }">
|
||||
<div
|
||||
class="artist-image image border-sm"
|
||||
:style="{ backgroundImage: `url('${artist.image}')` }"
|
||||
:style="{ backgroundImage: `url('${imguri + artist.image}')` }"
|
||||
></div>
|
||||
<div>
|
||||
<p class="artist-name ellipsis">{{ artist.name }}</p>
|
||||
@@ -10,10 +10,16 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ["artist", "color"],
|
||||
};
|
||||
<script setup lang="ts">
|
||||
import { paths } from "../../config";
|
||||
|
||||
const imguri = paths.images.artist;
|
||||
|
||||
defineProps<{
|
||||
artist: any;
|
||||
color: string;
|
||||
}>();
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@@ -24,14 +30,13 @@ export default {
|
||||
|
||||
min-width: 8.25em;
|
||||
height: 11em;
|
||||
border-radius: .75rem;
|
||||
border-radius: 0.75rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
|
||||
|
||||
.artist-image {
|
||||
width: 7em;
|
||||
height: 7em;
|
||||
@@ -41,7 +46,7 @@ export default {
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
transition: all 0.5s ease-in-out;
|
||||
transition-delay: .25s;
|
||||
transition-delay: 0.25s;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
|
||||
Reference in New Issue
Block a user