Profile Card with Stats
A user profile card with a gradient cover, avatar, follower stats and a follow button.
Requires Bootstrap 5. Add the CDN tags below to your page (styles in
<head>, scripts before </body>). The downloaded file already includes them.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script><div class="card border-0 shadow-sm" style="max-width:300px">
<div class="rounded-top" style="height:80px;background:linear-gradient(135deg,#6a11cb,#2575fc)"></div>
<div class="card-body text-center" style="margin-top:-44px">
<div class="rounded-circle bg-white p-1 d-inline-block shadow-sm"><div class="rounded-circle d-grid text-white fw-bold" style="width:72px;height:72px;place-items:center;font-size:26px;background:linear-gradient(135deg,#6a11cb,#2575fc)">AL</div></div>
<h5 class="mt-2 mb-0">Ava Lawson</h5>
<p class="text-secondary small mb-3">Product Designer</p>
<div class="d-flex justify-content-center gap-4 mb-3">
<div><div class="fw-bold">248</div><div class="text-secondary" style="font-size:.75rem">Posts</div></div>
<div><div class="fw-bold">12k</div><div class="text-secondary" style="font-size:.75rem">Followers</div></div>
<div><div class="fw-bold">312</div><div class="text-secondary" style="font-size:.75rem">Following</div></div>
</div>
<button class="btn btn-primary w-100">Follow</button>
</div>
</div>Free to use.This component uses Bootstrap 5 (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.