refactor(talks): extract talk components

This commit is contained in:
Oliver Davies 2022-10-15 14:28:36 +01:00
parent d34d3415c1
commit ad3c9171f7
4 changed files with 98 additions and 59 deletions

View file

@ -0,0 +1,25 @@
---
interface Props {
id: string
type: string
}
const { id, type }: Props = Astro.props
---
{type == "youtube" && (
<div>
<h2 class="mb-2">Video</h2>
<div class="video-full">
<iframe
width="678"
height="408"
src={`https://www.youtube.com/embed/${id}?rel=0&iv_load_policy=3`}
frameborder="0"
allowfullscreen
>
</iframe>
</div>
</div>
)}