Skip to content

Commit

Permalink
Add Wistia example to style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
jpipkin1 committed Dec 16, 2024
1 parent 7b064e5 commit c384a95
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions docs/contributing/style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -1533,6 +1533,8 @@ If you need to use mouse actions to be specific, use:
## Videos
### YouTube
To embed a YouTube video on a doc:
1. Copy and paste the following code into your page (including the `import Iframe` line).
Expand Down Expand Up @@ -1596,3 +1598,50 @@ import Iframe from 'react-iframe';

</TabItem>
</Tabs>

### Other video types

You can use similar coding to embed videos from other vendors than YouTube. Following is example coding to embed videos from Wistia.

<Tabs
className="unique-tabs"
defaultValue="Markdown"
values={[
{label: 'Markdown', value: 'Markdown'},
{label: 'Result', value: 'Result'},
]}>

<TabItem value="Markdown">

```html
<Iframe url="https://fast.wistia.net/embed/iframe/yebz0v90tx?web_component=true&seo=true&videoFoam=false"
width="854px"
height="480px"
id="wistiaVideo"
className="video-container"
display="initial"
position="relative"
allow="autoplay; fullscreen"
allowfullscreen
/>
```

</TabItem>
<TabItem value="Result">

<Iframe url="https://fast.wistia.net/embed/iframe/yebz0v90tx?web_component=true&seo=true&videoFoam=false"
width="854px"
height="480px"
id="wistiaVideo"
className="video-container"
display="initial"
position="relative"
allow="autoplay; fullscreen"
allowfullscreen
/>
</TabItem>
</Tabs>

:::note
Typically you must include `import Iframe from 'react-iframe';` with the markdown. It is not included in the example above because it was already called in the previous markdown for YouTube.
:::

0 comments on commit c384a95

Please sign in to comment.