diff --git a/src/app/pages/cities-page/cities-page.scss b/src/app/pages/cities-page/cities-page.scss index 31d8dbb..28104bc 100644 --- a/src/app/pages/cities-page/cities-page.scss +++ b/src/app/pages/cities-page/cities-page.scss @@ -128,6 +128,7 @@ padding: 0; border: 0; border-radius: 10px; + background: #171512; color: inherit; text-decoration: none; @@ -188,33 +189,39 @@ .icon-wrapper { position: relative; - width: 96px; - height: 96px; + width: 100%; + aspect-ratio: 1; .main-icon { - width: 100%; - height: 100%; + position: absolute; + top: 50%; + left: 50%; + + width: 70.833%; + height: 70.833%; + + transform: translate(-50%, -50%); object-fit: contain; } .lock-icon { position: absolute; - - top: 50%; - left: 50%; - transform: translate(-52.4%, -52.4%); - - width: 100%; - height: 100%; + top: 49%; + left: 50.4%; + width: 95%; + height: 96%; + transform: translate(-50%, -50%); object-fit: contain; } -} -.disable-icon { - opacity: 0.2; - background-color: #1c1a17; - .main-icon { - filter: brightness(0); - height: 90%; + &.disable-icon { + .main-icon { + filter: brightness(0); + opacity: 0.2; + } + + .lock-icon { + opacity: 0.4; + } } } diff --git a/src/app/pages/city-page/city-page.html b/src/app/pages/city-page/city-page.html index 7316fba..ac33506 100644 --- a/src/app/pages/city-page/city-page.html +++ b/src/app/pages/city-page/city-page.html @@ -97,21 +97,22 @@ } + @if (isOpen(landmark) && landmark?.iconUrl) { + + } @else { +
+ -
- - - @if (!isOpen(landmark) && landmark?.iconUrl) { - } -
+
+ }

{{ landmark.name }}

diff --git a/src/app/pages/city-page/city-page.scss b/src/app/pages/city-page/city-page.scss index 3768b50..060c4f6 100644 --- a/src/app/pages/city-page/city-page.scss +++ b/src/app/pages/city-page/city-page.scss @@ -205,8 +205,6 @@ justify-content: center; height: 112px; overflow: hidden; - background: - radial-gradient(circle at 50% 42%, rgb(255 255 255 / 5%), rgb(255 255 255 / 0%) 70%), #1a1815; } .card__preview img { @@ -318,34 +316,47 @@ .icon-wrapper { position: relative; - width: 96px; - height: 96px; + width: 112px; + height: 112px; + flex-shrink: 0; .main-icon { - width: 100%; - height: 100%; + position: absolute; + top: 50%; + left: 50%; + + width: 80px; + height: 80px; + + transform: translate(-50%, -50%); object-fit: contain; } .lock-icon { position: absolute; + top: 47%; + left: 48%; + + width: 103px; + height: 108px; - top: 50%; - left: 50%; transform: translate(-50%, -50%); - - width: 100%; - height: 100%; object-fit: contain; } -} -.disable-icon { - opacity: 0.2; - background-color: #1c1a17; + &.disable-icon { + .main-icon { + filter: brightness(0); + opacity: 0.2; + } - .main-icon { - filter: brightness(0); - height: 90%; + .lock-icon { + opacity: 0.4; + } + } + + &:not(.disable-icon) .main-icon { + width: 100%; + height: 100%; } }