I would like to create a design similar to this
https://i.sstatic.net/JghaP.png
Using clip path and stacked components, I have managed to achieve the following look with this code snippet:
<div className="relative w-full lg:h-[220px] 2xl:h-80">
<div className="absolute w-full lg:h-[220px] 2xl:h-80 bg-[#2f3030] mt-10 p-3 [clip-path:polygon(0_0,65%_0,71%_18%,100%_18%,100%_100%,0_100%)]"></div>
<div className="absolute w-full right-0 top-0 bg-[#ff0000] lg:h-[220px] mt-10 2xl:h-80 [clip-path:polygon(67%_0,100%_0,100%_15%,72%_15%)]"></div>
</div>
https://i.sstatic.net/t48L0.png
However, my challenge now is how to round the edges and add a gradient border similar to the first image. Can anyone help me with this?