I'm attempting to replicate the background image found at https://i.stack.imgur.com/nYDet.jpg
My attempts to use clip-art on this image have been unsuccessful in achieving that shape.
.hero-section {
height: 740px;
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://i.postimg.cc/RZxY1MMZ/hero-image.jpg") no-repeat top;
background-size: cover;
width: 100%;
z-index: 5;
clip-path: polygon(0% 0, 100% 0%, 50% 80%, 0 80%);
}
.hero-heading {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
flex-direction: column;
}
.hero-heading h1 {
color: #fff;
text-align: center;
font-size: 50px;
font-family: "Playfair Display", serif;
font-weight: bold;
position: relative;
display: flex;
flex-direction: column;
z-index: 10;
}
.hero-heading h1 svg {
position: absolute;
bottom: -10px;
left: -35px;
z-index: -1;
}
<section class="hero-section">
<div class="hero-heading">
<h1>
H1 Impact Summary
<!-- <img src="./assets/underline.svg" alt="Heading Image" /> -->
<svg xmlns="http://www.w3.org/2000/svg" width="524.381" height="36.652" viewBox="0 0 524.381 36.652">
<path
id="Path_2986"
data-name="Path 2986"
d="M555.839,170.15c-10.4-2.281-89.638-2.05-95.272-2.8-4.522-.929,5...
</section>
Link to my version on Code Sandbox
If there's an alternative method to achieve this effect without using clip-art, please do share your suggestions.
Your assistance would be greatly appreciated.