Responsive Glassmorphism Profile Card Design using HTML & CSS

Responsive Glassmorphism Profile Card Design using HTML & CSS

Hello developers, today in this blog you'll learn to create a Responsive Glassmorphism Profile Card Design using HTML & CSS.

A profile card contains the person’s details like photo, some descriptions of the person, some social media icons like Facebook, Twitter, Instagram, and LinkedIn to contact them. A profile card is used as an identity of a specific person. By placing the profile card on the web page, the user can contact the person easily.

The glass effect has been used in this profile card. The Glassmorphism is used to emphasizes light or dark objects, placed on top of colorful backgrounds. CSS backdrop-filter property has been used to blur the background.

In this blog (Responsive Glassmorphism Profile Card Design), there is a card at the center of the page with a person’s profile photo at the top center of the card and some description about the person. There are some social media icons to contact the person and also there are two buttons below to the social media icons such as contact and download. This Responsive Glassmorphism Profile Card Design is made responsive by using the media query property.

The source code of this Responsive Glassmorphism Profile Card Design is given below, if you want the source code of this program, you can copy it. You can use this Responsive Glassmorphism Profile Card Design code with your creativity and can take this profile card to the next level.

Responsive Glassmorphism Profile Card Design [Source Code]

To make this website (Responsive Glassmorphism Profile Card Design), you need to create two files: an HTML file and a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.

<!DOCTYPE html> <html> <head> <title>Responsive Profile Card || Learning Robo</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="style.css"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap" rel="stylesheet"> <script src="https://kit.fontawesome.com/c39c442009.js" crossorigin="anonymous"></script> </head> <body> <div class="photo"><img src="https://cdn.pixabay.com/photo/2018/11/13/21/43/instagram-3814049__340.png"/></div> <div class="container"> <div class="items"> <div class="desc"> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p> <p> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> </div> <div class="right" id="full"> <div class="about"> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. </p> </div> <div class="social-icons"> <a class="share-btn"> <i class="fab fa-facebook"></i> </a> <a class="share-btn"> <i class="fab fa-instagram"></i> </a> <a class="share-btn"> <i class="fab fa-twitter"></i> </a> <a class="share-btn"> <i class="fab fa-github"></i> </a> <a class="share-btn"> <i class="fab fa-linkedin"></i> </a> </div> <div class="buttons"> <a href="" class="contact">Contact</a> <a href="" class="download">Download</a> </div> </div> </div> </div> <div class="credit">Made with <span style="color:#072f5f">❤</span> by <a href="https://www.learningrobo.com/">Learning Robo</a></div> </body> </html>
CSS provides style to an HTML page. To make the page attractive create a CSS file with the name style.css and remember that you have to create a file with a .css extension.


@import url('https://fonts.googleapis.com/css2?family=Josefin+Slab:wght@100&display=swap');
*{ 
    box-sizing:border-box;
    font-family: arial;
}
body{
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	height: 100vh;
	background: linear-gradient(to right, #96c93d, #00b09b);
	color: #000;
}
body::before{
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	clip-path: circle(30% at right 90%);
	background: linear-gradient(#f00,#f0f);
}
body::after{
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	clip-path: circle(20% at 10% 10%);
	background-image: linear-gradient(to right top, #0b65ed, #009dff, #00c3e2, #00de86, #a8eb12);
}

.container{
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 20px;
	min-height: 150px;
	margin: 0;
	max-width: 1000px;
	padding: 60px;
	box-shadow: 0 20px 50px rgba(255,255,255,0.15);
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
	backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.5);
    margin-top: 45px;
}
img{
	height: 100px;
	border-radius: 50px;
}
.photo{
	margin-top: -500px;
	display: flex;
	width: 100%;
	justify-content: center;
	position: absolute;
	z-index: 20;
}
.desc{
	border: 1px solid rgba(255,255,255,0.5);
	width: 45%;
	border-radius: 20px;
	padding: 25px;
	float: left;
	text-align: justify;
    text-justify: inter-word;
    background: rgba(255, 255, 255, 0.15);
}

.about{
	border: 1px solid rgba(255,255,255,0.5);
	width: 45%;
	border-radius: 20px;
	padding: 25px;
	float: right;
	text-align: justify;
    text-justify: inter-word;
    background: rgba(255, 255, 255, 0.15);
}

.social-icons{
	display: inline-flex;
	justify-content: space-around;
	align-content: space-between;
	width: 45%;
	float: right;
	padding: 40px;
}
.share-btn {
	cursor: pointer;
	font-size: 30px;
}
.buttons{
	display: inline-flex;
	justify-content: space-around;
	align-content: space-between;
	width: 45%;
	float: right;
}

.contact, .download{
	text-decoration: none;
	border: 1px solid rgba(255,255,255,0.5);
	text-align: center;
	border-radius: 5px;
	width: 150px;
    cursor: pointer;
    padding: 15px;
    font-weight: 900;
    cursor: pointer;
    color: #000;
    background: rgba(255, 255, 255, 0.15);
}
.credit{
    text-align: center;
    color: #000;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    width: 100%;
}
.credit a{
    text-decoration: none;
    color: #072f5f;
    font-weight: bold;
}
@media(max-width: 850px){
	body{
		padding: 60px;
	}
	.desc{
		width: 100%;
		margin-bottom: 35px;
	}
	.about, .social-icons, .buttons{
		width: 100%;
	}
	.photo{
		margin-top:-370px;
	}
}
We hope you would like this Responsive Glassmorphism Profile Card Design using HTML & CSS.

Thank you for reading our blog. If you face any problem in creating this Responsive Glassmorphism Profile Card Design using HTML & CSS, then contact us or comment us. We’ll try to provide a solution to your problem as soon as possible.

Thank you
Learning robo team

Post a Comment

Thank you
Learning robo team

Post a Comment (0)

Previous Post Next Post
Learning Robo says...
code copied
Welcome