JSFiddle - React, Tailwind, and code Playground

by paulftw

HTML

<div class="outer">
  <a class="release" href="/#latest">
    <h1>
      Dev
    </h1>
    <h2>
      (unstable)
    </h2>
    <h3>
      Last updated: 3 days ago.
    </h3>
    <h3>
      Commit Id: 4f9a483 
    </h3>
  </a>
    
  <a class="release" href="/#latest">
    <h1>
      Stable
    </h1>
    <h2>
      (unstable)
    </h2>
    <h3>
      Last updated: 3 days ago.
    </h3>
    <h3>
      Commit Id: 4f9a483 
    </h3>
  </a>

  <a class="release" href="/#latest">
    <h1>
      Dgraph 1.0.10
    </h1>
    <h2>
      (unstable)
    </h2>
    <h3>
      Last updated: 3 days ago.
    </h3>
    <h3>
      Commit Id: 4f9a483 
    </h3>
  </a>

<a class="release" href="/#latest">
    <h1>
      Dgraph 1.0.10
    </h1>
    <h2>
      (unstable)
    </h2>
    <h3>
      Last updated: 3 days ago.
    </h3>
    <h3>
      Commit Id: 4f9a483 
    </h3>
  </a>

</div>

SCSS

html, body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.outer {
  background-color: #ccc;
  box-shadow: #ccc 0 0 5px 1px;
  height: 240px;
  width: 480px;
  
  display: flex;
  align-items: center;
  
  overflow-x: scroll;
 a {
  display: block;
  width: 200px;
  height: 160px;
  border: 1px solid #111;
  border-radius: 5px;
  margin: 0 4px;
  text-align: center;
  text-decoration: none;
  color: #111;
  
  h1, h2, h3 {
    margin: 8px;
  }
  h1 {
    font-size: 24px;
  }
  h3 {
    font-size: 12px;
  }
}

}