JSFiddle - React, Tailwind, and code Playground

by Rahul Desai

HTML

<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
<header>
    <div id="header-upper">
        <i id="menu" class="fa  fa-bars"></i>
        <h1>MyCart.com</h1>
        <i id="shopping-cart" class="fa fa-shopping-cart"></i>
    </div>
    <div id="header-lower">
        <button id="shop-by-department"><div>Shop by</div><div class="bold">Department</div></button>
        <span id="search-box-container">
            <i id="search-icon" class="fa fa-search"></i>
            <input type="text" id="search-box" placeholder="Search Products"/>
        </span>
    </div>
</header>
<div id="content">
    <p>Content here</p>
</div>

CSS

*{
    margin: 0;
    padding: 0;
}

body{
    font-size: 62.5%;        /* so, 10px = 1rem */
    background: white;
    font-family: Arial, Helvetica, sans-serif;
}

header{
    text-align: center;
    padding: 1rem;
    background: -moz-linear-gradient(top, #ffffff 0%, #f1f1f1 41%, #e1e1e1 99%, #f6f6f6 100%);
}

i#menu{
    float: left;
    font-size: 2rem;
}

img#logo{
    width: 5rem;
    height: auto;
}

i#shopping-cart{
    float: right;
    font-size: 2rem;
    line-height: 0rem;
}

div#header-lower{
    margin-top: 1rem;
}

button#shop-by-department{
    float: left;
    background: transparent;
    border: 0.1rem solid grey;
    border-radius: 0.2rem;
    text-align: left;
    padding: 0.2rem;
    z-index: -1;
}

.bold{
    font-weight: bold;
}

span#search-box-container{
    display: block; 
    overflow: hidden; 
    padding: 0rem 0.5rem;
}

i#search-icon{
    float: left;
    font-size: 1.5rem;
    position: absolute;
    margin: 0.5rem;
}

input#search-box{
    height: 2.6rem;
    width: 100%;
    border: 1px solid grey;
    border-radius: 0.2rem;
    z-index: -1;
    padding: 0rem 3rem 0rem 2.5rem;
    -moz-box-sizing: border-box;
    background: white;
}

i#barcode-icon {
    float: right;
    font-size: 1.5rem;
    margin: 0.5rem;
    position: absolute;
    right: 2rem;
}

div#content {
    font-size: 1rem;
    text-align: center;
    background-color: yellow;
    padding: 50px;
}

div.welcome{
    padding: 1rem;
}

span.left{
    float: left;
}

span.right{
    float: right;
}

span.right a{
    text-decoration: none;
    color: black;
}

a:active{
    background: none;
}

span.right a i{
    color: lightgrey;
}

section.items{
    margin: 1rem 0rem;
}

section.items div{
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
}

section.items img{
    margin: 0.5rem;
}

section.items h4{
    margin-left: 0.5rem;
}

span.item{
    display: inline-block;
    margin-bottom: 1rem;
    vertical-align:...