Foundation 5 Featured Posts

by Charles Butler

HTML

<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/foundation/5.4.5/css/normalize.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/foundation/5.4.5/css/foundation.css">
<script src="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.4.5/js/vendor/modernizr.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.4.5/js/foundation.min.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css">
<div class="row">
    <div class="large-6 medium-6 columns">
        <div class="et-featured-post">
            <img src="http://cdn.elegantthemes.com/preview/Nexus/wp-content/uploads/2013/07/f1.jpg" alt="Optimize Your SQL Database" class="thumbnail" height="600" width="800" />
            
                        <div class="meta-info-top">
                 
                            <div class="comment"><i class="fa fa-comments-o"></i> <span class="comment-count"><span>54</span></span></div>

            </div>
            
            
            <div class="meta-info">
                <div class="meta-date"> <span class="month">OCT</span><span>03</span>

                </div> 
            </div>
            <div class="post-description">
                 <h2><a href="http://elegantthemes.com/preview/Nexus/?p=597">Optimize Your SQL Database</a></h2>
            </div>
            <div class="post-excerpt">
                <div class="excerpt-wrap"> <a href="http://elegantthemes.com/preview/Nexus/?p=597" class="post-title">Optimize Your SQL Database</a>
                    <span class="meta"> Post by: William Longo 2 days ago </span>
                    <p>
                        
HTML5 introduces elements and attributes that reflect typical usage on modern websites. Some of them are semantic replacements for common uses of generic block.
                    </p>

                    <a class="right" href="#!">Read More <i class="fa...

CSS

@import url(http://fonts.googleapis.com/css?family=Droid+Serif:regular,italic,bold,bolditalic);
h1, h2, h3, h4, h5, h6{
font-family: 'Droid Serif',Georgia,"Times New Roman",Times,serif;
font-weight: normal;
text-transform: none;
    font-style: italic;
}
.et-featured-post {
    -webkit-box-shadow: inset 0 0 79px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: inset 0 0 79px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 0 79px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}
.et-featured-post img {
    display: block;
    vertical-align: bottom;
}
.et-featured-post:before {
    -webkit-box-shadow: inset 0 0 79px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 0 79px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 79px rgba(0, 0, 0, 0.2);
    top: 0;
    content:"";
    height: 100%;
    left: 0;
    position: absolute;
    width: 100%;
}


.meta-info {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #9FC100;
    color: #fff;
    text-align: center;
    font-size: 28px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    line-height: 20px;
    width: 60px;
    height: 60px;
    z-index: 3;
}

.meta-info-top {
    position: absolute;
    top: -100px;
    right: 0;
    background: #333;
    color: #000;
    text-align: center;
    font-size: 28px;
    width:60px;
    height: 60px;
    z-index: 4;
}

.meta-info-top .comment  {
    margin:0;
    padding:0;
    width: 60px;
    height: 30px;
    text-align: center;
    background: none;
}

.meta-info-top .comment .comment-count {
    display:block;
    color: #fff;
    font-size: 18px;
    margin:0;
    padding:0;
    width: 60px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    background: #333;
}


.meta-info-top .comment i {
    font-size: 26px;
    color: #FFF;
    line-height: 30px;
    margin:0;
    padding:0;
}
.meta-info .meta-date {
    padding: 12px 15px;
    position:...

JavaScript

$(document).foundation();