A Pen by sidmohanty11 on CodePen.
Created
June 22, 2021 15:42
-
-
Save sidmohanty11/cb9220dd000c8030cf18ef86cb317254 to your computer and use it in GitHub Desktop.
profile card
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<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>profile card</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" referrerpolicy="no-referrer" /> | |
</head> | |
<body> | |
<div class="card"> | |
<div> | |
<img src="https://github.com/sidmohanty11.png" alt="" /> | |
<h1>Sidharth <br> | |
<span>Web Developer</span></h1> | |
<p>Hi I am Sidharth Mohanty, I code lorem ipsum sometimes.</p> | |
<ul> | |
<li><a href=""><i class="fab fa-instagram"></i></a></li> | |
<li><a href=""><i class="fab fa-github"></i></a></li> | |
<li><a href=""><i class="fab fa-linkedin"></i></a></li> | |
</ul> | |
<a class="btn">Follow</a> | |
</div> | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap'); | |
* { | |
margin:0; | |
padding:0; | |
font-family: 'Open Sans', sans-serif; | |
} | |
.card { | |
width:300px; | |
position:absolute; | |
height:auto; | |
background-color:#0b090a; | |
padding:30px; | |
box-sizing:border-box; | |
text-align:center; | |
color:white; | |
border-radius:20px; | |
overflow:hidden; | |
left:50%; | |
top:50%; | |
transform:translate(-50%,-50%); | |
} | |
.card img{ | |
width:100px; | |
height:100px; | |
display:block; | |
margin:auto; | |
border-radius:50%; | |
} | |
.card div h1 { | |
text-transform:uppercase; | |
margin-top:20px; | |
line-height:24px; | |
} | |
.card div h1 span { | |
font-size:13px; | |
letter-spacing:4px; | |
} | |
.card div ul li { | |
display:inline-block; | |
margin:20px 10px; | |
} | |
.card div ul li a { | |
color:#2980b9; | |
font-size:20px; | |
transition:0.2s | |
} | |
.card div ul li a:hover { | |
color : #000; | |
} | |
.card div .btn{ | |
text-decoration:none; | |
color:white; | |
letter-spacing:5px; | |
font-weight:bold; | |
border-radius:2px; | |
padding:10px; | |
margin-top:15px; | |
display:inline-blok; | |
transition:0.2s; | |
border:1px solid white; | |
} | |
.card div .btn:hover{ | |
border-color:#2980b9; | |
} | |
.card:before{ | |
position:absolute; | |
content:""; | |
width:100px; | |
height:100px; | |
background:#370617; | |
bottom:0; | |
right:-10px; | |
z-index:-1; | |
border-top-left-radius:100px; | |
transition:.5s; | |
} | |
.card:hover:before{ | |
transform: scale(10); | |
} | |
.card div .btn:hover { | |
background-color:#2980b9; | |
color:#fff; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment