JSFiddle - React, Tailwind, and code Playground

by Dhanck

HTML

<div class="banner-cta">
  <div class="banner-btn">
    <div class="rhs">
      <div class="title">Book Appointment</div>
      <div class="description">communication / 16 - communication, bubble, chat, comments, conversation, message icon</div>
        <a class="parla-cta-btn">
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16px" height="16px" viewBox="0 0 20 20" version="1.1">
          <g id="Free-Icons" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
            <g transform="translate(-1265.000000, -156.000000)" id="Group" stroke="#ffffff" stroke-width="2">
              <g transform="translate(1263.000000, 154.000000)" id="Shape">
                <path d="M8.29997591,16.1586109 L4.71,18.3 L5.32628923,14.6238888 C3.83281239,13.3921212 3,11.6856969 3,9.8 C3,6.0444637 6.30329488,3 11.55,3 C16.7967051,3 20.1,6.0444637 20.1,9.8 C20.1,13.5555363 16.7967051,16.6 11.55,16.6 C10.3617053,16.6 9.27309774,16.4438342 8.29997591,16.1586109 Z">

                </path>
                <path d="M19.7000346,12 C20.5370398,12.8311353 21,13.932301 21,15.1401596 C21,16.4401458 20.4637233,17.6165428 19.5020218,18.4657147 L19.8988718,21 L17.587162,19.5237413 C16.9605351,19.7203723 16.259543,19.8280319 15.4943589,19.8280319 C12.7385072,19.8280319 10.8153028,18.4315592 10.2,16.5116586 L10.2,16.5116586">

                </path>
              </g>
            </g>
          </g>
        </svg>
    Book Appointment
  </a>
      <div class="bg-cover"></div>
      <div class="bg-cta">
      <img src="https://images.unsplash.com/photo-1570857502809-08184874388e?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2078&q=80" class="" />
      </div>
    </div>
  </div>
</div>

CSS

@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

.banner-cta {
  font-family: 'Montserrat', sans-serif;
  height: 300px;
  overflow: hidden;
  display: block;
  -webkit-box-shadow: 0px 0px 17px 1px rgba(0, 0, 0, 0.26);
    box-shadow: 0px 0px 17px 1px rgba(0, 0, 0, 0.26);
}
.rhs {
    display: block;
    height: 300px;
    overflow: hidden;
    position: relative;
}
.title {
    position: absolute;
    top: 40px;
    font-size: 28px;
    z-index: 2;
    padding: 40px;
    color: #fff;
    font-weight: 600;
}
.description {
    position: absolute;
    top: 80px;
    font-size: 18px;
    z-index: 2;
    padding: 60px 40px;
    color: #fff;
    text-transform: capitalize;
}
.parla-cta-btn {
  display: block;
  font-family: 'Montserrat', sans-serif;
  background: #c1c3fb;
  color: #fff;
  font-weight: 600;
  width: fit-content;
  padding: 10px 25px;
  margin: 0 40px;
  cursor: pointer;
  position: absolute;
  top: 200px;
  z-index: 4;
  -webkit-box-shadow: 0px 0px 17px 1px rgba(0, 0, 0, 0.26);
    box-shadow: 0px 0px 17px 1px rgba(0, 0, 0, 0.26);
}
.bg-cover {
    background: #00000059;
    width: 100%;
    height: 300px;
    display: block;
    position: absolute;
    z-index: 1;
}
.bg-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}