JSFiddle - React, Tailwind, and code Playground
HTML
<div class="menu_container" id="menu">
<div class="box food">
<div class="band"></div>
<h3 class="menu_title"><p>OUR FOOD</p></h3>
</div>
<div class="box drink">
<div class="band"></div>
<h3 class="menu_title"><p>OUR DRINKS</p></h3>
</div>
</div>
CSS
* {
margin: 0px;
padding: 0px;
}
.menu_container {
position: relative;
overflow: hidden;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
width: 100%;
}
.box {
height: 100vh;
min-height: 400px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
z-index: 50;
}
.menu_title {
position: absolute;
color: #f5f5f5;
z-index: 60;
}
.band {
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
height: 30%;
background-color: #111111;
opacity: .8;
z-index: 10;
}
.food {
background: url("https://ichef.bbci.co.uk/news/660/cpsprodpb/1325A/production/_88762487_junk_food.jpg") center no-repeat;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
.drink {
background: url("http://www.seriouseats.com/recipes/images/2015/05/20150419-summerdaze-cocktail-Elana-Lepkowski-1500x1125.jpg") center no-repeat;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}