{
  "id": "blog-card",
  "name": "Blog Post Card",
  "category": "cards",
  "tags": [
    "blog",
    "article",
    "post",
    "thumbnail",
    "horizontal",
    "link"
  ],
  "description": "A compact article card with a thumbnail, tag and meta line, where the whole card is one link.",
  "url": "https://copy-css.com/snippets/blog-card",
  "markdown": "https://copy-css.com/snippets/blog-card.md",
  "html": "<article class=\"post-card\">\n  <div class=\"post-thumb\"></div>\n  <div class=\"post-body\">\n    <span class=\"post-tag\">Design</span>\n    <h3><a href=\"#\">Ten rules for calmer interfaces</a></h3>\n    <p>Mar 12 · 5 min read</p>\n  </div>\n</article>",
  "css": ".post-card {\n  position: relative;\n  display: flex;\n  align-items: center;\n  gap: 14px;\n  max-width: 340px;\n  padding: 10px;\n  border: 1px solid #e4e4e7;\n  border-radius: 16px;\n  background: #fff;\n  font-family: system-ui, sans-serif;\n  transition: border-color 0.2s ease, box-shadow 0.2s ease;\n}\n\n.post-card:hover {\n  border-color: #d4d4d8;\n  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.3);\n}\n\n.post-card:has(a:focus-visible) {\n  outline: 2px solid #7c3aed;\n  outline-offset: 2px;\n}\n\n/* Use an <img> here in real projects */\n.post-thumb {\n  flex: none;\n  width: 88px;\n  height: 88px;\n  border-radius: 10px;\n  background: #e4e4e7;\n  object-fit: cover;\n}\n\n.post-tag {\n  color: #7c3aed;\n  font-size: 11px;\n  font-weight: 700;\n  letter-spacing: 0.06em;\n  text-transform: uppercase;\n}\n\n.post-body h3 {\n  margin: 4px 0 6px;\n  font-size: 15px;\n  line-height: 1.3;\n}\n\n.post-body a {\n  color: #18181b;\n  text-decoration: none;\n  outline: none;\n}\n\n/* Stretch the link over the whole card */\n.post-body a::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border-radius: inherit;\n}\n\n.post-body p {\n  margin: 0;\n  color: #71717a;\n  font-size: 12px;\n}",
  "features": [
    "transitions",
    "box shadows",
    "Flexbox",
    "the :has() selector",
    "keyboard focus styles"
  ],
  "customProperties": []
}
