A Pen by Chang Joo Park on CodePen.
Created
July 7, 2016 02:40
-
-
Save ChangJoo-Park/1b8095badf358c7a674bba4d086b13de to your computer and use it in GitHub Desktop.
Christiano Ronaldo Trading 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
<div class="card"> | |
<header class="card__player"> | |
<span class="card__player__name">Christiano Roalno</span> | |
<span class="card__player__state"></span> | |
</header> | |
<div class="card__icons"> | |
</div> | |
<footer class="card__nationality"> | |
<img src="http://www.aworldofsoccer.com/national_teams/flag_portugal.gif" alt="" /> Portugal | |
</footer> | |
<div class="card__icons__euro"> | |
<img src="http://www.euro2016cup.com/wp-content/uploads/2016/04/euro2016-icon-copy.png" alt="" /> | |
</div> | |
<div class="card__icons__nationality"> | |
<img src="http://kassiesa.nl/uefa/clubs/images/Portugal.png" alt="" /> | |
</div> | |
</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
.card { | |
min-width: 350px; | |
max-width: 380px; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
max-width: 350px; | |
height: 450px; | |
background-image: | |
url('http://s3.amazonaws.com/nikeinc/assets/54091/151213_NIKE_LIBERTY_CRISTIANO_RONALDO_PORTRAITS_005_STRAIGHT_lowres_native_600.jpg?1457701620'); | |
background-size: cover; | |
box-shadow: 0 0 20px rgba(0, 0, 0, 0.6); | |
} | |
.card__player { | |
padding-top: 10px; | |
text-align: center; | |
span { | |
display: block; | |
text-transform: uppercase; | |
} | |
} | |
.card__player__name { | |
font-size: 20px; | |
color: #fff; | |
text-shadow: 0 0 2px #000; | |
-moz-text-shadow: 0 0 2px #000; | |
-webkit-text-shadow: 0 0 2px #000; | |
} | |
.card__player__state { | |
font-size: 16px; | |
} | |
.card__nationality { | |
color: #fff; | |
text-align: center; | |
text-transform: uppercase; | |
background: #DF121E; | |
font-size: 16px; | |
line-height: 1.5; | |
position: absolute; | |
left: 0px; | |
right: 0px; | |
bottom: 30px; | |
} | |
.card__nationality img { | |
width: 30px; | |
vertical-align: middle; | |
} | |
.card__icons__euro img { | |
width: 60px; | |
height: 60px; | |
position: absolute; | |
right: 10px; | |
top: 10px; | |
} | |
.card__icons__nationality img { | |
width: 55px; | |
height: 55px; | |
position: absolute; | |
right: 10px; | |
bottom: 10px; | |
background-color: #fff; | |
border-radius: 50%; | |
padding: 5px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment