JSFiddle - React, Tailwind, and code Playground
by Good Muyis
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="hexagon text-center step-1">
<span class="py-0">
<b class="digit">01</b>
<i class="fa fa-home d-block"></i>
<small class="desc">Choose a Strategy Manager</small>
</span>
</div>
CSS
.hexagon {
position: relative;
width: 150px;
height: 86.60px;
background-color: #ffffff;
margin: 43.30px 0;
box-shadow: 0 0 17px rgba(0,0,0,0.45);
}
.hexagon:before,
.hexagon:after {
content: "";
position: absolute;
z-index: 1;
width: 106.07px;
height: 106.07px;
-webkit-transform: scaleY(0.5774) rotate(-45deg);
-ms-transform: scaleY(0.5774) rotate(-45deg);
transform: scaleY(0.5774) rotate(-45deg);
background-color: inherit;
left: 21.9670px;
box-shadow: 0 0 17px rgba(0,0,0,0.45);
}
.hexagon:before {
top: -53.0330px;
}
.hexagon:after {
bottom: -53.0330px;
}
/*cover up extra shadows*/
.hexagon span {
display: block;
position: absolute;
top:0px;
left: 0;
width:150px;
/*height:86.6025px;*/
z-index: 6;
background: inherit;
}
.hexagon .digit{
font-size: 40px;
}