this is the desired design I hope I can reach
and this is as far as I got, it's the idea of stacking my divs together so they look like the first picture that I can't wrap my head around
my code
html
<div
class="container-fluid d-flex flex-wrap justify-content-between h-100 w-100"
>
<div class="square bg-info bg-gradient"><div class="text">hello1</div></div>
<div class="square bg-dark bg-gradient"><div class="text">hello2</div></div>
<div class="square bg-primary bg-gradient"><div class="text">hello3</div></div>
<div class="square bg-secondary bg-gradient"><div class="text">hello4</div></div>
<div class="square bg-success bg-gradient"><div class="text">hello5</div></div>
<div class="square bg-danger bg-gradient"><div class="text">hello6</div></div>
<div class="square bg-warning bg-gradient overflow-hidden"><div class="text">
<img src="img/6.jpg" class="img-card" alt="">
</div></div>
//then I repeated the same divs over and over
</div>
css
body,
html {
width: 100%;
max-height: 100%;
font-family: 'Montserrat', sans-serif;
padding: 5px;
color: white;
}
.square{
width: 100px;
height: 100px;
margin: 20px;
transform: rotate(45deg);
display: flex;
justify-content: center;
align-items: center;
}
.square .text{
transform: rotate(-45deg);
}
.img-card{
width: 250px;
}
any help will be appreciated,
thanks in advance