initial pass at media page
This commit is contained in:
parent
5ac22dff6c
commit
84d56cbeaa
11 changed files with 1224 additions and 58 deletions
18
components/YouTubeVideo.tsx
Normal file
18
components/YouTubeVideo.tsx
Normal file
|
@ -0,0 +1,18 @@
|
|||
const YoutubeVideo = (props) => {
|
||||
const { title, data } = props
|
||||
|
||||
return (
|
||||
<div
|
||||
className="relative h-0 w-full max-w-full overflow-hidden"
|
||||
style={{ paddingBottom: '56.25%' }}
|
||||
>
|
||||
<iframe
|
||||
title={title}
|
||||
src={`https://www.youtube.com/embed/${data}`}
|
||||
className="absolute top-0 left-0 h-full w-full"
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default YoutubeVideo
|
Loading…
Add table
Add a link
Reference in a new issue