Skip to content

Instantly share code, notes, and snippets.

@harunpehlivan
Created June 6, 2021 21:09
Show Gist options
  • Save harunpehlivan/87f51b24dfef7c4512a13af2faed0bbc to your computer and use it in GitHub Desktop.
Save harunpehlivan/87f51b24dfef7c4512a13af2faed0bbc to your computer and use it in GitHub Desktop.
Profile Card | Css
<div id="page">
<div class="card">
<div class="half half-left">
<div class="img-container">
<img src="https://res.cloudinary.com/tercuman-b-l-m-merkez/image/upload/v1613759952/003_megvxx.jpg" alt="">
</div>
</div>
<div class="half half-right">
<a href="https://hpitgroup.glitch.me/" class="online">H</a>
<h2 class="name">Harun Pehlivan </h2>
<p><i class="fa fa-desktop" aria-hidden="true"></i> CODER,DESIGNER FOUNDER CEO </p>
<p><i class="fa fa-calendar fa-fw w3-margin-right"></i> 22/07/1984 Çorum'da Doğdum Aslen Samsun'un Havza ilçesi <br>
<i class="fa fa-file-code-o" aria-hidden="true"></i> The language I Started Programming is PASCAL<br> 2008 TERCUMAN INFORMATICS CENTER<br> <i class="fa fa-calendar fa-fw w3-margin-right"></i> 2012 TERCUMAN EDUCATION, SCIENCE,TECHNICAL RESEARCH AND DEVELOPMENT CENTER<br><i class="fa fa-calendar fa-fw w3-margin-right"></i> 2013 TEBİMTEBİTAGEM GAZETESİ RADYO TELEVİZYONU<br> <i class="fa fa-calendar fa-fw w3-margin-right"></i> 2018 HARUN PEHLİVAN INFORMATION TECHNOLOGY GROUP
</p>
<p><i class="fa fa-map-marker fa-fw w3-xxlarge w3-margin-right"></i>YENİ MAHALLE MİMAR SİNAN SOKAK NO:2 SULUOVA/AMASYA TURKEY</p>
</div>
<div class="triangle">
<ul>
<li><a href="https://facebook.com/100008152065270" class="fa fa-facebook"></a></li>
<li><a href="https://www.instagram.com/harunpehlivantebimtebitagem/" class="fa fa-instagram"></a></li>
<li><a href="https://www.linkedin.com/in/harun-pehlivan-0aa34252" class="fa fa-linkedin"></a></li>
<li><a href="https://codepen.io/harunpehlivan" class="fa fa-codepen"></a></li>
<li><a href="https://dribbble.com/harunpehlivan" class="fa fa-dribbble"></a></li>
<li><a href="https://www.behance.net/harunpehlivan" class="fa fa-behance"></a></li>
<li><a href="https://github.com/harunpehlivan" class="fa fa-github"></a></li>
<li><a href="https://gitlab.com/harunpehlivan" class="fa fa-gitlab"></a></li>
<li><a href="https://www.youtube.com/user/harunpehlivan1" class="fa fa-youtube-play"></a></li>
</ul>
</div>
<a href="https://coderdesignerharunpehlivanfounderceo.glitch.me/" class="fa fa-plus"></a>
</div>
</div>
//Image https://unsplash.com/photos/nahUo1GhcrA
//Inpired by https://dribbble.com/shots/3525050-Profile-Card
//@use postcss-cssnext;
:root {
--dark: #1e293a;
--green: #00fcbb;
}
#page {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(to right, #f600b3, #ffaa76);
}
.card {
display: flex;
width: 38rem;
height: 25rem;
border-radius: 0.6rem;
overflow: hidden;
position: relative;
font-family: "Poppins", sans-serif;
}
.half {
width: 50%;
}
.img-container {
& img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
filter: grayscale(100%);
transform: scale(1.6);
}
}
.half-right {
background-color: var(--dark);
padding: 1.5rem 1rem 4rem 1rem;
position: relative;
& .online {
position: absolute;
right: 2rem;
color: #487098;
font-size: 0.65rem;
&:after {
content: "";
display: block;
width: 0.4rem;
height: 0.4rem;
background-color: var(--green);
border-radius: 50%;
position: absolute;
top: 50%;
left: 120%;
transform: translate(-50%, -50%);
margin-left: 0.2rem;
}
}
& .name {
font-size: 1.7rem;
background: linear-gradient(#f83487, #fe8361);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
& h3 {
color: var(--green);
margin-top: 1rem;
}
& button {
background: linear-gradient(to right, var(--green), #00d8d4);
font-size: 0.7rem;
padding: 0.4rem 1.8rem;
border-radius: 1.8rem;
position: absolute;
bottom: 3rem;
right: 2rem;
cursor: pointer;
}
& p {
color: #487098;
font-size: 0.65rem;
margin-top: 0.4rem;
}
}
.triangle {
position: absolute;
bottom: -0.1rem;
width: 100%;
height: 7rem;
background: linear-gradient(#fe8361, #f83487);
clip-path: polygon(0 0, 0% 100%, 100% 100%);
& ul {
width: 35%;
position: absolute;
bottom: 2rem;
left: 2rem;
display: flex;
justify-content: space-between;
}
& a {
width: 1.2rem;
height: 1.2rem;
font-size: 0.8rem;
background-color: #fff;
color: #f83487;
border-radius: 50%;
text-align: center;
line-height: 1.2rem;
}
& span {
position: absolute;
bottom: 0.5rem;
left: 50%;
transform: translateX(-50%);
font-size: 0.55rem;
color: white;
}
}
.fa-plus {
position: absolute;
bottom: 5.2rem;
left: 2rem;
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
background: linear-gradient(#fd1999, #a60fe7);
text-align: center;
line-height: 2.5rem;
font-size: 1rem;
color: white;
}
<link href="https://codepen.io/diana_aceves/pen/4985644cf5dbc85b55686ffa7bb43029" rel="stylesheet" />
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment