JSFiddle - React, Tailwind, and code Playground
HTML
<div class=PgOne>
<div class="navbar">
<div>
<p>HOME</p>
</div><div>
<p>ABOUT</p>
</div><div>
<p>EXPERIENCE</p>
</div><div>
<p>RESUME</p>
</div><div>
<p>CONTACT</p>
</div>
</div>
<div class=main>
<div class="name">
<p>FirstName<br>LastName</p>
</div>
</div>
</div>
CSS
.PgOne {
display: flex;
min-height: 100vh;
flex-direction: column;
}
.navbar div {
margin-top: 13px;
margin-right: 1%;
width: 18%;
font-size: 20px;
display: inline-block;
position: relative;
}
.main {
font-size: 25px;
margin: 0 auto;
text-align: center;
width: 50%;
padding: 20px;
display: flex;
flex-direction: column;
justify-content: center;
flex-grow: 1;
background-color: rgba(0, 0, 0, .1);
}