<div class="card">
<div class="card__content">
<div class="card__content-header">
<div class="card__content-profile">
<div class="card__content-profile-image-container">
<picture class="card__content-profile-picture">
<img class="card__content-profile-image" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1049558/profile/profile-80.jpg?1508744386" alt="Profile image ofAlex Clapperton">
</picture>
</div>
<div class="card__content-profile-details">
<span class="card__content-profile-name">Alex Clapperton</span>
<span class="card__content-profile-job">Front-End Developer</span>
</div>
</div>
<a class="card__content-header-link" href="#">New</a>
</div>
<h1 class="card__content-title">I Got 3 Invites For Dribbble</h1>
<p class="card__content-body">Show me your Shots Baby!!</p>
</div>
<div class="card__footer">
<p class="card__footer-body">Publish some shots on your dribbble profile and mail a link to <a class="card__footer-link" href="#">contato@herrerowork.com</a> or instagram <a class="card__footer-link" href="#">@herre.ro</a></p>
<svg class="card__footer-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M13.25 10L6.109 2.58a.697.697 0 0 1 0-.979.68.68 0 0 1 .969 0l7.83 7.908a.697.697 0 0 1 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0s-.268-.707 0-.979L13.25 10z"/></svg>
</div>
</div>
<p>Design by <a href="https://dribbble.com/Herrero">Gustavo Herrero</a> via <a href="https://dribbble.com/shots/4913936-Shoe-me-your-Shots">Dribbble</a></p>
$brand: #fa398a;
$black: #000;
$white: #fff;
$yellow: #ffc229;
html,
body {
position: relative;
width: 100%;
height: 100%;
}
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-family: 'Trebuchet MS', Helvetica, sans-serif;
letter-spacing: 0.03em;
}
img {
display: block;
width: 100%;
}
.card {
width: 375px;
margin-right: auto;
margin-left: auto;
border-radius: 15px;
box-shadow: 0px 0px 15px 5px rgba($black, 0.25);
overflow: hidden;
}
.card__content {
padding: 30px 25px 50px 25px;
background-color: $brand;
background-image: url('https://svgshare.com/i/7fs.svg');
background-position: center;
background-repeat: no-repeat;
background-size: 240%;
color: $white;
}
.card__content-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.card__content-profile {
display: flex;
justify-content: space-between;
align-items: center;
}
.card__content-profile-image-container {
width: 50px;
margin-right: 10px;
}
.card__content-profile-picture {
display: block;
position: relative;
padding-top: 100%;
border-radius: 50%;
overflow: hidden;
}
.card__content-profile-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.card__content-profile-name {
display: block;
margin-bottom: 5px;
font-size: 0.85em;
}
.card__content-profile-job {
display: block;
color: rgba($white, 0.8);
font-size: 0.7em;
}
.card__content-header-link {
padding: 7px 10px;
background-color: $yellow;
color: $white;
font-size: 0.75em;
font-weight: bold;
border-radius: 4px;
text-decoration: none;
}
.card__content-title {
max-width: 50%;
margin-top: 0;
font-size: 2.2em;
font-weight: bold;
line-height: 1.3;
}
.card__content-body {
margin-bottom: 0;
color: $yellow;
font-size: 0.8em;
font-weight: bold;
}
.card__footer {
position: relative;
padding: 20px 25px;
background-color: #f8f9fa;
}
.card__footer-body {
width: 80%;
margin-top: 0;
margin-bottom: 0;
color: rgba($black, 0.4);
font-size: 0.7em;
font-weight: bold;
line-height: 1.6;
}
.card__footer-link {
color: $brand;
text-decoration: none;
}
.card__footer-icon {
position: absolute;
bottom: 20px;
right: 25px;
fill: rgba($black, 0.15);
stroke: rgba($black, 0.15);
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.