mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00: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
|
|
@ -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)}>
|
||||
|
|
|
|||
Loading…
Reference in New Issue