docs: add eli5 video to home page (#6659)

* Adding eli5 video the home page

* Update index.tsx

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
Dmitry Vinnik | Meta 2022-02-11 16:11:37 -08:00 committed by GitHub
parent acf4ae8f96
commit 472840dbd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,6 +109,24 @@ function TweetsSection() {
);
}
function ELIVideo() {
return (
<div className="container">
<div className="margin-top--md">
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/_An9EsKPhp0"
title="Explain Like I'm 5: Docusaurus"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
</div>
</div>
);
}
function Home(): JSX.Element {
const {
siteConfig: {customFields, tagline},
@ -285,6 +303,13 @@ function Home(): JSX.Element {
</div>
</div>
</div>
<div className="container text--center">
<div className="row">
<div className="col">
<ELIVideo />
</div>
</div>
</div>
</div>
<TweetsSection />
<div className={clsx(styles.section)}>