refactor: move website files to the root level
This commit is contained in:
parent
c2887ecbc5
commit
2cbbfd60ff
590 changed files with 0 additions and 4484 deletions
25
src/components/talk/Video.astro
Normal file
25
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>
|
||||
<iframe
|
||||
allowfullscreen
|
||||
class="w-full aspect-[16/9]"
|
||||
frameborder="0"
|
||||
src={`https://www.youtube.com/embed/${id}?rel=0&iv_load_policy=3`}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue