JSFiddle - React, Tailwind, and code Playground

by artgas_pro

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <span class="body__title">body layout</span>
   <div class="menu__body">
     <span class="menu__title">Menu</span>
     <a href="#">Lorem ipsum dolor sit amet.</a>
     <a href="#">Lorem ipsum dolor sit amet.</a>
     <a href="#">Lorem ipsum dolor sit amet.</a>
     <a href="#">Lorem ipsum dolor sit amet.</a>
     <a href="#">Lorem ipsum dolor sit amet.</a>
   </div>
</body>
</html>

CSS

html {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding: 30px;
}

.body__title {
  position: absolute;
  top: 10px;
  left: 10px;
}

.menu__body {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background-color: #555;
}

.menu__title {
  position: absolute;
  left: 10px;
  top: 10px;
  color: #adeb03;
}

.menu__body a {
  margin: .5em 0;
  font-size: 2rem;
  color: lightgray;
}