JSFiddle - React, Tailwind, and code Playground

by Haze32

HTML

<div class="list-container">
    <div class="list-item">
        <div class="date-ribbon">Feb 24</div>
        <h2>Creative Title</h2>
        <p>Adding a date ribbon creates a unique and eye-catching design.</p>
        <a href="#" class="read-more">Read More</a>
    </div>
</div>

CSS

.list-item {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.date-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background: #ff4757;
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    transform: rotate(-20deg) translateX(-20px);
    font-size: 14px;
}