mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:19:45 +00:00
Рефактор Labs, выравнивание карточек проектов и лаб
This commit is contained in:
1 parent
e164d515bb
commit
d96a8c564f
6 files changed
+62
-53
No files matched your search
@@ -5,7 +5,7 @@ function ProjectCard({ project }) {
|
||||
<Link className="card" to={`/projects`}>
|
||||
<img className="image" alt="project_image" src={project.image}></img>
|
||||
<div className="link-label">
|
||||
Перейти→
|
||||
Перейти →
|
||||
</div>
|
||||
</Link>
|
||||
);
|
||||
|
||||
@@ -14,9 +14,13 @@
|
||||
.card {
|
||||
display: block;
|
||||
position: relative;
|
||||
width: calc(100%/3 - 64px);
|
||||
width: calc(100%/3 - 16px);
|
||||
aspect-ratio: 3/2;
|
||||
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: transparent;
|
||||
|
||||
.image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -26,7 +30,7 @@
|
||||
|
||||
.link-label {
|
||||
position: absolute;
|
||||
right: 24px;
|
||||
right: 22px;
|
||||
bottom: 16px;
|
||||
|
||||
padding: 2px;
|
||||
|
||||
Reference in new issue
Block a user