Preview
Grace Johnston
Braga, Portugal
HTML
SCSS
*, ::after, ::before {
box-sizing: border-box;
}
/* css element */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;700;900&display=swap');
.card-profile {
background-color: #ffffff;
border-radius: 15px;
width: 100%;
max-width: 280px;
.bkg-profile {
position: relative;
overflow: hidden;
width: 100%;
height: 115px;
-webkit-border-top-left-radius: 15px;
-webkit-border-top-right-radius: 15px;
-moz-border-radius-topleft: 15px;
-moz-border-radius-topright: 15px;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
img {
position: absolute;
left: 0;
top: 0;
}
}
.info-block {
position: relative;
padding: 35px 20px 20px 20px;
.photo {
position: absolute;
width: 74px;
height: 74px;
top: -37px;
left: 50%;
margin-left: -37px;
border-radius: 100%;
overflow: hidden;
img {
width: 100%;
height: auto;
position: absolute;
top: 0;
left: 0;
}
}
.info {
font-family: 'Fira Sans', sans-serif;
h3 {
font-size: 16px;
color: #162B39;
text-align: center;
margin-bottom: 10px;
}
span {
font-size: 12px;
color: #8492A6;
text-align: center;
display: block;
}
}
.actions {
position: relative;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-ms-flex-align: center;
align-items: center;
justify-content: center;
margin-top: 25px;
.follow {
background-color: #2FBB98;
color: #ffffff;
border: none;
font-size: 12px;
padding: 0 15px;
height: 40px;
border-radius: 20px;
position: relative;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-ms-flex-align: center;
align-items: center;
cursor: pointer;
transition: all .2s ease-in-out;
svg {
width: 16px;
margin-left: 10px;
fill: #ffffff;
transition: all .2s ease-in-out;
}
&:hover {
background-color: #17a17e;
}
}
.message {
width: 40px;
height: 40px;
border-radius: 100%;
background-color: #E0EDFC;
border: none;
margin-left: 20px;
cursor: pointer;
transition: all .2s ease-in-out;
svg {
width: 14px;
fill: #108AF9;
transition: all .2s ease-in-out;
vertical-align: middle;
}
&:hover {
background-color: #108AF9;
svg {
fill: #ffffff;
}
}
}
}
}
}