refactor(talks): extract talk components
This commit is contained in:
parent
d34d3415c1
commit
ad3c9171f7
4 changed files with 98 additions and 59 deletions
25
website/src/components/talk/Video.astro
Normal file
25
website/src/components/talk/Video.astro
Normal 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>
|
||||
)}
|
Loading…
Add table
Add a link
Reference in a new issue