Added saved artists page
This commit is contained in:
1 parent
8df84bce86
commit
84658e4499
4 files changed
+142
-1
No files matched your search
@@ -0,0 +1,41 @@
|
||||
<script setup lang="ts">
|
||||
import type { Artist } from "@/utils/types"
|
||||
|
||||
const props = defineProps<{ artist: Artist }>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<article class="card">
|
||||
<NuxtLink :to="`/artist/${props.artist._id}`">
|
||||
<NuxtImg
|
||||
:src="GET_FILE(props.artist.file)"
|
||||
:alt="props.artist.name"
|
||||
placeholder
|
||||
/>
|
||||
<p>{{ props.artist.name }}</p>
|
||||
</NuxtLink>
|
||||
</article>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@use "@/styles/util" as *;
|
||||
@use "@/styles/variables" as *;
|
||||
|
||||
.card {
|
||||
@include fontSize(14px);
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: start;
|
||||
|
||||
& > a {
|
||||
& img {
|
||||
border-radius: $border-radius-standard;
|
||||
}
|
||||
|
||||
& p {
|
||||
margin-top: 0.3rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user