mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 07:49:43 +02:00
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:
parent
acf4ae8f96
commit
472840dbd8
1 changed files with 25 additions and 0 deletions
|
@ -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 {
|
function Home(): JSX.Element {
|
||||||
const {
|
const {
|
||||||
siteConfig: {customFields, tagline},
|
siteConfig: {customFields, tagline},
|
||||||
|
@ -285,6 +303,13 @@ function Home(): JSX.Element {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="container text--center">
|
||||||
|
<div className="row">
|
||||||
|
<div className="col">
|
||||||
|
<ELIVideo />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<TweetsSection />
|
<TweetsSection />
|
||||||
<div className={clsx(styles.section)}>
|
<div className={clsx(styles.section)}>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue