JSFiddle - React, Tailwind, and code Playground

by clawfire

HTML

<div class="container">
    <h1>Test</h1>
    <p>This is just a test. Remain calm. <a class="butt butt-blue" href="javascript:void(0);">Buy Now</a><a class="butt" href="javascript:void(0);">Contact</a></p>
        
    <div class="slide">
        <img src="http://cl.ly/B0YV/Screen_Shot_2011-10-16_at_23.33.26.png" />
    </div>
</div>

CSS

* {
    margin: 0;
    padding: 0;
}

html, body {
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 620px;
    margin: 0 auto;
}

h1 {
    font-size: 1.5em;
    font-weight: bold;
    color: #000;
    margin: .75em 0;
}

p {
    margin-bottom: 1.5em;
}

.butt {
    float: right;
    padding: .25em 1em;
    background: #eee -webkit-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1) 50%, rgba(255,255,255,0) 50%, rgba(255,255,255,.6));
    box-shadow: 0 0 0 1px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.6);
    font-size: .825em;
    color: #111;
    text-shadow: 0 1px 0 rgba(255,255,255,.4);
    border-radius: 200px;
    font-weight: bold;
    text-decoration: none;
    margin-left: 1em;
}

.butt-blue {
    background: #59e -webkit-linear-gradient(rgba(255,255,255,.3)10%, rgba(255,255,255,0) 70%);
    color: #fff;
    text-shadow: 0 1px 0 rgba(0,0,0,.4);
    box-shadow: 0 0 0 1px #269, inset 0 1px 0 rgba(255,255,255,.4);
}

.slide {
    display: block;
    width: 620px;
    height: 388px;
    margin: 0 auto;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
    border-radius: 5px;
    background: url(http://cl.ly/BHEM/img.jpg) no-repeat center center;
    border: 1px solid transparent;
    -webkit-box-sizing: border-box;
    vertical-align: middle;
    position: relative;
}

.slide:after {
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    background: -webkit-linear-gradient(140deg, rgba(255,255,255,0), rgba(255,255,255,.1) 40%, rgba(255,255,255,0) 40%);    
}

.slide img {
    max-width: 90%;
    display: block;
    margin: 3% auto;
    -webkit-animation: fadeInUp .75s 1s ease;
    -webkit-animation-fill-mode: both;
}

@-webkit-keyframes fadeInUp {
    0% { opacity: 0; -webkit-transform: translateY(20px) scale(.6); }
 ...