I don't do frontend but currently we have a requirement for a header component where we need to overlay a non-rectangular bar with an inset image over the hero image. Here is an example of what I'm talking about:
I've got a working proof of concept by layering 3 divs, but I think it's janky and I'm looking for advice on best practice on how to best take advantage of CSS for what I'm trying to achieve.
I've put together a quick codepen with holder images to show the proof of concept, any help would be greatly appreciated
https://codepen.io/anon/pen/zQvjBP
html:
 <div id="content">
  <div id="innerTop"></div>
  <div id="thing"></div>
  <div id="thing2"/>
</div>
CSS:
#content {
  background-image:url("https://iep.challenges.org/wp-content/uploads/sites/26/2015/11/header-image-5.jpg");
  height:500px;
}
#thing {
  width:100%;
  height:30%;
  background-color:rgba(215, 217, 221, .9);
}
#thing2 {
  margin: 0 auto;
  width:300px;
  height:8em;
  background-color:rgba(215, 217, 221, .9);
  border-radius:0 0 25px 25px;
}
#innerTop {
  float:left;
  width:100%;
  height:100%;
  background-image: url('https://www.freelogodesign.org/Content/img/logo-ex-3.png');
  background-repeat: no-repeat;
  background-position: top; 
  background-size: 300px 300px;
}

 
     
     
    