Skip to content

Instantly share code, notes, and snippets.

@harunpehlivan
Created September 3, 2017 21:56
Show Gist options
  • Save harunpehlivan/2d8f8f293067f68fcffe59adeed0a468 to your computer and use it in GitHub Desktop.
Save harunpehlivan/2d8f8f293067f68fcffe59adeed0a468 to your computer and use it in GitHub Desktop.
Business Card
#wrapper
#content
#card
#front
#arrow
i.fa.fa-arrow-left
#top-pic
#avatar
#info-box
.info
h1 HARUN PEHLİVAN
h2 FOUNDER,CEO BLOGGER
#social-bar
a(href="https://www.facebook.com/profile.php?id=100008152065270", target="_blank")
i.fa.fa-facebook
a(href="https://plus.google.com/+HarunPEHL%C4%B0VANtebimtebitagem", target="_blank")
i.fa.fa-google
a(href="https://www.linkedin.com/in/harun-pehlivan-0aa34252", target="_blank")
i.fa.fa-linkedin
a(href="https://twitter.com/HTERCUMANP", target="_blank")
i.fa.fa-twitter
a(href="https://www.xing.com/profile/HARUN_PEHLIVAN", target="_blank")
i.fa.fa-xing
a(href="http://harunpehlivan-blog.tumblr.com/", target="_blank")
i.fa.fa-tumblr
a(href="https://www.slideshare.net/harunpehlivan581", target="_blank")
i.fa.fa-slideshare
a(href="https://github.com/harunpehlivan", target="_blank")
i.fa.fa-github
a(href="https://codepen.io/harunpehlivan", target="_blank")
i.fa.fa-codepen
a.more-info(href="#")
i.fa.fa-user
#back
.back-info
p
<a href="http://www.doyoubuzz.com/harun-pehlivan" target="_blank">E-CV</a>
<a href="http://harunpehlivantebimtebitagem.ml/" target="_blank">harunpehlivantebimtebitagem</a>
#social-bar
a(href="https://www.facebook.com/profile.php?id=100008152065270", target="_blank")
i.fa.fa-facebook
a(href="https://plus.google.com/+HarunPEHL%C4%B0VANtebimtebitagem", target="_blank")
i.fa.fa-google
a(href="https://www.linkedin.com/in/harun-pehlivan-0aa34252", target="_blank")
i.fa.fa-linkedin
a(href="https://twitter.com/HTERCUMANP", target="_blank")
i.fa.fa-twitter
a(href="https://www.xing.com/profile/HARUN_PEHLIVAN", target="_blank")
i.fa.fa-xing
a(href="http://harunpehlivan-blog.tumblr.com/", target="_blank")
i.fa.fa-tumblr
a(href="https://www.slideshare.net/harunpehlivan581", target="_blank")
i.fa.fa-slideshare
a(href="https://github.com/harunpehlivan", target="_blank")
i.fa.fa-github
a(href="https://codepen.io/harunpehlivan", target="_blank")
i.fa.fa-codepen
a.more-info(href="#")
i.fa.fa-undo
#background
#background-image
$(window).load(function(){
$('#wrapper').addClass('loaded');
})
$('.more-info').click(function(){
$("#card").toggleClass('flip');
$('#arrow').remove();
});
$('#background').click(function(){
$('#card').removeClass('flip');
})
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://codepen.io/MaciejCaputa/pen/EmMooZ.js"></script>
* {
box-sizing:border-box;
transition:.5s ease-in-out;
}
html,body {
background-color:#002136;
height:100%;
overflow:hidden;
font-family:helvetica neue,helvetica,arial,sans-serif;
h1 {
font-size:25px;
font-weight:200;
color:white;
line-height:30px;
margin-bottom:10px;
}
h2 {
font-size:15px;
color:#6b0500;
}
}
#wrapper {
opacity:0;
display:table;
height:100%;
width:100%;
&.loaded {
opacity:1;
transition:2.5s ease-in-out;
}
#content {
display:table-cell;
vertical-align:middle;
}
}
#card {
height:400px;
width:300px;
margin:0 auto;
position:relative;
z-index:1;
perspective:600px;
#front,#back {
border-radius:10px;
height:100%;
width:100%;
position:absolute;
left:0;
top:0;
transform-style:preserve-3d;
backface-visibility:hidden;
box-shadow:0 0 10px rgba(0,0,0,.2);
}
#front {
transform:rotateY(0deg);
overflow:hidden;
z-index:1;
#arrow {
position:absolute;
height:50px;
line-height:50px;
font-size:30px;
z-index:10;
bottom:0;
right:50px;
color:rgba(255,255,255,.5);
animation:arrowWiggle 1s ease-in-out infinite;
}
#top-pic {
height:50%;
width:100%;
background-image:url(https://unsplash.imgix.net/45/ZLSw0SXxThSrkXRIiCdT_DSC_0345.jpg?q=75&w=1080&h=1080&fit=max&fm=jpg&auto=format&s=857f07b76abac23a7fb7161cc7b12a46);
background-size:cover;
}
#avatar {
width:114px;
height:114px;
top:50%;
left:50%;
margin:-77px 0 0 -57px;
border-radius:100%;
box-shadow:0 0 0 3px rgba(255,255,255,.8),0 4px 5px rgba(107,5,0,.6),0 0 50px 50px rgba(255,255,255,.25);
background-image:url(http://www.doyoubuzz.com/var/users/_/2016/11/15/18/1300826/avatar/1253797/avatar_cp_630.jpg?t=1504092899);
background-size: 120px auto;
background-repeat: no-repeat;
background-position: 17px 1px;
background-color: #002136;
position:absolute;
z-index:1;
}
#info-box {
height:50%;
width:100%;
position:absolute;
display:table;
left:0;
bottom:0;
background:rgba(200,38,29,.7);
padding:50px;
}
#social-bar {
height:50px;
width:100%;
position:absolute;
bottom:0;
left:0;
line-height:50px;
font-size:18px;
text-align:center;
a {
display:inline-block;
color:#951009;
text-decoration:none;
padding:5px;
line-height:18px;
border-radius:5px;
&:hover {
color:#450300;
background:rgba(255,255,255,.3);
transition:.25s ease-in-out;
}
}
}
}
#back {
transform:rotateY(180deg);
background-color:rgba(255,255,255,.6);
display:table;
z-index:2;
font-size:13px;
line-height:20px;
padding:50px;
.back-info {
text-align:justify;
text-justify: inter-word;
}
#social-bar {
height:50px;
width:100%;
position:absolute;
bottom:0;
left:0;
line-height:50px;
font-size:18px;
text-align:center;
a {
display:inline-block;
line-height:18px;
color:#951009;
text-decoration:none;
padding:5px;
border-radius:5px;
&:hover {
color:#450300;
background:rgba(223,74,66,.5);
transition:.25s ease-in-out;
}
}
}
}
.info {
display:table-cell;
height:100%;
vertical-align:middle;
text-align:center;
}
&.flip #front {
transform: rotateY(180deg);
}
&.flip #back {
transform: rotateY(360deg);
}
}
#background {
position:fixed;
background-color:black;
top:0;
left:0;
height:100%;
width:100%;
#background-image {
height:calc(100% + 60px);
width:calc(100% + 60px);
position:absolute;
top:-30px;
left:-30px;
-webkit-filter:blur(10px);
background-image:url(https://unsplash.imgix.net/45/ZLSw0SXxThSrkXRIiCdT_DSC_0345.jpg?q=75&w=1080&h=1080&fit=max&fm=jpg&auto=format&s=857f07b76abac23a7fb7161cc7b12a46);
background-size:cover;
}
}
@keyframes arrowWiggle {
0% {
right:50px;
}
50% {
right:35px;
}
100% {
right:50px;
}
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/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