Hyperpipe/src/components/NowPlaying.vue
Shiny Nematoda 0c1bb172b1 Changes:
- Added Preferences tab
	- Piped Api Selection
	- Bug Fixes
2022-05-15 09:51:06 +05:30

48 lines
672 B
Vue

<script setup>
defineProps({
title: {
type: String,
default: '',
},
artist: {
type: String,
default: '',
},
artistUrl: {
type: String,
default: '',
},
});
defineEmits(['get-artist']);
</script>
<template>
<div v-if="title && artist" class="wrap">
<h1>{{ title }}</h1>
<h3>
<a :href="artistUrl" @click.prevent="$emit('get-artist', artistUrl)">{{
artist
}}</a>
</h3>
</div>
</template>
<style scoped>
h1 {
font-weight: 500;
font-size: 2.6rem;
top: -10px;
}
h3 {
font-size: 1.2rem;
}
.wrap {
text-align: center;
}
@media (min-width: 1024px) {
.wrap {
text-align: left;
}
}
</style>