Unlock the world of web development with our latest YouTube tutorial! 🚀 Learn the basics of creating a stylish Profile Card using HTML and CSS in just a few easy steps. Elevate your skills as we guide you through the process of designing and coding a sleek and personalized profile card for your website. Whether you're a beginner or looking to enhance your coding repertoire, this tutorial is your gateway to crafting visually appealing and responsive profile cards. Dive into the world of front-end development and showcase your creativity with our step-by-step guide. Watch, code, and transform your web projects today! 💻✨ #html #css #webdevelopment #codingtutorial
Don't forget to like, share, and subscribe for more web development tutorials and tips. If you have any questions or need further assistance, feel free to leave a comment, and we'll be happy to help you out. Happy coding!
Like Us On Facebook: https://facebook.com/CodingWithNexusO...
Follow Us On Instagram: https://instagram.com/coding_with_nexus
Follow Us On TikTok: https://www.tiktok.com/@coding.with.n...
Visit For Full Codes: https://codingwithnexusofficial.blogs...
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profile Card</title>
<!--CSS Link-->
<link rel="stylesheet" href="style.css">
<!--Boxicons CSS Link-->
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
</head>
<body>
<div class="card">
<div class="image">
<img src="Images/Channel Logo.jpg" alt="logo" class="profile-image">
</div>
<div class="text">
<span class="profile-name">Coding With Nexus</span>
<span class="profile-details">Youtuber & Blogger</span>
</div>
<div class="social-button">
<a href="#" style="background: #4267b2;" class="link">
<i class="bx bxl-facebook"></i>
</a>
<a href="#" style="background: #1da1f2;" class="link">
<i class="bx bxl-twitter"></i>
</a>
<a href="#" style="background: #cd0ebd;" class="link">
<i class="bx bxl-instagram"></i>
</a>
</div>
<div class="buttons">
<button class="button">CONTACT</button>
<button class="button">SUBSCRIBE</button>
</div>
<div class="summary">
<div class="data">
<i class="bx bx-heart"></i>
<span class="number">50k</span>
</div>
<div class="data">
<i class="bx bx-message-rounded"></i>
<span class="number">111k</span>
</div>
<div class="data">
<i class="bx bx-share"></i>
<span class="number">98k</span>
</div>
</div>
</div>
</body>
</html>
style.css
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:
wght@300&family=Poppins:wght@300;400;500;600&family=Roboto+Slab&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body{
display: flex;
height: 100vh;
align-items: center;
justify-content: center;
background-color: bisque;
}
.card{
max-width: 300px;
width: 100%;
background-color: #fff;
box-shadow: 0 5px 10px rgba(0,0,0,0.1);
border-radius: 25px;
padding: 15px;
}
.image{
height: 150px;
width: 150px;
position: relative;
border-radius: 50%;
margin-bottom: 5px;
padding: 2px;
}
.image .profile-image{
object-fit: cover;
border-radius: 50%;
border: 15px solid rgba(10,134,134,0.733);
height: 100%;
width: 100%;
margin-left: 50px;
}
.card .text{
display: flex;
flex-direction: column;
align-items: center;
}
.text .profile-name{
font-size: 20px;
font-weight: 500;
}
.text .profile-details{
font-size: 15px;
font-weight: 400;
}
.card .social-button{
display: flex;
align-items: center;
}
.social-button{
margin-left: 45px;
font-size: 35px;
padding-top: 10px;
}
.social-button .link{
padding: 5px;
text-decoration: none;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
height: 35px;
width: 35px;
border-radius: 50%;
margin: 0 8px;
}
.card .buttons{
display: flex;
align-items: center;
margin-top: 25px;
}
.buttons .button{
background-color:rgba(10,134,134,0.733) ;
transition: all 0.4s ease;
padding: 10px;
border: none;
border-radius: 25px;
color: #fff;
font-size: 15px;
margin-left: 35px;
cursor: pointer;
}
.buttons .button:hover{
background-color: black;
color: white;
}
.card .summary{
display: flex;
align-items: center;
margin-top: 25px;
}
.summary .data{
display: flex;
align-items: center;
color: black;
padding: 0 20px;
border-right: 2px solid #e7e7e7;
}
.data i{
font-size: 20px;
margin-right: 5px;
}
.data:last-child{
border-right:none ;
}
Comments
Post a Comment