docs: hub page responsive fixed

This commit is contained in:
Arista Indrajaya 2024-03-04 13:23:15 +07:00
parent cb3c70025f
commit 89133fb629

View File

@ -7,25 +7,33 @@
.cards { .cards {
display: flex; display: flex;
justify-content: center;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; /* Center align the cards */
gap: 2rem; gap: 2rem;
} }
@media screen and (max-width: 768px) {
.cards {
gap: 2rem;
}
}
.card { .card {
background-color: #ECECEF; background-color: #ECECEF;
width: 30%; width: calc(33.33% - 2rem); /* Adjust width for responsiveness */
border-radius: 15px; border-radius: 15px;
position: relative; position: relative;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
margin-bottom: 2rem; /* Add margin between cards */
padding: 1rem; /* Add padding to cards */
}
@media screen and (max-width: 768px) {
.card {
width: calc(50% - 2rem); /* Adjust width for smaller screens */
}
}
@media screen and (max-width: 576px) {
.card {
width: calc(100% - 2rem); /* Adjust width for mobile screens */
}
} }
.cardContent { .cardContent {