JSFiddle - React, Tailwind, and code Playground

by fredd man

HTML

<div id="wrap">
<div id="outer">
  <div id="profile"></div>
  <div id="content">
 <div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/es_LA/sdk.js#xfbml=1&version=v14.0" nonce="iD5R9wVF"></script>
<div class="fb-video" data-href="https://www.facebook.com/100076491982626/videos/432931795498992/" data-width="500" data-show-text="true"><blockquote cite="https://www.facebook.com/100076491982626/videos/432931795498992/" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/100076491982626/videos/432931795498992/"></a><p></p>Publicado por <a href="https://www.facebook.com/people/Freddy-Mamani-Bautista/100076491982626/">Freddy Mamani Bautista</a> en Sábado, 28 de mayo de 2022</blockquote></div>

    <div>Facebook</div>
    <div>freddy</div>
  </div>



<script type="text/javascript">
let outer = document.getElementById('outer'),
        wrapper = document.getElementById('wrap'),
        maxWidth  = outer.clientWidth,
        maxHeight = outer.clientHeight;
window.addEventListener("resize", resize);
resize();
function resize(){let scale,
    width = window.innerWidth,
  height = window.innerHeight,
  isMax = width >= maxWidth && height >= maxHeight;

    scale = Math.min(width/maxWidth, height/maxHeight);
    outer.style.transform = isMax?'':'scale(' + scale + ')';
    wrapper.style.width = isMax?'':maxWidth * scale;
    wrapper.style.height = isMax?'':maxHeight * scale;
}
</script>
<style>
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background: #44e3d8;
  margin: 0;
  padding: 0;
}


#wrap {
  position: relative;
  width: 700px;
  height: 1500px;
  margin: 0 auto;
}
#outer {
  position: relative;
  width: 100%;
  height: 80%;
  background: url('https://www.facebook.com/100076491982626/videos/432931795498992/') no-repeat center center;
  transform-origin: 0% 2%;
 ...