I am currently working on setting up a banner that includes an overlay with a cutout. Beneath the overlay, there is an image.
My goal is to create this design using HTML and CSS. I have been experimenting with pseudo-elements but I am having difficulty replicating the shape and position of the design shown below.
Below is my current HTML code:
<header class="main" style="background-image: url(./assets/images/bg-hero.jpg)">
<div class="container">
<div class="row">
<div class="col-12">
<div class="row row--no-pad">
<div class="col-6">
<a href="/">
<img src="./assets/images/logo.png" alt="">
</a>
</div>
<div class="col-6">
<a href="#" class="menu-toggle"></a>
</div>
</div>
<div class="row">
<div class="banner">
<div class="row">
<div class="col-12">
<h1>Lorem ipsum dolor sit amet</h1>
<p>Lorem ipsum dolor sit amet lorem ipsum dolor sit amet, L lorem ipsum dolor sit amet.</p>
<a href="#" class="button button--primary">View our services</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
This is the design I am trying to achieve:
https://i.sstatic.net/IOuRz.jpg
Thank you,
Ben