Cards
Profile Card
A personal card showing an avatar initial, name, role and a short bio with follow and message actions.
<div class="procard-card">
<div class="procard-avatar">AK</div>
<h3 class="procard-name">Amara Klein</h3>
<p class="procard-role">Product Designer</p>
<p class="procard-bio">Designs friendly interfaces and writes about accessible color systems.</p>
<div class="procard-actions">
<button class="procard-follow">Follow</button>
<button class="procard-message">Message</button>
</div>
</div>
.procard-card {
box-sizing: border-box;
width: 260px;
background-color: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 14px;
padding: 28px 22px 24px;
text-align: center;
box-shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
transition: transform 0.2s ease, box-shadow 0.2s ease;
font-family: system-ui, -apple-system, sans-serif;
}
.procard-card:hover {
transform: translateY(-4px);
box-shadow: 0 16px 28px rgba(17, 24, 39, 0.12);
}
.procard-avatar {
width: 72px;
height: 72px;
border-radius: 50%;
background-color: #3b82f6;
color: #ffffff;
font-weight: 700;
font-size: 22px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 14px;
}
.procard-name {
margin: 0 0 2px;
font-size: 17px;
font-weight: 700;
color: #111827;
}
.procard-role {
margin: 0 0 12px;
font-size: 13px;
color: #3b82f6;
font-weight: 600;
}
.procard-bio {
margin: 0 0 20px;
font-size: 13px;
line-height: 1.5;
color: #6b7280;
}
.procard-actions {
display: flex;
gap: 10px;
}
.procard-follow {
flex: 1;
background-color: #3b82f6;
color: #ffffff;
border: none;
padding: 9px 0;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s ease;
}
.procard-follow:hover {
background-color: #2f6fe0;
}
.procard-message {
flex: 1;
background-color: transparent;
color: #374151;
border: 1px solid #d1d5db;
padding: 9px 0;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.procard-message:hover {
background-color: #f3f4f6;
border-color: #9ca3af;
}