modified: components/video.tsx new file: components/youtube.tsx modified: content/posts/informatics/class-10v.mdxmain
parent
2ea60fb663
commit
ba1c3fb19b
@ -0,0 +1,19 @@ |
||||
type TableOfContentsProps = { |
||||
id: string; |
||||
}; |
||||
|
||||
export function YouTube({ id }: TableOfContentsProps) { |
||||
|
||||
return ( |
||||
<section className="mt-8 mb-10 flex w-full flex-col rounded bg-slate-300/50 dark:bg-slate-600/50 sm:w-fit"> |
||||
<iframe
|
||||
width="730"
|
||||
height="480"
|
||||
src={"https://www.youtube.com/embed/" + id}
|
||||
title="YouTube video player"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||
> |
||||
</iframe> |
||||
</section> |
||||
); |
||||
} |
Loading…
Reference in new issue