<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<div class="container">
<div class="row">
<div class="main">
<div class="cube">
<div class="layer right">Right</div>
<div class="layer left">Left</div>
<div class="layer front">Front</div>
<div class="layer back">Back</div>
<div class="layer top">Top</div>
<div class="layer bottom">Bottom</div>
</div>
</div>
</div>
</div>