<div class="card">
<div class="ilustration">
<lottie-player src="https://assets10.lottiefiles.com/packages/lf20_LrcfNr.json" background="white" speed="1" loop autoplay></lottie-player>
</div>
<h3>¡Congratulations!</h3>
<p>Lorem ipsum dolor sit amet consectetur adipiscing elit ligula fusce urna nisl, quam conubia nam sapien id penatibus.</p>
<button>Continue</button>
</div>
/*5 Minutes Challenge*/
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&display=swap");
$primaryFont: "Fredoka", sans-serif;
$backgroundColor: #eceff1;
$primaryColor: #81c784;
body {
background: $backgroundColor;
}
.card {
background-color: $backgroundColor;
border-radius: 30px;
text-align: center;
padding: 15px;
max-width: 375px;
margin: 100px auto;
box-shadow: 20px 20px 20px darken($backgroundColor, 2%),
-20px -20px 20px lighten($backgroundColor, 2%);
.ilustration {
margin: 30px;
lottie-player {
width: 200px;
height: 200px;
border-radius: 100%;
overflow: hidden;
margin: 0 auto;
box-shadow: 20px 20px 20px darken($backgroundColor, 2%),
-20px -20px 20px lighten($backgroundColor, 2%);
}
}
h3 {
font-family: $primaryFont;
font-size: 2rem;
line-height: 2.2rem;
color: darken($backgroundColor, 80%);
font-weight: bold;
margin: 30px 0;
}
p {
font-family: $primaryFont;
font-size: 1rem;
line-height: 1.3rem;
color: darken($backgroundColor, 50%);
margin: 30px auto;
max-width: 80%;
}
button {
font-family: $primaryFont;
font-size: 1.1rem;
font-weight: bold;
padding: 15px 80px;
border-radius: 25px;
color: white;
border: 0;
margin: 30px 0;
outline: none;
background-color: $primaryColor;
box-shadow: 10px 10px 10px darken( rgba(red($primaryColor), green($primaryColor), blue($primaryColor), 0.2), 2% ), -10px -10px 10px lighten( rgba(red($primaryColor), green($primaryColor), blue($primaryColor), 0.2), 2% );
transition: ease all 0.3s;
cursor: pointer;
&:hover {
box-shadow: 20px 20px 20px darken( rgba(red($primaryColor), green($primaryColor), blue($primaryColor), 0.1), 2% ), -20px -20px 20px lighten( rgba(red($primaryColor), green($primaryColor), blue($primaryColor), 0.1), 2% );
transform: translateY(-3px);
}
&:active {
transform: scale(0.9);
box-shadow: inset -1px -1px 3px darken( rgba(red($primaryColor), green($primaryColor), blue($primaryColor), 0.3), 2% ), -20px -20px 20px lighten( rgba(red($primaryColor), green($primaryColor), blue($primaryColor), 0), 2% );
}
}
}
View Compiled