Followers/Following Summary Card

Provide a quick, at-a-glance summary of a user's profile with this compact social metrics card.

This component is perfect for profile pages, sidebars, or any "who to follow" suggestion list. It clearly presents key statistics in a clean and organized layout.

Screenshot of a user profile summary card showing avatar and social stats.

Get Source Code Preview

About this Component

This card is designed to be data-forward. After the primary user identification (avatar and name), the most prominent feature is a horizontal row displaying social statistics like post count, followers, and following. A large call-to-action button at the bottom encourages user engagement.

Features

Code Breakdown

HTML Structure

The card is built within an article tag. The main profile info (avatar, name, handle) comes first. The statistics are grouped in a div with the class .ffs-stats-container. Inside, each individual statistic (e.g., "Posts") is its own div containing a strong element for the number and a span for the label. The structure is completed with a button at the end.

CSS Styling

The entire card is centered with text-align: center. The main layout feature is the .ffs-stats-container, which uses display: flex and justify-content: space-around. This distributes the stat items evenly across the available horizontal space, with equal space around each item, creating a balanced row. Typographic hierarchy is established using different font sizes and weights for the numbers and their labels.

Code

Here is the complete code. You can easily adapt it by customizing the profile information, stats, and button text.

View Output