JSFiddle - React, Tailwind, and code Playground

HTML

<div class="mainArea">
        <div class="container">
            <div class="col-md-12 text-center ">
                <p>its the text..</p>
            </div>
        </div>
        <div class="mainAreaOverlay"></div>
</div>

CSS

.mainArea {
    background: url('https://c.wallhere.com/photos/94/68/1920x1000_px_landscape_photography_reflections_river-1002111.jpg!d');
    height: 50vh;
    width: 100vw;
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.mainArea p {
    display: flex;
    height: 50vh;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 2px 2px 4px #000000;
    z-index: 999999 !important;
}

.mainAreaOverlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    top: 0;
    left: 0;
    z-index: 1;
}