How to make Glassmorphism Profile Card using HTML CSS.[Source Code]
To make this website, you would like to make two files: an HTML file, 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.
/**
Hello Future Developer Thanks for Using learningrobo.com,
Check our website Regularly For New Snippets Post.
Share & Support us
**/
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300&family=Nunito+Sans:opsz,wght@6..12,300&display=swap');
:root{
--color:#ddd;
}
*{
box-sizing: border-box;
}
h1,h2,h3,h4,h5,h6{
margin:0;
}
body{
font-family: 'Mukta', sans-serif;
background:url("https://cdn.pixabay.com/photo/2020/09/28/16/29/leaves-5610361_1280.png");
background-position:center;
background-size:cover;
background-repeat: no-repeat;
background-attachment: fixed;
color:var(--color);
}
.container{
min-height:100vh;
max-height:auto;
display:flex;
justify-content:center;
align-items:center;
}
.container-card{
width:500px;
height:450px;
border-radius: 30px;
backdrop-filter:blur(10px);
background-color:rgba(0,0,0,0.1);
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
border: 3px solid rgba(0,0,0,0.4);
}
.container-card-top{
display:flex;
flex-direction:row;
justify-content:space-between;
align-items:center;
width:100%;
height:fit-content;
padding:15px;
}
.container-card-top h1{
font-size:40px;
margin-left:20px;
}
.container-card-middle{
display:flex;
flex-direction:row;
width:100%;
height:fit-content;
padding:20px 30px 0px 30px;
}
.container-card-middle-left{
display: flex;
justify-content: space-between;
}
.container-card-middle-left img{
width:170px;
height:170px;
border-radius: 50%;
border:5px solid transparent;
outline:5px dashed #6DBC9B;
object-fit:cover;
}
.container-card-middle-right{
display:flex;
flex-direction:column;
align-items:end;
margin:0px 0px 20px 60px;
}
.container-card-middle-right ul li{
list-style-type:none;
font-size:18px;
font-weight: 300;
padding: 5px;
}
.container-card-middle-right ul li::before{
content:"◎ ";
}
.container-card-middle-right-icon{
display:flex;
flex-direction:row;
}
.container-card-middle-right-icon i{
display:flex;
justify-content: center;
align-items: center;
height:30px;
width:30px;
font-size:20px;
border-radius: 50%;
margin-left: 15px;
border:1px solid var(--color);
}
.container-card-middle-right-icon i:hover{
cursor: pointer;
background-color:#000;
transition:.5s;
}
.container-card-bottom{
display: flex;
flex-direction:row;
justify-content:right;
align-items: center;
padding:0 40px;
}
.container-card-bottom button{
background-color:rgba(255, 255, 255, 0.6);
color: #000000;
padding:10px 18px;
border: none;
border-radius: 20px;
width:40%;
border:2px solid transparent;
transition:.5s;
margin:10px 0px;
}
.container-card-bottom button:hover{
cursor: pointer;
background-color: #121212;
color:var(--color);
border:2px solid #6DBC9B;
}
@media only screen and (max-width: 1024px){
.container-card{
width:500px;
height:450px;
}
}
@media only screen and (max-width: 630px){
.container-card{
width:400px;
height:600px;
}
.container-card-top{
display:flex;
justify-content:center;
padding:15px;
}
.container-card-top h1{
margin-left:0px;
}
.container-card-middle{
display:flex;
flex-direction:column;
justify-content: center;
align-items: center;
padding:0px;
}
.container-card-middle-left{
display: flex;
justify-content:center;
}
.container-card-middle-right{
width:100%;
margin:0px;
align-items:center;
}
.container-card-bottom{
display: flex;
justify-content:center;
align-items: center;
width:100%;
margin:5px;
padding:0px;
}
}
.credit a{
text-decoration: none;
color: #fff;
font-weight: 800;
}
.credit{
color: #fff;
text-align: center;
font-family: Verdana,Geneva,Tahoma,sans-serif;
}
Thank you for reading our blog. If you face any problem in Creating a Glassmorphism Profile Card using HTML CSS., then contact us or comment to us. We’ll try to provide a solution to your problem as soon as possible.
Explore
Press The Key ' p ' and say ' read article ' our voice assistant read our article.
In Our older post it doesnot work we working on that.
In Our older post it doesnot work we working on that.
Post a Comment
Thank you
Learning robo team