<!-- ----------------- Created By InCoder ----------------- -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Awesome Card - InCoder</title>
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
</head>
<body>
<div class="card">
<div class="ring">
<div class="image">
<img src="https://blogger.googleusercontent.com/img/a/AVvXsEjaggay6iya19-NBkZvy-0_ux_OAQQdTnDmKdixI3UgHcv7ZqAjyzl2LVhhD4C4PQg4rcgOOQEEvNG_zF5flmLk_stB8e4UZjPb3yee5ePFr8fnKRBAGscW0YR6OSwpnMIuz-wFQRMYm61vOzmc8c8fLj5ZGhoFhAU-DF0BxJcwia-a_5KE0DWrB2Yy1g=s320" alt="">
</div>
</div>
<div class="details">
<div class="presonal">
<h2>InCoder</h2>
<p>Designer & Developer</p>
</div>
<div class="social">
<button class="icon">
<i class="fab fa-facebook"></i>
</button>
<button class="icon">
<i class="fab fa-whatsapp"></i>
</button>
<button class="icon">
<i class="fab fa-instagram"></i>
</button>
<button class="icon">
<i class="fab fa-twitter"></i>
</button>
</div>
<div class="action">
<button class="InBtn">Message</button>
<button class="InBtn">Subscribe</button>
</div>
</div>
</div>
</body>
</html>
/* ----------------- Created By InCoder ----------------- */
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #7c7c7c2e;
font-family: "Poppins", sans-serif;
}
.card {
width: 18rem;
overflow: hidden;
border-radius: 8px;
padding: 1rem 1rem;
margin: 1rem 1rem;
transition: box-shadow 0.6s;
box-shadow: 10px 10px 15px #7c7c7c2e, -10px -10px 15px #fff;
}
.card:hover {
box-shadow: inset 10px 10px 15px #7c7c7c2e, inset -10px -10px 15px #fff;
}
.text {
color: #4a4a4a;
}
.card .ring {
height: 150px;
width: 150px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background-color: #bababa4f;
margin-left: auto;
margin-right: auto;
}
.ring .image {
height: calc(100% - 25px);
width: calc(100% - 25px);
border-radius: 50%;
}
.image img {
height: 100%;
width: 100%;
border-radius: 50%;
object-fit: cover;
}
.social {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
.presonal {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.icon {
width: 2.5rem;
height: 2.5rem;
border: 0;
cursor: pointer;
margin: 8px;
display: flex;
color: #202020;
font-size: 1rem;
border-radius: 50%;
align-items: center;
text-decoration: none;
justify-content: center;
background-color: #ececec;
box-shadow: 10px 10px 15px #c7c4c4, -10px -10px 15px #fff;
}
.icon:focus {
box-shadow: inset 5px 5px 5px #c7c4c4, inset -5px -5px 5px #fff;
}
.fa-facebook {
color: #1877f2;
}
.fa-whatsapp {
color: #25d366;
}
.fa-instagram {
color: #e1306c;
}
.fa-twitter {
color: #1da1f2;
}
.action {
display: flex;
align-items: center;
justify-content: center;
}
.InBtn {
margin: 8px;
padding: 12px 1.5rem;
display: flex;
border: none;
font-weight: 500;
cursor: pointer;
border-radius: 8px;
color: #202020;
font-size: 1rem;
align-items: center;
text-decoration: none;
justify-content: center;
background-color: #ececec;
box-shadow: 10px 10px 15px #c7c4c4, -10px -10px 15px #fff;
}
.InBtn:focus {
box-shadow: inset 5px 5px 5px #c7c4c4, inset -5px -5px 5px #fff;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.