This commit is contained in:
2026-10-05 15:48:24 +03:00
parent 63107164ed
commit a18f6da573
+39 -39
View File
@@ -5,49 +5,49 @@
</div> </div>
<div class="cities"> <div class="cities">
<a class="city-card" routerLink="/city" [attr.aria-label]="city.name"> <a class="city-card" routerLink="/city" [attr.aria-label]="city.name">
<div class="city-card__top"> <div class="city-card__top">
<div> <div>
<h2>{{ city.name }}</h2> <h2>{{ city.name }}</h2>
<p> <p>
Открыто Открыто
<strong>{{ openedCount() }} из {{ totalCount }}</strong> <strong>{{ openedCount() }} из {{ totalCount }}</strong>
объектов объектов
</p> </p>
</div>
<div class="city-card__percent" aria-hidden="true">{{ progress() }}%</div>
</div> </div>
<div class="city-card__percent" aria-hidden="true">{{ progress() }}%</div> <mat-progress-bar mode="determinate" [value]="progress()" />
</div>
<mat-progress-bar mode="determinate" [value]="progress()" /> <div class="city-card__cells">
@for (landmark of city.objects; track landmark.id) {
<div class="city-card__cells"> <span
@for (landmark of city.objects; track landmark.id) { class="cell"
<span [class.cell--open]="collectedIds().has(landmark.id)"
class="cell" [attr.aria-label]="
[class.cell--open]="collectedIds().has(landmark.id)" landmark.title + (collectedIds().has(landmark.id) ? ', получено' : ', не получен')
[attr.aria-label]="
landmark.title + (collectedIds().has(landmark.id) ? ', получено' : ', не получен')
"
>
<img
[src]="
collectedIds().has(landmark.id)
? landmark.achievement
: '/assets/icons/cell-lock.svg'
" "
[alt]="" >
/> <img
</span> [src]="
} collectedIds().has(landmark.id)
</div> ? landmark.achievement
</a> : '/assets/icons/cell-lock.svg'
"
[alt]=""
/>
</span>
}
</div>
</a>
@for (name of upcomingCities; track name) { @for (name of upcomingCities; track name) {
<article class="city-card city-card--soon"> <article class="city-card city-card--soon">
<h2>{{ name }}</h2> <h2>{{ name }}</h2>
<p>Скоро появится</p> <p>Скоро появится</p>
</article> </article>
} }
</div> </div>
</section> </section>