I need to create a shape like the one pictured below in just HTML and CSS. I am really not sure how to create the triangular shape at the bottom. The code I currently have is bare minimum because I am really not sure where to start.
.newBadge {
flex: inherit;
height: 130px;
width: 130px;
background: linear-gradient(to right, grey, lightgray, lightgray ,grey 1900px);
/* border-radius: 5px; */
border: 5%;
border-color: lightgray;
border-style: inset;
}
.background{
/* height: auto; */
}
.year{
flex: auto;
width: 0;
height: 0;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-top: 1px solid #f00;
}
<div class="newBadge">
<div class="background">
<div class="company">
_______
</div>
<div class="title">
______
</div>
<div class="secondaryTitle">
______
</div>
<div class="rating">
*****
</div>
<div class="year">
2021
</div>
</div>
</div>