File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,14 @@ import QuestionBlocks from '../partials/question-blocks';
66import FeaturesZigZag from '../partials/features-zigzag' ;
77import HeroHome from '../partials/hero-home' ;
88import PageIllustration from '../partials/page-illustration' ;
9+ import VideoEmbed from '../partials/video-embed' ;
910
1011import { useLocation } from '@docusaurus/router' ;
1112import 'aos/dist/aos.css' ;
1213import '../css/style.css' ;
1314
15+ const WHAT_IS_OPENFEATURE_VIDEO_ID = 'heQ83k15ZE4' ;
16+
1417export default function Home ( ) : JSX . Element {
1518 const location = useLocation ( ) ;
1619 const { siteConfig } = useDocusaurusContext ( ) ;
@@ -42,6 +45,7 @@ export default function Home(): JSX.Element {
4245 { /* Page sections */ }
4346 < HeroHome />
4447 < QuestionBlocks />
48+ < VideoEmbed videoId = { WHAT_IS_OPENFEATURE_VIDEO_ID } />
4549 < FeaturesZigZag />
4650 </ main >
4751 </ div >
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import LiteYouTubeEmbed from 'react-lite-youtube-embed' ;
3+ import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css' ;
4+
5+ interface VideoEmbedProps {
6+ videoId : string ;
7+ title ?: string ;
8+ }
9+
10+ function VideoEmbed ( { videoId, title = "YouTube video player" } : VideoEmbedProps ) {
11+ return (
12+ < section >
13+ < div className = "max-w-6xl mx-auto px-4 sm:px-6" >
14+ < div className = "py-12 md:py-20 border-t border-gray-800" >
15+ < div className = "max-w-3xl mx-auto" >
16+ < LiteYouTubeEmbed id = { videoId } title = { title } poster = "maxresdefault" webp />
17+ </ div >
18+ </ div >
19+ </ div >
20+ </ section >
21+ ) ;
22+ }
23+
24+ export default VideoEmbed ;
You can’t perform that action at this time.
0 commit comments