repod/src/components/Discover/TopItem.vue
Michel Roux e1e93771ff
All checks were successful
repod / nextcloud (push) Successful in 1m12s
repod / nodejs (push) Successful in 1m47s
Fix before refacto player
2023-08-24 23:19:54 +02:00

45 lines
573 B
Vue

<template>
<router-link :to="toUrl">
<img :alt="`${title} - ${author}`"
:src="imageUrl"
:title="author">
</router-link>
</template>
<script>
export default {
name: 'TopItem',
components: {},
props: {
author: {
type: String,
required: true,
},
imageUrl: {
type: String,
required: true,
},
link: {
type: String,
required: true,
},
title: {
type: String,
required: true,
},
},
computed: {
toUrl() {
return `/${btoa(this.link)}`
},
},
}
</script>
<style scoped>
img {
height: 100%;
width: 100%;
}
</style>