feat: adjusted the cards such that it's only one column for very small widths and the cards resize for smaller widths

Co-Authored-By: Tadios Temesgen <tt2022@ic.ac.uk>
This commit is contained in:
Caspar Jojo Asaam
2025-06-05 11:16:31 +01:00
parent 4ee33398c1
commit f9878d1e48
3 changed files with 16 additions and 2 deletions

View File

@@ -24,6 +24,7 @@
height: 4rem; height: 4rem;
top: 0; top: 0;
left: 0; left: 0;
right: 0;
background: linear-gradient(-77deg, #2e4653, #3a5b56); background: linear-gradient(-77deg, #2e4653, #3a5b56);
box-shadow: 0rem 0rem 0.5rem #182125; box-shadow: 0rem 0rem 0.5rem #182125;
align-items: center; align-items: center;
@@ -33,6 +34,7 @@
display: block; display: block;
height: 100%; height: 100%;
} }
.logo img { .logo img {
height: 100%; height: 100%;
} }

View File

@@ -25,6 +25,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-color: #49bd85; background-color: #49bd85;
width: 100%;
max-width: 20rem;
} }
.description { .description {
padding: 0.5rem; padding: 0.5rem;
@@ -32,7 +34,8 @@
font-size: 0.875rem; font-size: 0.875rem;
} }
img { img {
width: 16rem; width: 100%;
height: auto;
aspect-ratio: 1 / 1; aspect-ratio: 1 / 1;
} }
</style> </style>

View File

@@ -41,13 +41,22 @@
<style> <style>
main { main {
display: grid; display: grid;
box-sizing: border-box;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
gap: 1rem; gap: 1rem;
padding: 1rem; padding: 1rem;
width: min(600px, 100vw); max-width: 600px;
width: 100%;
margin: 0 auto;
} }
.new-space { .new-space {
transform: rotate(45deg); transform: rotate(45deg);
} }
@media (max-width: 20rem) {
main {
grid-template-columns: 1fr;
}
}
</style> </style>