Уменьшение карточек проекта

This commit is contained in:
Ifraim Solomonov committed 2024-02-27 15:13:03 +03:00
1 parent a5b35437da
commit 5723cedcac
2 files changed
+10 -7

No files matched your search

@@ -22,7 +22,11 @@ const mock = [
link: "/projects", link: "/projects",
}, },
{ {
image: project, image: comBattle,
link: "/projects",
},
{
image: comBattle,
link: "/projects", link: "/projects",
}, },
]; ];
@@ -4,18 +4,17 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
row-gap: 32px; gap: 32px;
.card:first-of-type { .card:nth-child(-n + 2) {
width: 100%; flex: 1.5 1 40%;
aspect-ratio: 3;
} }
.card { .card {
display: block; display: block;
position: relative; position: relative;
width: calc(100%/3 - 16px); flex: 1 0.5 30%;
aspect-ratio: 3/2; height: 250px;
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;