👤 Profile Card

Карточка профиля пользователя с аватаром и соцсетями

← Назад к Карточки
Круглый аватар
HTML
<div class="profile-card">
  <div class="profile-cover"></div>
  <div class="profile-avatar">
    <img src="https://i.pravatar.cc/150?img=12" alt="Avatar">
  </div>
  <div class="profile-info">
    <h3 class="profile-name">Sarah Johnson</h3>
    <p class="profile-role">UI/UX Designer</p>
    <p class="profile-bio">Creating beautiful digital experiences</p>
    <div class="profile-stats">
      <div><strong>248</strong><span>Posts</span></div>
      <div><strong>12.5k</strong><span>Followers</span></div>
      <div><strong>892</strong><span>Following</span></div>
    </div>
    <button class="profile-btn">Follow</button>
  </div>
</div>
CSS
.profile-card {
  width: 300px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.profile-cover {
  height: 100px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.profile-avatar {
  margin-top: -50px;
  margin-bottom: 1rem;
}
.profile-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.profile-info {
  padding: 0 1.5rem 1.5rem;
}
.profile-name {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
}
.profile-role {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #667eea;
  font-weight: 600;
}
.profile-bio {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}
.profile-stats {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
}
.profile-stats div {
  display: flex;
  flex-direction: column;
}
.profile-stats strong {
  font-size: 1.1rem;
  color: #1a1a2e;
}
.profile-stats span {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.2rem;
}
.profile-btn {
  width: 100%;
  padding: 0.7rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.profile-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
Горизонтальная
HTML
<div class="profile-card-h">
  <img src="https://i.pravatar.cc/150?img=33" alt="Avatar" class="profile-avatar-h">
  <div class="profile-info-h">
    <h3 class="profile-name-h">Michael Chen</h3>
    <p class="profile-role-h">Full-Stack Developer</p>
    <div class="profile-social-h">
      <a href="#" class="social-icon-h">🐦</a>
      <a href="#" class="social-icon-h">💼</a>
      <a href="#" class="social-icon-h">🐙</a>
    </div>
  </div>
</div>
CSS
.profile-card-h {
  width: 320px;
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.profile-card-h:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.profile-avatar-h {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.profile-info-h {
  flex: 1;
}
.profile-name-h {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
}
.profile-role-h {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #666;
}
.profile-social-h {
  display: flex;
  gap: 0.5rem;
}
.social-icon-h {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.social-icon-h:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: translateY(-2px);
}
С градиентным фоном
HTML
<div class="profile-card-grad">
  <div class="profile-avatar-grad">
    <img src="https://i.pravatar.cc/150?img=47" alt="Avatar">
  </div>
  <h3 class="profile-name-grad">Emma Wilson</h3>
  <p class="profile-role-grad">Product Manager</p>
  <div class="profile-tags-grad">
    <span class="tag-grad">Strategy</span>
    <span class="tag-grad">Agile</span>
    <span class="tag-grad">UX</span>
  </div>
  <button class="profile-btn-grad">View Profile</button>
</div>
CSS
.profile-card-grad {
  width: 280px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}
.profile-card-grad:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}
.profile-avatar-grad {
  margin-bottom: 1rem;
}
.profile-avatar-grad img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
}
.profile-name-grad {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}
.profile-role-grad {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}
.profile-tags-grad {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tag-grad {
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.profile-btn-grad {
  width: 100%;
  padding: 0.7rem;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.profile-btn-grad:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}