About this snippet

Display user details with this premium profile card. We combine a gradient background with a glass-effect overlay to create depth, while the clean typography ensures the information remains easy to read.

Size
1.8 KB
Uses
HTML, CSS
Loads
placehold.co
Views
548
<div class="glass-profile">
  <div class="gp-banner"></div>
  <div class="gp-content">
    <img src="https://placehold.co/150x150/3b82f6/ffffff?text=JD" alt="Profile" class="gp-avatar">
    <h2>Jane Doe</h2>
    <p class="gp-role">Senior UI/UX Designer</p>
    <div class="gp-stats">
      <div><strong>1.2k</strong><span>Followers</span></div>
      <div><strong>850</strong><span>Following</span></div>
      <div><strong>42</strong><span>Projects</span></div>
    </div>
    <button class="gp-btn">Follow Now</button>
  </div>
</div>
.glass-profile {
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  width: 320px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  text-align: center;
}
.gp-banner {
  height: 100px;
  background: linear-gradient(120deg, #3b82f6, #8b5cf6);
}
.gp-content {
  padding: 0 30px 30px;
  position: relative;
}
.gp-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid #fff;
  margin-top: -50px;
  background: #fff;
}
.glass-profile h2 {
  margin: 10px 0 5px;
  color: #111827;
  font-size: 1.4rem;
}
.gp-role {
  color: #6b7280;
  margin: 0 0 20px;
  font-size: 0.9rem;
}
.gp-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  padding: 15px 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}
.gp-stats div {
  display: flex;
  flex-direction: column;
}
.gp-stats strong {
  font-size: 1.1rem;
  color: #1f2937;
}
.gp-stats span {
  font-size: 0.8rem;
  color: #9ca3af;
}
.gp-btn {
  background: #111827;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  width: 100%;
}
.gp-btn:hover {
  transform: translateY(-2px);
  background: #000;
}
Esc
↑↓ moveEnter select

Start from a template

Open an .html file, or HTML, CSS, JS, Markdown, Less or TypeScript files. You can also drop them here. Styles and scripts go into their panes.

Share

Source

Keyboard shortcuts

Save