JSFiddle - React, Tailwind, and code Playground

by Igor_Ivancha

HTML

<header>
  <nav>
    <div class="menu-icon">
      <i class="fa fa-bars fa-2x"></i>
    </div>
    <div class="logo wow tada">
    </div>
    <div class="menu">
      <ul>
        <li><a href="Start.html">START</a></li>
        <li><a href="Tjanster.html">TJÄNSTER</a></li>
        <li><a href="omoss.html">OM OSS</a></li>
        <li><a href="kontakt.html">KONTAKT</a></li>
      </ul>
    </div>
  </nav>
  <div class="move-down wow fadeInUp">
    <h3> VILL GÖRA KUNDEN NÖJD</h3>
    <h3> tel: 070719763 </h3>
  </div>
</header>

CSS

html,
body {
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

body {
  font-family: 'Josefin Sans', sans-serif;
  text-align: center;
}

header {
  width: 100%;
  height: 400px;
  background: url(/assets/image/tjanst.jpg) no-repeat 50% 50%;
  background-size: cover;
}

.content {
  width: 94%;
  margin: 4em auto;
  font-size: 20px;
  line-height: 30px;
  text-align: justify;
}

.logo {
  line-height: 60px;
  position: fixed;
  float: left;
  margin: 16px 46px;
  color: #000;
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 2px;
}

nav {
  position: fixed;
  width: 100%;
  line-height: 60px;
  z-index: 10;
}

nav ul {
  line-height: 60px;
  list-style: none;
  background: rgba(0, 0, 0, 0);
  overflow: hidden;
  color: #000;
  text-align: right;
  margin: 0;
  padding-right: 40px;
  transition: 1s;
}

nav.black ul {
  background: #000;
  padding: 16px 40px;
}

nav ul li {
  display: inline-block;
  padding: 16px 40px;
}

.move-down h3 {
  margin-top: 200px;
  max-width: 400px;
}

nav ul li a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}

a {
  color: #fff;
  text-decoration: none;
}

.menu-icon {
  line-height: 60px;
  width: 100%;
  background: #000;
  text-align: right;
  box-sizing: border-box;
  padding: 15px 24px;
  cursor: pointer;
  color: #fff;
  display: none;
}

@media(max-width: 786px) {
  .logo {
    position: fixed;
    top: 0;
    margin-top: 16px;
  }
  nav ul {
    max-height: 20px;
    background: #000;
  }
  nav.black ul {
    background: #000;
  }
  .showing {
    max-height: 34em;
  }
  nav ul li {
    box-sizing: border-box;
    width: 100%;
    padding: 24px;
    text-align: center;
  }
  .menu-icon {
    display: block;
  }
}