{
  "id": "contact-card",
  "name": "Contact Card",
  "category": "cards",
  "tags": [
    "contact",
    "vcard",
    "email",
    "phone",
    "business card",
    "support"
  ],
  "description": "A contact card with an avatar, role and clickable email and phone links marked with small icons.",
  "url": "https://copy-css.com/snippets/contact-card",
  "markdown": "https://copy-css.com/snippets/contact-card.md",
  "html": "<article class=\"contact-card\">\n  <span class=\"contact-card-avatar\" aria-hidden=\"true\">AO</span>\n  <div>\n    <h3>Ana Ortiz</h3>\n    <p>Account manager</p>\n    <a class=\"contact-card-mail\" href=\"mailto:ana@example.com\">ana@example.com</a>\n    <a class=\"contact-card-tel\" href=\"tel:+15551234567\">+1 555 123 4567</a>\n  </div>\n</article>",
  "css": ".contact-card {\n  display: flex;\n  gap: 14px;\n  width: 280px;\n  padding: 18px;\n  border-radius: 16px;\n  background: #fff;\n  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px -8px rgba(124, 45, 18, 0.2);\n  color: #431407;\n  font-family: system-ui, sans-serif;\n}\n\n.contact-card-avatar {\n  display: grid;\n  flex: none;\n  place-items: center;\n  width: 48px;\n  height: 48px;\n  border-radius: 14px;\n  background: #fb923c;\n  color: #fff;\n  font-weight: 700;\n}\n\n.contact-card h3 {\n  margin: 0;\n  font-size: 16px;\n}\n\n.contact-card p {\n  margin: 2px 0 10px;\n  color: #9a5b3d;\n  font-size: 13px;\n}\n\n.contact-card a {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  margin-top: 4px;\n  border-radius: 4px;\n  color: #c2410c;\n  font-size: 14px;\n  text-decoration: none;\n}\n\n.contact-card a::before {\n  content: \"\";\n  width: 14px;\n  height: 14px;\n  background: currentColor;\n  -webkit-mask: var(--icon) center / contain no-repeat;\n  mask: var(--icon) center / contain no-repeat;\n}\n\n.contact-card-mail {\n  --icon: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E\");\n}\n\n.contact-card-tel {\n  --icon: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E\");\n}\n\n.contact-card a:hover {\n  text-decoration: underline;\n}\n\n.contact-card a:focus-visible {\n  outline: 2px solid #ea580c;\n  outline-offset: 2px;\n}",
  "features": [
    "box shadows",
    "masks",
    "CSS Grid",
    "Flexbox",
    "keyboard focus styles",
    "custom properties"
  ],
  "customProperties": [
    {
      "name": "--icon",
      "value": "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E\")"
    }
  ]
}
