Last active
January 21, 2025 00:41
-
-
Save IgnetStudio/34d0702de65b31081af2de7564c9fe03 to your computer and use it in GitHub Desktop.
Code to be inserted in Framer app as a "Code Component" (apply YOUTUBE_VIDEO_ID within code)
This file contains hidden or 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
export default function Video(props) { | |
return ( | |
<div style={containerStyle}> | |
<iframe | |
width="560" | |
height="315" | |
src="https://www.youtube.com/embed/YOUTUBE_VIDEO_ID" | |
frameborder="0" | |
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" | |
allowfullscreen | |
></iframe> | |
</div> | |
) | |
} | |
const containerStyle = { | |
height: "100%", | |
display: "flex", | |
justifyContent: "center", | |
alignItems: "center", | |
overflow: "hidden", | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment