fix: it actually works now 🎉
This commit is contained in:
parent
5dd4bc5dc5
commit
66a8dc06e0
@ -1,15 +1,17 @@
|
||||
<script setup lang="ts">
|
||||
defineProps<{ videoId: string }>();
|
||||
defineProps<{ videoid: string }>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="not-prose mx-auto max-w-3xl w-full aspect-video overflow-hidden rounded-lg">
|
||||
<iframe
|
||||
:src="`https://www.youtube.com/embed/${videoId}`"
|
||||
class="h-full w-full"
|
||||
frameborder="0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowfullscreen
|
||||
/>
|
||||
<ClientOnly>
|
||||
<iframe
|
||||
:src="`https://www.youtube.com/embed/${videoid}`"
|
||||
class="h-full w-full"
|
||||
frameborder="0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowfullscreen
|
||||
/>
|
||||
</ClientOnly>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user