JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<span>Текст поверх всего и вся</span>
</div>
CSS
div {
position: relative;
background: url(https://placeimg.com/640/480/any) no-repeat center center;
background-size: cover;
padding: 100px 0;
text-align: center;
}
div:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
background: linear-gradient(to top, purple, rgba(0,0,0,0));
}
div > * {
position: relative;
z-index: 2;
}
span {
color: #fff;
font-size: 3em;
}