JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
  <div class="header centered">
   Header
  </div>
  <div class="content centered">
   Content
  </div>
  <div class="footer centered">
   Footer
  </div>
</div>

CSS

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
}

.container {
  width: 100%;
  height: 100%;
  
  display: grid;
  grid-template-rows: 100px auto 150px;
  grid-template-columns: auto;
}

.centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header {
  background-color: lightblue;
}

.content {
  background-color: lightcyan;
}

.footer {
  background-color: lightyellow;
}