JSFiddle - React, Tailwind, and code Playground
HTML
<div class="filter-panel">
<div class="filter-panel__container">
<div class="filter-panel__footer">
<button class="button button_theme-spacewell button_size-m button_bg-red filter-panel__button">
<span class="button__text">Learn more visit</span>
</button>
</div>
</div>
</div>
SCSS
@import 'https://fonts.googleapis.com/css?family=Roboto';
html, body {
font-size: 10px;
font-family: Roboto;
-webkit-font-smoothing: antialiased;
}
.button {
cursor: pointer;
&_theme-spacewell {
display: inline-block;
margin: 0;
padding: 0;
border: 0;
border-radius: 24px;
color: #fff;
text-align: center;
text-transform: uppercase;
font-family: 'Roboto';
font-size: 1.6rem;
.button__text {
padding: 10px 44px;
}
}
&_size {
&-m {
margin-top: 20px;
font-size: 1.6rem;
line-height: 3rem;
}
}
&_bg-red {
background: linear-gradient(to right, #e92c4c, #c82641);
box-shadow: 2px 2px 6px rgba(228, 35, 68, 0.5);
}
&__text {
display: inline-block;
}
&_call {
width: 50px;
height: 50px;
border-radius: 50%;
position: absolute;
right: -26px;
}
}
.filter-panel {
&__container {
position: relative;
margin: 0 auto;
max-width: 1160px;
}
&__header {
border-radius: 12px 12px 0 0;
background: #fff;
box-shadow: 0 0 12px rgba(153, 153, 153, 0.03);
}
&__footer {
z-index: 0;
height: 84px;
border-radius: 0 0 12px 12px;
background: #fff;
box-shadow: 0 5px 8px -3px rgba(153, 153, 153, 0.41);
}
&__button {
position: absolute;
bottom: -24px;
left: 50%;
transform: translateX(-50%);
}
}