repod/src/components/Discover/TopItem.vue
Michel Roux 477ccfd387
All checks were successful
repod / nextcloud (push) Successful in 1m14s
repod / nodejs (push) Successful in 1m37s
Player nearly ready
2023-08-27 20:01:26 +02:00

42 lines
520 B
Vue

<template>
<router-link :to="toUrl">
<img :src="imageUrl" :title="author">
</router-link>
</template>
<script>
export default {
name: 'TopItem',
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>