Initial commit
This commit is contained in:
28
components/experiments/spotify/SpotifyEmbed.vue
Normal file
28
components/experiments/spotify/SpotifyEmbed.vue
Normal file
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div v-if="spotifyUri">
|
||||
<iframe
|
||||
:src="spotifyEmbedUrl"
|
||||
width="100%"
|
||||
height="380"
|
||||
frameborder="0"
|
||||
allowtransparency="true"
|
||||
allow="encrypted-media"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
spotifyUri: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
spotifyEmbedUrl () {
|
||||
return `https://open.spotify.com/embed/${this.spotifyUri}`
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Reference in New Issue
Block a user