Skip to content

Commit

Permalink
docs: video meta
Browse files Browse the repository at this point in the history
  • Loading branch information
leifermendez committed Apr 2, 2024
1 parent b825680 commit 2be70e6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/mdx.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ export const Image = function Img(props) {
)
}

export function Video(props) {
return (
<div className='my-6 bg-gray-100 rounded-2xl dark:bg-zinc-800'>
{props?.label ? <div className="flex py-1 flex-wrap items-start gap-x-4 px-4 dark:border-zinc-800 dark:bg-transparent"><h3 className="mr-auto m-0 text-xs font-thin">{props.label}</h3></div> : <></> }
<iframe width="800" className='rounded-2xl ' height="450" src={'https://www.youtube.com/embed/'+props.yt} title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen />
</div>
)
}

function InfoIcon(props) {
return (
<svg viewBox="0 0 16 16" aria-hidden="true" {...props}>
Expand Down
3 changes: 3 additions & 0 deletions src/pages/en/providers/meta/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ The [WhatsApp Business Platform](https://business.whatsapp.com/products/business
You can get more information about deploying a [Meta Bot](/deploy/meta)
</Warning>

## Video

If you are one of those people who prefer to watch videos, here is a short tutorial on how to implement the Meta base.
<Video label="Video Meta Provider" yt="armCpc_cue0"/>
---

You must create a new application. To do this, click on the **Create application** button.
Expand Down

0 comments on commit 2be70e6

Please sign in to comment.