JSFiddle - React, Tailwind, and code Playground

by adamschwartz

HTML

<h1>Greg Sabo</h1>
<h2>Software-developer extraordinaire</h2>
<div class="box">
    <div class="bar"></div>
</div>

<style>

h1 {
    text-align: center;
    font-weight: normal;
    font-family: "Futura";
    color: #111;
    font-size: 20px;
    margin: 2em 0;
}

h2 {
    text-align: center;
    font-weight: normal;
    font-family: "Futura";
    color: #999;
    font-size: 14px;
    margin: 0;
}

.box {
    height: 300px;
    width: 80%;    
    position: relative;
    margin: 100px auto
}

.bar {
    position: absolute;
    bottom: 100%;
    height: 10px;
    width: 100%;
    background: linear-gradient(135deg, #ffaf2a, #ff670f);
    border-radius: 3px 3px 0 0
}

.box:before, .box:after {
    content: "";
    display: block;
    position: absolute;
    background-color: transparent;
    -webkit-mask-box-image: -webkit-linear-gradient(top, transparent 0%, #000 5%, rgba(0, 0, 0, .8) 26%, transparent 100%);
    top: 0;
    height: 100%;
    width: 8px    
}

.box:before {
    background-image: -webkit-linear-gradient(right, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
    right: 100%
}

.box:after {
    background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
    left: 100%
}
</style>

CSS

h1 {
    text-align: center;
    font-weight: normal;
    font-family: "Futura";
    color: #111;
    font-size: 20px;
    margin: 2em 0;
}

h2 {
    text-align: center;
    font-weight: normal;
    font-family: "Futura";
    color: #999;
    font-size: 14px;
    margin: 0;
}

.box {
    height: 300px;
    width: 80%;    
    position: relative;
    margin: 100px auto
}

.bar {
    position: absolute;
    bottom: 100%;
    height: 10px;
    width: 100%;
    background: linear-gradient(135deg, #ffaf2a, #ff670f);
    border-radius: 3px 3px 0 0
}

.box:before, .box:after {
    content: "";
    display: block;
    position: absolute;
    background-color: transparent;
    -webkit-mask-box-image: -webkit-linear-gradient(top, transparent 0%, #000 5%, rgba(0, 0, 0, .8) 26%, transparent 100%);
    top: 0;
    height: 100%;
    width: 8px    
}

.box:before {
    background-image: -webkit-linear-gradient(right, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
    right: 100%
}

.box:after {
    background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
    left: 100%
}