JSFiddle - React, Tailwind, and code Playground
HTML
<main class="main">
<div class="block">sdfsdf</div>
<div class="block">sdfsdf</div>
<div class="block">sdfsdf</div>
</main>
<footer class="footer">
<div class="footer__angle"></div>
</footer>
CSS
body {
padding-bottom: 100px;
}
.main {}
.block {
margin: 0 auto 10px auto;
height: 600px;
width: 100px;
text-align: center;
background-color: #eee;
}
.footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 100px;
background-color: #000;
}
.footer__angle {
position: absolute;
top: -15px;
left: 0;
height: 15px;
width: 100%;
overflow: hidden;
pointer-events: none;
}
.footer__angle:before {
content: '';
display: block;
height: 100%;
width: 100%;
border-radius: 0 0 15px 15px;
box-shadow: 0 0 0 30px black;
}