JSFiddle - React, Tailwind, and code Playground

by old_krupnik

HTML

<!DOCTYPE html>
<html lang="fr">
  <head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
  </head>
  <body>
    <section id="bloc-video">
      <div class="title-container">
        <video id="vid" loop muted autoplay>
	        <source type="video/mp4" src="https://storage.googleapis.com/coverr-main/mp4/Love-Boat.mp4">
       	</video>
	      <div class="content">
	        <h1>Video title</h1>
	        <p>Video text</p>
	      </div>
      </div>
    </section>
    <main id="main">
    <section>
      <h1>
      Text below video
      </h1>
    </section>
  </main>
</body>

</html>

CSS

body {
    margin: 0;
}

.title-container {
    display: -ms-flex;
    display: -webkit-flex;
    display: flex;
}

section {
  padding: 60px 0;
  overflow: hidden;
}

#bloc-video {
    padding: 0px 0px 0px 0px;
}

#myVideo {
    min-width: 10%;
    min-height: 10%;
}

.content {
    position: absolute;
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
    padding: 20px;
    top: 0;
    left: 0;
}