fix: it actually works now 🎉

This commit is contained in:
RB007 2026-02-22 01:24:54 -05:00
parent 5dd4bc5dc5
commit 66a8dc06e0

View File

@ -1,15 +1,17 @@
<script setup lang="ts"> <script setup lang="ts">
defineProps<{ videoId: string }>(); defineProps<{ videoid: string }>();
</script> </script>
<template> <template>
<div class="not-prose mx-auto max-w-3xl w-full aspect-video overflow-hidden rounded-lg"> <div class="not-prose mx-auto max-w-3xl w-full aspect-video overflow-hidden rounded-lg">
<iframe <ClientOnly>
:src="`https://www.youtube.com/embed/${videoId}`" <iframe
class="h-full w-full" :src="`https://www.youtube.com/embed/${videoid}`"
frameborder="0" class="h-full w-full"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" frameborder="0"
allowfullscreen allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
/> allowfullscreen
/>
</ClientOnly>
</div> </div>
</template> </template>