CardsA clean and modern user profile card with avatar, social links, and bio section. Perfect for user profiles, team pages, or portfolio websites. Fully responsive and customizable.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profile Card</title>
<link rel="stylesheet" href="/snippet-assets/fa-6.4.0/fa.css">
</head>
<body>
<div class="profile-card">
<div class="profile-header">
<img src="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 100%27%3E%3Crect width=%27100%27 height=%27100%27 fill=%27%23c7d2fe%27/%3E%3Ccircle cx=%2750%27 cy=%2738%27 r=%2718%27 fill=%27%234338ca%27/%3E%3Cpath d=%27M14 100c4-26 20-36 36-36s32 10 36 36z%27 fill=%27%234338ca%27/%3E%3C/svg%3E" alt="Profile Picture" class="profile-img">
<h2 class="profile-name">John Doe</h2>
<p class="profile-title">Frontend Developer</p>
</div>
<div class="profile-bio">
<p>Passionate about creating beautiful and functional web experiences. Love coding with HTML, CSS, and JavaScript.</p>
</div>
<div class="profile-social">
<a href="#" class="social-link" aria-label="Twitter"><i class="fab fa-twitter" aria-hidden="true"></i></a>
<a href="#" class="social-link" aria-label="GitHub"><i class="fab fa-github" aria-hidden="true"></i></a>
<a href="#" class="social-link" aria-label="LinkedIn"><i class="fab fa-linkedin" aria-hidden="true"></i></a>
<a href="#" class="social-link" aria-label="CodePen"><i class="fab fa-codepen" aria-hidden="true"></i></a>
</div>
</div>
</body>
</html>
/* Profile Card Styles */
.profile-card {
max-width: 300px;
background: white;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 30px;
text-align: center;
margin: 20px auto;
transition: transform 0.3s ease;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.profile-card:hover {
transform: translateY(-5px);
}
.profile-header {
margin-bottom: 20px;
}
.profile-img {
width: 100px;
height: 100px;
border-radius: 50%;
object-fit: cover;
margin-bottom: 15px;
border: 3px solid #4f46e5;
}
.profile-name {
font-size: 1.5rem;
font-weight: bold;
color: #1f2937;
margin-bottom: 5px;
}
.profile-title {
color: #6b7280;
font-size: 0.9rem;
}
.profile-bio {
margin-bottom: 20px;
color: #4b5563;
line-height: 1.5;
}
.profile-social {
display: flex;
justify-content: center;
gap: 15px;
}
.social-link {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: #f3f4f6;
border-radius: 50%;
color: #4b5563;
text-decoration: none;
transition: all 0.3s ease;
}
.social-link:hover {
background: #4f46e5;
color: white;
transform: scale(1.1);
}
body {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
margin: 0;
padding: 20px;
}
// Profile Card JavaScript (optional enhancements)
document.addEventListener('DOMContentLoaded', function() {
const profileCards = document.querySelectorAll('.profile-card');
profileCards.forEach(card => {
// Add click animation
card.addEventListener('click', function() {
this.style.transform = 'scale(0.95)';
setTimeout(() => {
this.style.transform = '';
}, 150);
});
// Social links interaction
const socialLinks = card.querySelectorAll('.social-link');
socialLinks.forEach(link => {
link.addEventListener('mouseenter', function() {
this.style.transform = 'scale(1.2)';
});
link.addEventListener('mouseleave', function() {
this.style.transform = 'scale(1)';
});
});
});
// Add random color effect on social links
const colors = ['#4f46e5', '#ec4899', '#10b981', '#f59e0b', '#8b5cf6'];
document.querySelectorAll('.social-link').forEach(link => {
link.addEventListener('click', function(e) {
e.preventDefault();
const randomColor = colors[Math.floor(Math.random() * colors.length)];
this.style.backgroundColor = randomColor;
});
});
});
Cards
Cards
Cards