The content on this website, including videos and code examples, is for educational purposes only. All demonstrations and designs are fictional and created to illustrate coding techniques. Any resemblance to existing websites or brands is purely coincidental.
The creators and administrators of this website do not claim ownership or affiliation with any existing websites or companies. Users are encouraged to use the information responsibly for learning purposes. Liability for any misuse of the content provided is not accepted.
Below is the html code for this video.
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Profile Card</title>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wrapper">
<div class="profile-card">
<div class="profile-card-img"></div>
<div class="profile-card-content">
<div class="profile-card-name">Profile Full Name</div>
<div class="profile-card-profession">Profession</div>
<div class="profile-card-location">
<span class="material-symbols-outlined profile-card-location-icon">location_on</span>
<span>Place, Country</span>
</div>
<div class="profile-card-info">
<div class="profile-card-info-item">
<div class="profile-card-info-title">890</div>
<div class="profile-card-info-text">Followers</div>
</div>
<div class="profile-card-info-item">
<div class="profile-card-info-title">12</div>
<div class="profile-card-info-text">Following</div>
</div>
<div class="profile-card-info-item">
<div class="profile-card-info-title">345</div>
<div class="profile-card-info-text">Articles</div>
</div>
<div class="profile-card-info-item">
<div class="profile-card-info-title">67</div>
<div class="profile-card-info-text">Works</div>
</div>
</div>
<div class="profile-card-social">
<a href="#" class="profile-card-social-item"><span class="material-symbols-outlined">link</span></a>
<a href="#" class="profile-card-social-item"><span class="material-symbols-outlined">link</span></a>
<a href="#" class="profile-card-social-item"><span class="material-symbols-outlined">link</span></a>
<a href="#" class="profile-card-social-item"><span class="material-symbols-outlined">link</span></a>
</div>
<div class="profile-card-btns">
<button class="profile-card-btn btn-blue">Message</button>
<button class="profile-card-btn btn-green">Follow</button>
</div>
</div>
</div>
</div>
</body>
</html>
Below is the css code for this video.
style.css
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
transition: all 0.5s;
}
body {
height: 100vh;
width: 100%;
background: linear-gradient(55deg, #000370, #39ff14);
color: #0e117e;
font-family: 'M PLUS Rounded 1c', sans-serif;
overflow: hidden;
}
.material-symbols-outlined {
font-variation-settings: 'FILL'0, 'wght'400, 'GRAD'0, 'opsz'24
}
a, a:hover {
text-decoration: none;
}
.wrapper {
display: flex;
height: 100%;
width: 100%;
padding: 96px 20px 50px;
}
.profile-card {
position: relative;
height: auto;
width: 100%;
max-width: 700px;
background: #faf9f6;
margin: auto;
border-radius: 12px;
box-shadow: 0 8px 60px -10px #313639bf;
}
.profile-card-img {
position: relative;
height: 150px;
width: 150px;
background-image: url(https://images.unsplash.com/photo-1485795959911-ea5ebf41b6ae?q=80&w=2962&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
background-position: right;
background-repeat: no-repeat;
background-size: cover;
transform: translateY(-50%) rotate(0deg) scale(0.9);
border-radius: 50%;
margin: 0 auto;
z-index: 4;
box-shadow: 0 5px 50px 0 #68da23, 0 0 0 5px #4cc35bbf;
overflow: hidden;
}
.profile-card:hover .profile-card-img {
transform: translateY(-50%) rotate(1800deg) scale(1.1);
}
.profile-card-content {
text-align: center;
margin-top: -35px;
padding: 0 20px 40px;
}
.profile-card-name {
height: auto;
width: max-content;
background: -webkit-linear-gradient(100deg, #000370, #39ff14);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 24px;
margin: 0 auto 15px;
}
.profile-card-profession {
font-size: 18px;
margin-bottom: 15px;
}
.profile-card-location {
display: flex;
font-size: 18px;
justify-content: center;
align-items: center;
}
.profile-card-location-icon {
margin-right: 10px;
}
.profile-card-info, .profile-card-social {
display: flex;
justify-content: center;
align-items: flex-start;
flex-wrap: wrap;
margin-top: 15px;
}
.profile-card-info-item {
min-width: 150px;
padding: 10px 25px;
}
.profile-card-info-title {
font-size: 27px;
}
.profile-card-social {
align-items: center;
}
.profile-card-social-item {
position: relative;
display: inline-flex;
height: 55px;
width: 55px;
background-color: #2d3436;
background-image: linear-gradient(55deg, #2d3436, #7f8c8d);
color: #faf9f6;
font-size: 21px;
justify-content: center;
align-items: center;
flex-shrink: 0;
border-radius: 50%;
margin: 15px;
box-shadow: 0 4px 30px #7f8c8d80;
}
.profile-card-social-item:hover {
transform: scale(1.25);
}
.profile-card-btns {
display: flex;
justify-content: center;
align-items: center;
margin-top: 15px;
}
.profile-card-btn {
height: 55px;
width: 200px;
background: none;
color: #faf9f6;
font-family: 'M PLUS Rounded 1c', sans-serif;
font-size: 19px;
border: none;
border-radius: 50px;
margin: 15px 25px;
padding: 15px 35px;
cursor: pointer;
backface-visibility: hidden;
}
.profile-card-btn:focus {
outline: none;
}
.profile-card-btn:hover {
transform: translateY(-5px);
}
.profile-card-btn:first-child {
margin-left: 0;
}
.profile-card-btn:last-child {
margin-right: 0;
}
.profile-card-btn.btn-blue {
background-color: #182b3a;
background-image: linear-gradient(55deg, #182b3a, #20a4f3);
box-shadow: 0 4px 30px #20a4f380;
}
.profile-card-btn.btn-blue:hover {
box-shadow: 0 6px 30px #20a4f3bf;
}
.profile-card-btn.btn-green {
background-color: #55efc4;
background-image: linear-gradient(55deg, #55efc4, #27a770);
box-shadow: 0 4px 30px #27a77080;
}
.profile-card-btn.btn-green:hover {
box-shadow: 0 6px 30px #27a770bf;
}
Thanks for visiting