mirror of
https://github.com/koel/koel
synced 2024-12-20 09:33:23 +00:00
33 lines
527 B
Vue
33 lines
527 B
Vue
<template>
|
||
<a :href="sponsor.url" :title="`${sponsor.name} – ${sponsor.slogan}`">
|
||
<img :alt="`${sponsor.name} logo`" :src="sponsor.logo" v-bind="$attrs">
|
||
</a>
|
||
</template>
|
||
|
||
<script setup lang="ts">
|
||
interface Sponsor {
|
||
name: string
|
||
url: string
|
||
logo: string
|
||
slogan: string
|
||
}
|
||
|
||
const sponsor = defineProps<Sponsor>()
|
||
|
||
defineOptions({
|
||
inheritAttrs: false
|
||
})
|
||
</script>
|
||
|
||
<style scoped lang="postcss">
|
||
img {
|
||
opacity: 0.8;
|
||
|
||
&:hover {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
.dark img {
|
||
filter: grayscale(1) invert(1);
|
||
}
|
||
</style>
|