mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +02:00
Adding ELI5 video to the home page
This commit is contained in:
parent
916e4f1a26
commit
c02269769f
1 changed files with 24 additions and 0 deletions
|
@ -109,6 +109,23 @@ 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={true}></iframe>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function Home(): JSX.Element {
|
||||
const {
|
||||
siteConfig: {customFields, tagline},
|
||||
|
@ -285,6 +302,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…
Add table
Add a link
Reference in a new issue