JSFiddle - React, Tailwind, and code Playground

by Wisdom Abioye

HTML

<div class="navbar">
    <ul>
      <li class="nav">Home</li>
      <li class="nav">About</li>
      <li class="nav">Upload</li>
    </ul>
  </div>
  <div class="mainbar">
      <h1>hello</h1>
      <h2>whats up</h2>
  </div>

CSS

* {
  box-sizing: border-box;
}

body {
  background-color: #450068;
  background-color: rgb(69, 0, 104);
  margin: 0px;
  padding: 0px;
}
h1, h2 {
  text-align: center;
  color: white;
}

li {
  display: inline;
  text-align: right;
  list-style: none;
  padding: 20px;
}

.navbar {
  background-color: #8729a5;
  border-bottom: .5px solid gray;
  width: 100%;
  height: 50px;
  position: fixed;
  top: 0;
  padding: 0px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.mainbar {
  background-color: #8729a5;
  background-color: black;
  height: 100vh;
  width: 1100px;
  margin-left: auto;
  margin-right: auto;
  border: .5px solid gray;
  border-radius: 15px;
  overflow: scroll;
  overflow-x: hidden;
}