update style for lock

This commit is contained in:
2026-11-19 18:39:19 +03:00
parent 33cc27797e
commit a738fbc729
3 changed files with 68 additions and 49 deletions
+23 -16
View File
@@ -128,6 +128,7 @@
padding: 0; padding: 0;
border: 0; border: 0;
border-radius: 10px; border-radius: 10px;
background: #171512;
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
@@ -188,33 +189,39 @@
.icon-wrapper { .icon-wrapper {
position: relative; position: relative;
width: 96px; width: 100%;
height: 96px; aspect-ratio: 1;
.main-icon { .main-icon {
width: 100%; position: absolute;
height: 100%; top: 50%;
left: 50%;
width: 70.833%;
height: 70.833%;
transform: translate(-50%, -50%);
object-fit: contain; object-fit: contain;
} }
.lock-icon { .lock-icon {
position: absolute; position: absolute;
top: 49%;
top: 50%; left: 50.4%;
left: 50%; width: 95%;
transform: translate(-52.4%, -52.4%); height: 96%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
object-fit: contain; object-fit: contain;
} }
}
.disable-icon { &.disable-icon {
opacity: 0.2;
background-color: #1c1a17;
.main-icon { .main-icon {
filter: brightness(0); filter: brightness(0);
height: 90%; opacity: 0.2;
}
.lock-icon {
opacity: 0.4;
}
} }
} }
+4 -3
View File
@@ -97,7 +97,9 @@
<span class="card__spark card__spark--c"></span> <span class="card__spark card__spark--c"></span>
<span class="card__spark card__spark--d"></span> <span class="card__spark card__spark--d"></span>
} }
@if (isOpen(landmark) && landmark?.iconUrl) {
<img [src]="landmark?.iconUrl" alt="" />
} @else {
<div <div
class="icon-wrapper" class="icon-wrapper"
[class.disable-icon]="!isOpen(landmark) && landmark?.iconUrl" [class.disable-icon]="!isOpen(landmark) && landmark?.iconUrl"
@@ -108,10 +110,9 @@
alt="" alt=""
/> />
@if (!isOpen(landmark) && landmark?.iconUrl) {
<img class="lock-icon" src="/assets/icons/cell-lock-line.svg" alt="" /> <img class="lock-icon" src="/assets/icons/cell-lock-line.svg" alt="" />
}
</div> </div>
}
</div> </div>
<div class="card__body"> <div class="card__body">
<h2>{{ landmark.name }}</h2> <h2>{{ landmark.name }}</h2>
+28 -17
View File
@@ -205,8 +205,6 @@
justify-content: center; justify-content: center;
height: 112px; height: 112px;
overflow: hidden; overflow: hidden;
background:
radial-gradient(circle at 50% 42%, rgb(255 255 255 / 5%), rgb(255 255 255 / 0%) 70%), #1a1815;
} }
.card__preview img { .card__preview img {
@@ -318,34 +316,47 @@
.icon-wrapper { .icon-wrapper {
position: relative; position: relative;
width: 96px; width: 112px;
height: 96px; height: 112px;
flex-shrink: 0;
.main-icon { .main-icon {
width: 100%; position: absolute;
height: 100%; top: 50%;
left: 50%;
width: 80px;
height: 80px;
transform: translate(-50%, -50%);
object-fit: contain; object-fit: contain;
} }
.lock-icon { .lock-icon {
position: absolute; position: absolute;
top: 47%;
left: 48%;
width: 103px;
height: 108px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
width: 100%;
height: 100%;
object-fit: contain; object-fit: contain;
} }
}
.disable-icon {
opacity: 0.2;
background-color: #1c1a17;
&.disable-icon {
.main-icon { .main-icon {
filter: brightness(0); filter: brightness(0);
height: 90%; opacity: 0.2;
}
.lock-icon {
opacity: 0.4;
}
}
&:not(.disable-icon) .main-icon {
width: 100%;
height: 100%;
} }
} }