AtelierNum / AtelierNum.github.io-V1

base repo for atelier numérique @lecolededesign
5 stars 0 forks source link

Add the possibilitiy to embed videos #13

Closed b2renger closed 4 years ago

b2renger commented 4 years ago

Parse a youtube or vimeo link from a markdown to display the video embeded in the webpage.

The video will not be playable in a github markdown readme but embeded in the website.

R4ph3rd commented 4 years ago

Feature enable for iframes : you have to write in a parent div with a video_container class. Remove default sizes given by Youtube or Vimeo :

<div class="video_container">
   <iframe ></iframe>
</div>

It will display it with the maximum width of the parent component ( aka markdownReader ), conserving the 16/9 ratio. Tested with a Vimeo Iframe.