-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add back youtube component to embed player (#539)
* Add back youtube component to embed player * fix npm run build
- Loading branch information
Showing
4 changed files
with
30 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
interface YoutubeEmbedProps { | ||
title: string | ||
id: string | ||
start?: number | ||
} | ||
|
||
const YoutubeEmbed: React.FC<YoutubeEmbedProps> = ({ title, id, start }) => { | ||
return ( | ||
<iframe | ||
width="560" | ||
height="315" | ||
src={`https://www.youtube-nocookie.com/embed/${id}&start=${start}`} | ||
title={title} | ||
frameBorder="0" | ||
className="mx-auto mb-8" | ||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" | ||
allowFullScreen | ||
></iframe> | ||
) | ||
} | ||
|
||
export default YoutubeEmbed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0f23c11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
blog – ./
blog-caulagi.vercel.app
blog.caulagi.com
blog-git-main-caulagi.vercel.app