Profile Widget by José Polanco http://dribbble.com/shots/1439808-Profile-Widget
Created
January 11, 2017 15:23
-
-
Save wlippold/0884fce77eaf924fe5e76bdc7f2eb7bb to your computer and use it in GitHub Desktop.
Profile Widget by José Polanco
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
<!-- | |
Take a look at this wonderful widget by José Polanco | |
http://dribbble.com/shots/1439808-Profile-Widget | |
--> | |
<div class="widget"> | |
<div class="cover"> | |
<img src="http://c.boylett.uk/images/wallpapers/005.jpg" /> | |
</div> | |
<img src="https://s.gravatar.com/avatar/1cb40ffb9de7f5b6b478d740da1e4f10?s=160" class="photo" /> | |
<h1>Ryan Boylett</h1> | |
<h2>Web Developer</h2> | |
<h3>Bristol, UK</h3> | |
<ul> | |
<li><a href="#"><i class="fa fa-dribbble"></i></a></li> | |
<li><a href="#"><i class="fa fa-twitter"></i></a></li> | |
<li><a href="#"><i class="fa fa-xing"></i></a></li> | |
</ul> | |
</div> |
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
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> |
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(http://c.boylett.uk/fonts/font-awesome/font-awesome.min.css); | |
html, body { height: 100% } | |
body | |
{ | |
background: url(http://c.boylett.uk/images/wallpapers/009.jpg); | |
background-size: 100% 100%; | |
} | |
.widget | |
{ | |
position: relative; | |
width: 300px; | |
height: 350px; | |
margin: 50px auto; | |
background: #FFF; | |
border-radius: 5px; | |
box-shadow: 0 5px 25px rgba(0, 0, 0, .1); | |
} | |
.widget > .cover | |
{ | |
height: 160px; | |
overflow: hidden; | |
} | |
.widget > .cover > img | |
{ | |
width: 100%; | |
height: auto; | |
min-height: 160px; | |
border-radius: 4px 4px 0 0; | |
} | |
.widget > .photo | |
{ | |
position: absolute; | |
top: 85px; | |
left: 50%; | |
width: 100px; | |
height: 100px; | |
margin: 0 0 0 -55px; | |
border: 5px solid #FFF; | |
border-radius: 50%; | |
} | |
.widget > h1, .widget > h2, .widget > h3 | |
{ | |
display: block; | |
margin: 10px 0; | |
text-align: center; | |
font-family: 'Open Sans', sans-serif; | |
font-size: 16px; | |
font-weight: 300; | |
color: #999; | |
} | |
.widget > h1 | |
{ | |
margin: 60px 0 20px; | |
font-size: 26px; | |
color: #000; | |
} | |
.widget > h3 { font-size: 12px } | |
.widget > ul | |
{ | |
position: absolute; | |
top: 20px; | |
left: 100%; | |
background: #2CDFD3; | |
border-radius: 0 3px 3px 0; | |
} | |
.widget > ul > li > a | |
{ | |
display: block; | |
padding: 5px 6px; | |
color: #FFF; | |
cursor: pointer; | |
text-align: center; | |
border-bottom: 1px solid #2CD5CA; | |
transition: background-color .3s; | |
} | |
.widget > ul > li:hover > a { background-color: #2CD5CA } | |
.widget > ul > li:first-child > a { border-radius: 0 3px 0 0 } | |
.widget > ul > li:last-child > a | |
{ | |
border: none; | |
border-radius: 0 0 3px 0; | |
} |
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
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment