HTML head
<title>Profile Card UI Design</title>
<link rel="stylesheet" href="style.css" />
<link href="https://unpkg.com/boxicons@2.1.2/css/boxicons.min.css" rel="stylesheet" />
HTML body
<div class="profile-card">
<div class="image">
<img src="profile.jpg" alt="" class="profile-img" />
</div>
</div>
css
/* Google Fonts - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
height: ?vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #f4f4f4;
}
.profile-card {
display: ?;
flex-direction: column;
align-items: center;
max-width: 370px;
width: 100%;
background: #fff;
border-radius: 24px;
padding: 25px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
position: relative;
}
.profile-card::before {
content: "";
position: ? ;
top: 0;
left: 0;
height: 36%;
width: 100%;
border-radius: 24px 24px 0 0;
background-color: #4070f4;
}
.image {
position: relative;
height: 150px;
width: 150px;
border-radius: 50%;
background-color: #4070f4;
padding: 3px;
margin-bottom: 10px;
}
.image .profile-img {
height: 100%;
width: 100%;
object-fit: cover;
border-radius: 50%;
border: 3px solid #fff;
}
![](https://velog.velcdn.com/images/drv98/post/3f21be8e-9338-41bd-92fc-a06b7f569e72/image.png)