JSFiddle - React, Tailwind, and code Playground

by medbenzekri

HTML

<!DOCTYPE html>
<html lang="en">

  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!--  CSS -->

    <link href='https://fonts.googleapis.com/css?family=Bangers' rel='stylesheet'>

    <title>translate</title>
    <script src="https://kit.fontawesome.com/a076d05399.js"></script>
  </head>

  <body>
    
    <nav>
      <label class="logo">subb it</label>
      <ul>
        <li><a class="active-home" href="/">home</a></li>
        <li><a class="active-translate-page" href="/translate_page">translate page</a></li>
        <li><a class="active-about us" href="/about_us">about us</a></li>
      </ul>
    </nav>
    <style>
      a.active-translate-page {
        background: #33ccff;

    </style>
  </body>
  <section class="container">
    <div class="the-form">

    </div>
  </section>

</html>

CSS

* {
  padding: 0;
  margin: 0;
  text-decoration: blink;
  list-style: none;
  box-sizing: border-box;
}

body {
  font-family: montserrat;
}

.container {
  display: block;
  background: linear-gradient(to bottom, #33ccff 5%, #7882F3 50%);
  background-size: cover;
  height: calc(100vh - 80px);
}

.the-form {
  width: 600px;
  height: 500px;
  background: #fff;
  margin: 2% auto;
  border-radius: 2%;

}

nav {
  background: #7882F3;
  height: 80px;
  width: 100%;
}

label.logo {
  color: #FFFFFF;
  font-size: 50px;
  line-height: 80px;
  padding: 0 20px;
  font-weight: bold;
  font-family: Bangers;
}

nav ul {
  float: right;
  margin-right: 20px;
}

nav ul li {
  display: inline-block;
  line-height: 80px;
  margin: 0 5px;
}

nav ul li a {
  color: white;
  font-size: 17px;
  padding: 7px 13px;
  border-radius: 3px;
  text-transform: uppercase;
}

a:hover {
  background: #33ccff;
  transition: .5s;
}