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">
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>