Looking to create a set of 6 Bootstrap 5 cards in square dimensions to function as buttons. Each card should be col-xl-2 wide and exactly square in height.
https://i.sstatic.net/iqZyk.png
I've started creating the cards with the code below. Can anyone provide guidance on how to achieve this design?
.card-buttons:before {
content: "";
display: block;
padding-top: 100%;
align-self: center!important;
}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9af8f5f5eee9eee8fbeadaafb4abb4a9">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha512-Fo3rlrZj/k7ujTnHg4CGR2D7kSs0v4LLanw2qksYuRlEzO+tcaEPQogQ0KaoGN26/zrn20ImR1DfuLWnOo7aBA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<div class="container-fluid">
<div class="row mt-4 ">
<div class="col-2 mx-auto">
<div class="card card-body card-buttons">
<i class="fa fa-comments"></i>
</div>
</div>
<div class="col-2 mx-auto">
<div class="card card-body card-buttons">
<i class="fa fa-comments"></i>
</div>
</div>
<div class="col-2 mx-auto">
<div class="card card-body card-buttons">
<i class="fa fa-comments"></i>
</div>
</div>
<div class="col-2 mx-auto">
<div class="card card-body card-buttons">
<i class="fa fa-comments"></i>
</div>
</div>
<div class="col-2 mx-auto">
<div class="card card-body card-buttons">
<i class="fa fa-comments"></i>
</div>
</div>
<div class="col-2 mx-auto">
<div class="card card-body card-buttons">
<i class="fa fa-comments"></i>
</div>
</div>
</div>
</div>