User Bio Card with Social Links

A stylish and comprehensive card for showcasing a user profile with a background header, avatar, and short biography.

This layout is ideal for author boxes at the end of blog posts, speaker profiles for an event, or any place you need to provide more personal detail than a simple team member card.

Screenshot of a user profile card with a header image, avatar, bio, and social media icons.

Get Source Code Preview

About this Component

This profile card uses a layered header effect to create a modern and visually appealing design. A background image provides personality, while the main user avatar overlaps the header to create a sense of depth. Below, there is ample space for a name, a username or handle, a descriptive bio, and a row of social media icons.

Features

Code Breakdown

HTML Structure

The card is built inside an article tag with the class .ub-card. The structure is split into two parts: a header element containing the background image, and a main div containing all the profile details. The order of elements is straightforward and semantic, progressing from the avatar to the name, handle, bio, and social links.

CSS Styling

The layout is achieved with the .ub-card-profile container. It's styled with a negative top margin (margin-top: -60px;) which pulls the entire content block upwards, causing the avatar to overlap the header area. It's also given position: relative to ensure its contents appear correctly stacked on top. The circular avatar has a white border which helps it stand out clearly from the header image behind it. The rest of the card is styled with basic typography and a display: flex container for the social icons.

Code

Here is the complete code. You can easily customize the card by changing the header and avatar images, editing the text content, and updating the social media links.

View Output