Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>My Example</title> <!-- Place the following CSS in your <head> or stylesheet --> <style> /* This is an optional body style to provide a background for the page */ body { background-color: #f3f4f6; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif; } /* Optional: a container to center the card on the page for demonstration */ .demo-container-summary { display: flex; justify-content: center; padding: 2rem; } /* === Follower Summary Card Styles === */ .ffs-card { --ffs-radius: 16px; --ffs-shadow: 0 8px 16px rgba(0,0,0,0.1); --ffs-primary-color: #4f46e5; background-color: #ffffff; border-radius: var(--ffs-radius); box-shadow: var(--ffs-shadow); max-width: 340px; width: 100%; text-align: center; padding: 2rem 1.5rem; } .ffs-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 3px solid var(--ffs-primary-color); } .ffs-name { font-size: 1.375rem; font-weight: 700; margin: 0 0 0.25rem; } .ffs-handle { font-size: 0.95rem; color: #6b7280; margin: 0 0 1.5rem; } /* The container for the stats */ .ffs-stats-container { display: flex; justify-content: space-around; padding: 1rem 0; margin-bottom: 1.5rem; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; } .ffs-stat-item { line-height: 1.3; } .ffs-stat-number { display: block; font-size: 1.25rem; font-weight: 700; color: #111827; } .ffs-stat-label { font-size: 0.8rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; } .ffs-action-btn { width: 100%; background-color: var(--ffs-primary-color); color: #ffffff; font-size: 1rem; font-weight: 500; padding: 0.75rem 1rem; border-radius: 8px; border: none; cursor: pointer; transition: background-color 0.2s ease; } .ffs-action-btn:hover { background-color: #4338ca; } </style> <!-- Place the following HTML in your <body> --> <div class="demo-container-summary"> <article class="ffs-card"> <!-- Image by placehold.co. Replace with your own. --> <img class="ffs-avatar" src="https://placehold.co/100x100/ec4899/ffffff/png?text=Z" alt="Profile photo of Zane Sterling"> <h3 class="ffs-name">Zane Sterling</h3> <p class="ffs-handle">@zanesterling_dev</p> <div class="ffs-stats-container"> <div class="ffs-stat-item"> <strong class="ffs-stat-number">1,204</strong> <span class="ffs-stat-label">Posts</span> </div> <div class="ffs-stat-item"> <strong class="ffs-stat-number">42.1K</strong> <span class="ffs-stat-label">Followers</span> </div> <div class="ffs-stat-item"> <strong class="ffs-stat-number">380</strong> <span class="ffs-stat-label">Following</span> </div> </div> <button class="ffs-action-btn">Follow</button> </article> </div>