JSFiddle - React, Tailwind, and code Playground

by dumptyd

HTML

<link rel="stylesheet" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<nav>
  <div class="left">
    <a href="" class="brand">dumptyd</a>
  </div>
  <div class="right">
    <a href="#">Blog</a>
    <a href="#">Projects</a>
    <a href="#">Contact</a>
  </div>
</nav>
<section class="intro">
  <h1>Hey there, I am dumptyd</h1>
  <h2>I am a Web Developer and a JavaScript Enthusiast</h2>
  <div class="contacts">
    <a href="#" class="github">
      <i class="icon ion-social-github"></i>
    </a>
    <a href="#" class="linkedin">
      <i class="icon ion-social-linkedin"></i>
    </a>
    <a href="#" class="email">
      <i class="icon ion-paper-airplane"></i>
    </a>
    <a href="#" class="youtube">
      <i class="icon ion-social-youtube"></i>
    </a>
  </div>
</section>
<section class="projects">
  <h2>Projects</h2>
</section>

<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">

SCSS

$base-font-size: 1em; // whatever font size is set by the browser, usually 16px
$font: 'Arial';
$border-color: #222;
$heading-sizes: 2.25 1.875 1.5 1.125 0.0875 0.75;
@for $i from 1 through 6 {
  h#{$i} {
    font-size: #{nth($heading-sizes, $i)}rem;
    line-height: nth($heading-sizes, $i) * 0.8;
  }
}

html {
  font-size: $base-font-size;
  font-family: $font;
  background-color: #fcfcfc;
}

nav {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid $border-color;
  a {
    text-decoration: none;
    &:active,
    &:visited {
      color: inherit;
    }
  }
  .brand {
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 1rem;
  }
  >.left {
    flex: 1 0 auto;
  }
  >.right {
    flex: 1 0 auto;
    display: flex;
    justify-content: right;
    >a {
      margin-left: 2rem;
    }
  }
}

.intro {
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid $border-color;
  >.contacts {
    margin: 1rem;
    >a {
      text-decoration: none;
      &:active,
      &:visited {
        color: inherit;
      }
    }
    .icon {
      border: 1px solid $border-color;
      margin: .5rem;
      font-size: 1.5rem;
      display: inline-flex;
      justify-content: center; align-items: center;
      width: 3rem; height: 3rem;
    }
  }
}

.projects {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid $border-color;
}