JSFiddle - React, Tailwind, and code Playground

by Haze32

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Link List Styles</title>
  <link rel="stylesheet" href="styles.css">
</head>
<body>
  <div class="container">
    <div class="link-item">
      <span class="date">March 20, 2025</span>
      <h2 class="title">First Awesome Link</h2>
      <p class="description">A short description about this amazing link goes here.</p>
      <a href="#" class="read-more">Read More</a>
    </div>
    <div class="link-item">
      <span class="date">March 19, 2025</span>
      <h2 class="title">Second Cool Link</h2>
      <p class="description">Another brief teaser for this intriguing content.</p>
      <a href="#" class="read-more">Read More</a>
    </div>
  </div>
</body>
</html>

CSS

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #F9FAFB, #E5E7EB); /* Subtle gradient for depth */
  margin: 0;
  padding: 40px;
  color: #1F2937; /* Dark gray for text */
}

.container {
  max-width: 800px; /* Keeps it centered and readable */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px; /* More breathing room between items */
}

.link-item {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Slightly bolder shadow */
  border-left: 6px solid #3B82F6; /* Vibrant blue accent */
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.link-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px; /* Thin gradient bar at the top */
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
  opacity: 0.9;
}

.link-item:hover {
  transform: translateY(-5px); /* Gentle lift */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.date {
  font-size: 0.9em;
  font-weight: 600;
  color: #6B7280; /* Muted gray */
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #EFF6FF; /* Light blue background for date */
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

.title {
  font-size: 1.6em;
  font-weight: 700;
  margin: 0 0 10px;
  color: #111827; /* Almost black for emphasis */
  line-height: 1.2;
}

.description {
  font-size: 1em;
  color: #4B5563; /* Softer gray for contrast */
  margin: 0 0 15px;
  line-height: 1.6;
}

.read-more {
  display: inline-flex;
  align-items: center;
  font-size: 1em;
  font-weight: 600;
  color: #3B82F6;
  text-decoration: none;
  padding: 8px 20px;
  border: 2px solid #3B82F6;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.read-more::after {
  content: '→'; /* Arrow for a subtle flourish */
  margin-left: 8px;
  opacity: 0;
  transition: all 0.3s...