Skip to content

Commit

Permalink
chore(website): use lite embed instead of iframe for YouTube videos (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Apr 7, 2022
1 parent 550c92f commit c12d444
Show file tree
Hide file tree
Showing 14 changed files with 51 additions and 272 deletions.
20 changes: 4 additions & 16 deletions docs/Architecture.md
Expand Up @@ -3,26 +3,14 @@ id: architecture
title: Architecture
---

import LiteYouTubeEmbed from 'react-lite-youtube-embed';

If you are interested in learning more about how Jest works, understand its architecture, and how Jest is split up into individual reusable packages, check out this video:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/3YDiloj8_d0"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
<LiteYouTubeEmbed id="3YDiloj8_d0" />

If you'd like to learn how to build a testing framework like Jest from scratch, check out this video:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/B8FbUK0WpVU"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
<LiteYouTubeEmbed id="B8FbUK0WpVU" />

There is also a [written guide you can follow](https://cpojer.net/posts/building-a-javascript-testing-framework). It teaches the fundamental concepts of Jest and explains how various parts of Jest can be used to compose a custom testing framework.
3 changes: 3 additions & 0 deletions website/docusaurus.config.js
Expand Up @@ -69,6 +69,9 @@ module.exports = {
path.resolve('src/components/v1/legacyCSS.css'),
path.resolve('static/css/custom.css'),
path.resolve('static/css/jest.css'),
require.resolve(
'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css'
),
],
},
gtag: {
Expand Down
1 change: 1 addition & 0 deletions website/package.json
Expand Up @@ -39,6 +39,7 @@
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-github-btn": "^1.2.0",
"react-lite-youtube-embed": "^2.2.1-a",
"react-markdown": "^8.0.0"
},
"devDependencies": {
Expand Down
19 changes: 3 additions & 16 deletions website/src/pages/index.js
Expand Up @@ -11,6 +11,7 @@ import Head from '@docusaurus/Head';
import Link from '@docusaurus/Link';
import backers from '@site/backers.json';
import Translate from '@docusaurus/Translate';
import LiteYouTubeEmbed from 'react-lite-youtube-embed';

import {setupLandingAnimation} from '@site/src/pages/animations/_landingAnimation';

Expand Down Expand Up @@ -512,14 +513,7 @@ class Index extends React.Component {
<div className="blockElement imageAlignSide gridBlock video-block">
<div className="blockContent ">
<div className="video">
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/cAKYQpTC7MA"
frameBorder="0"
allow="autoplay; encrypted-media"
allowFullScreen
/>
<LiteYouTubeEmbed id="cAKYQpTC7MA" />
</div>
</div>
</div>
Expand Down Expand Up @@ -550,14 +544,7 @@ class Index extends React.Component {
<div className="blockElement imageAlignSide gridBlock video-block">
<div className="blockContent ">
<div className="video">
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/SyHzgcFefBk"
frameBorder="0"
allow="autoplay; encrypted-media"
allowFullScreen
/>
<LiteYouTubeEmbed id="SyHzgcFefBk" />
</div>
</div>
</div>
Expand Down
127 changes: 0 additions & 127 deletions website/src/pages/videos.js

This file was deleted.

2 changes: 1 addition & 1 deletion website/static/css/custom.css
Expand Up @@ -43,7 +43,7 @@ div.bottom-margin {

.blockContent div.video {
width: 100%;
height: 280px;
height: 350px;
margin-top: 20px;
padding-right: 80px;
}
Expand Down
20 changes: 4 additions & 16 deletions website/versioned_docs/version-25.x/Architecture.md
Expand Up @@ -3,26 +3,14 @@ id: architecture
title: Architecture
---

import LiteYouTubeEmbed from 'react-lite-youtube-embed';

If you are interested in learning more about how Jest works, understand its architecture, and how Jest is split up into individual reusable packages, check out this video:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/3YDiloj8_d0"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
<LiteYouTubeEmbed id="3YDiloj8_d0" />

If you'd like to learn how to build a testing framework like Jest from scratch, check out this video:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/B8FbUK0WpVU"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
<LiteYouTubeEmbed id="B8FbUK0WpVU" />

There is also a [written guide you can follow](https://cpojer.net/posts/building-a-javascript-testing-framework). It teaches the fundamental concepts of Jest and explains how various parts of Jest can be used to compose a custom testing framework.
20 changes: 4 additions & 16 deletions website/versioned_docs/version-26.x/Architecture.md
Expand Up @@ -3,26 +3,14 @@ id: architecture
title: Architecture
---

import LiteYouTubeEmbed from 'react-lite-youtube-embed';

If you are interested in learning more about how Jest works, understand its architecture, and how Jest is split up into individual reusable packages, check out this video:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/3YDiloj8_d0"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
<LiteYouTubeEmbed id="3YDiloj8_d0" />

If you'd like to learn how to build a testing framework like Jest from scratch, check out this video:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/B8FbUK0WpVU"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
<LiteYouTubeEmbed id="B8FbUK0WpVU" />

There is also a [written guide you can follow](https://cpojer.net/posts/building-a-javascript-testing-framework). It teaches the fundamental concepts of Jest and explains how various parts of Jest can be used to compose a custom testing framework.
20 changes: 4 additions & 16 deletions website/versioned_docs/version-27.0/Architecture.md
Expand Up @@ -3,26 +3,14 @@ id: architecture
title: Architecture
---

import LiteYouTubeEmbed from 'react-lite-youtube-embed';

If you are interested in learning more about how Jest works, understand its architecture, and how Jest is split up into individual reusable packages, check out this video:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/3YDiloj8_d0"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
<LiteYouTubeEmbed id="3YDiloj8_d0" />

If you'd like to learn how to build a testing framework like Jest from scratch, check out this video:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/B8FbUK0WpVU"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
<LiteYouTubeEmbed id="B8FbUK0WpVU" />

There is also a [written guide you can follow](https://cpojer.net/posts/building-a-javascript-testing-framework). It teaches the fundamental concepts of Jest and explains how various parts of Jest can be used to compose a custom testing framework.
20 changes: 4 additions & 16 deletions website/versioned_docs/version-27.1/Architecture.md
Expand Up @@ -3,26 +3,14 @@ id: architecture
title: Architecture
---

import LiteYouTubeEmbed from 'react-lite-youtube-embed';

If you are interested in learning more about how Jest works, understand its architecture, and how Jest is split up into individual reusable packages, check out this video:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/3YDiloj8_d0"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
<LiteYouTubeEmbed id="3YDiloj8_d0" />

If you'd like to learn how to build a testing framework like Jest from scratch, check out this video:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/B8FbUK0WpVU"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
<LiteYouTubeEmbed id="B8FbUK0WpVU" />

There is also a [written guide you can follow](https://cpojer.net/posts/building-a-javascript-testing-framework). It teaches the fundamental concepts of Jest and explains how various parts of Jest can be used to compose a custom testing framework.
20 changes: 4 additions & 16 deletions website/versioned_docs/version-27.2/Architecture.md
Expand Up @@ -3,26 +3,14 @@ id: architecture
title: Architecture
---

import LiteYouTubeEmbed from 'react-lite-youtube-embed';

If you are interested in learning more about how Jest works, understand its architecture, and how Jest is split up into individual reusable packages, check out this video:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/3YDiloj8_d0"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
<LiteYouTubeEmbed id="3YDiloj8_d0" />

If you'd like to learn how to build a testing framework like Jest from scratch, check out this video:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/B8FbUK0WpVU"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
<LiteYouTubeEmbed id="B8FbUK0WpVU" />

There is also a [written guide you can follow](https://cpojer.net/posts/building-a-javascript-testing-framework). It teaches the fundamental concepts of Jest and explains how various parts of Jest can be used to compose a custom testing framework.

0 comments on commit c12d444

Please sign in to comment.