diff --git a/public/assets/icons/cell-lock-line.svg b/public/assets/icons/cell-lock-line.svg
new file mode 100644
index 0000000..204bebb
--- /dev/null
+++ b/public/assets/icons/cell-lock-line.svg
@@ -0,0 +1,15 @@
+
diff --git a/src/app/map/map-item-sheet/map-item-sheet.html b/src/app/map/map-item-sheet/map-item-sheet.html
index 8298323..a62a6dd 100644
--- a/src/app/map/map-item-sheet/map-item-sheet.html
+++ b/src/app/map/map-item-sheet/map-item-sheet.html
@@ -4,7 +4,7 @@
diff --git a/src/app/pages/cities-page/cities-page.html b/src/app/pages/cities-page/cities-page.html
index db539b9..538f461 100644
--- a/src/app/pages/cities-page/cities-page.html
+++ b/src/app/pages/cities-page/cities-page.html
@@ -30,13 +30,21 @@
-
@@ -48,14 +56,22 @@
attraction.name + (obtained(attraction) ? ', получено' : ', не получен')
"
>
-
![]()
+ @if (obtained(attraction) && attraction.iconUrl) {
+
![]()
+ } @else {
+
+
![]()
+
+

+
+ }
}
diff --git a/src/app/pages/cities-page/cities-page.scss b/src/app/pages/cities-page/cities-page.scss
index 3f1b597..31d8dbb 100644
--- a/src/app/pages/cities-page/cities-page.scss
+++ b/src/app/pages/cities-page/cities-page.scss
@@ -128,7 +128,7 @@
padding: 0;
border: 0;
border-radius: 10px;
- background: #171512;
+
color: inherit;
text-decoration: none;
cursor: pointer;
@@ -142,7 +142,7 @@
}
.cell--open {
- background: rgb(224 184 79 / 10%);
+ background: rgb(224 184 79 / 10%) !important;
box-shadow: inset 0 0 0 1.5px var(--color-accent);
}
@@ -185,3 +185,36 @@
gap: 10px;
}
}
+
+.icon-wrapper {
+ position: relative;
+ width: 96px;
+ height: 96px;
+
+ .main-icon {
+ width: 100%;
+ height: 100%;
+ object-fit: contain;
+ }
+
+ .lock-icon {
+ position: absolute;
+
+ top: 50%;
+ left: 50%;
+ transform: translate(-52.4%, -52.4%);
+
+ width: 100%;
+ height: 100%;
+ object-fit: contain;
+ }
+}
+
+.disable-icon {
+ opacity: 0.2;
+ background-color: #1c1a17;
+ .main-icon {
+ filter: brightness(0);
+ height: 90%;
+ }
+}
diff --git a/src/app/pages/city-page/city-page.html b/src/app/pages/city-page/city-page.html
index 8840af7..7316fba 100644
--- a/src/app/pages/city-page/city-page.html
+++ b/src/app/pages/city-page/city-page.html
@@ -6,125 +6,136 @@
@if (area(); as city) {
-
-

-
-
{{ city.name }}
-
-
-
- {{ openedCount() }}/{{ totalCount() }}
- объектов
-
- ·
- {{ progress() }}%
-
-
-
+
+

+
+
{{ city.name }}
+
+
+
+ {{ openedCount() }}/{{ totalCount() }}
+ объектов
+
+ ·
+ {{ progress() }}%
+
+
+
+
-
-
+
- @if (tab() === 'objects' && totalCount() === 0) {
-
В этом городе пока нет объектов.
- }
-
- @if (tab() === 'objects' && totalCount() > 0) {
-
-
-
-
-
-
-
- }
- @if (mapReady()) {
-
- }
+ @if (tab() === 'objects' && totalCount() > 0) {
+
+
+
+
+
+
+
+ }
+
+ @if (mapReady()) {
+
+ }
} @else if (status() === 'loading') {
Загружаем город…
} @else {
diff --git a/src/app/pages/city-page/city-page.scss b/src/app/pages/city-page/city-page.scss
index 69a2ed5..3768b50 100644
--- a/src/app/pages/city-page/city-page.scss
+++ b/src/app/pages/city-page/city-page.scss
@@ -315,3 +315,37 @@
grid-template-columns: 1fr;
}
}
+
+.icon-wrapper {
+ position: relative;
+ width: 96px;
+ height: 96px;
+
+ .main-icon {
+ width: 100%;
+ height: 100%;
+ object-fit: contain;
+ }
+
+ .lock-icon {
+ position: absolute;
+
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+
+ width: 100%;
+ height: 100%;
+ object-fit: contain;
+ }
+}
+
+.disable-icon {
+ opacity: 0.2;
+ background-color: #1c1a17;
+
+ .main-icon {
+ filter: brightness(0);
+ height: 90%;
+ }
+}