This is created by using the CSS background property alone. No special tricks, no pseudo-elements, no images. jQuery is used in this demo only for switching the background color of the banner.
You can read the tutorial on Medium .
You can also change background colours at ease:
The iFixit replica contains two vertical grey bars on either side. Pick a colour: