JSFiddle - React, Tailwind, and code Playground

by petroveg

HTML

<div class="container">
	<header class="header"></header>
	<div class="contacts">
		<div class="contacts-inner"></div>
	</div>
	<nav class="menu">
		<div class="menu-inner"></div>
	</nav>
	<main class="content"></main>
</div>

CSS

html,
body {
	height: 100%;
}
body {
	margin: 0;
}
.container {
	width: 900px;
	min-height: 100%;
	margin: auto;
	background: #f0f0f0;
}
.header {
	height: 150px;
}
.contacts-inner,
.menu-inner {
	position: relative;
	float: right;
}
.contacts-inner {
	width: 45%;
	background: #69c;
}
.menu-inner {
	width: 70%;
	background: #369;
}
.contacts:after,
.menu:after {
	content: "";
	display: block;
	clear: both;
}
.contacts:before,
.contacts-inner {
	height: 120px;
}
.menu:before,
.menu-inner {
	height: 100px;
}
.contacts:before,
.menu:before {
	content: "";
	opacity: .5;
	position: absolute;
	right: 0;
	box-sizing: border-box;
	min-width: 900px;
	border-right: 20px solid #f00;
	border-left: 20px solid #f00;
}
.contacts:before {
	left: calc(50% - 450px);
	background: #cf6;
}
.menu:before {
	left: 0;
	background: #f60;
}
@media (max-width: 900px) {
	.contacts:before {
		left: 0;
	}
}