JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<div class="item">
<div class="cube">
<svg width="71" height="71" viewBox="0 0 71 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="15.8285" cy="13.745" r="6" fill="black"/>
<circle cx="54.0684" cy="13.745" r="6" fill="black"/>
<circle cx="15.8285" cy="35.3505" r="6" fill="black"/>
<circle cx="54.0684" cy="35.3505" r="6" fill="black"/>
<circle cx="15.8285" cy="56.9561" r="6" fill="black"/>
<circle cx="54.0684" cy="56.9561" r="6" fill="black"/>
</svg>
</div>
</div>
<div class="item">
<div class="cube">
<svg width="71" height="71" viewBox="0 0 71 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="15.5808" cy="14.0597" r="6" fill="black"/>
<circle cx="53.8208" cy="57.2707" r="6" fill="black"/>
</svg>
</div>
</div>
<div class="item">
<div class="cube">
<svg width="71" height="71" viewBox="0 0 71 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="16.2048" cy="13.745" r="6" fill="black"/>
<circle cx="54.4447" cy="13.745" r="6" fill="black"/>
<circle cx="35.8763" cy="35.3505" r="6" fill="black"/>
<circle cx="16.2048" cy="56.9561" r="6" fill="black"/>
<circle cx="54.4447" cy="56.9561" r="6" fill="black"/>
</svg>
</div>
</div>
<div class="item">
<div class="cube">
<svg width="71" height="71" viewBox="0 0 71 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="15.5808" cy="13.745" r="6" fill="black"/>
<circle cx="35.2523" cy="35.3505" r="6" fill="black"/>
<circle cx="53.8208" cy="56.9561" r="6" fill="black"/>
</svg>
</div>
</div>
<div class="item">
<div class="cube">
<svg width="71" height="71" viewBox="0 0 71 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="16.2048" cy="14.0597" r="6" fill="black"/>
<circle cx="54.4447" cy="14.0597" r="6" fill="black"/>
<circle cx="16.2048" cy="57.2707" r="6" fill="black"/>
<circle cx="54.4447" cy="57.2707" r="6" fill="black"/>
</svg>
</div>
</div>
<div class="item">
<div...
CSS
* {
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
width: 270px;
margin: 0 auto;
}
.item {
display: flex;
justify-content: center;
margin: 10px;
}
.item:nth-child(1),
.item:nth-child(5),
.item:nth-child(6) {
width: 100%;
}
.item:nth-child(2),
.item:nth-child(3),
.item:nth-child(4) {
width: calc(100% / 3 - 20px);
}
.cube {
display: flex;
justify-content: center;
align-items: center;
width: 70px;
height: 70px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
border: 2px solid #000;
}