fix
This commit is contained in:
@@ -5,49 +5,49 @@
|
||||
</div>
|
||||
|
||||
<div class="cities">
|
||||
<a class="city-card" routerLink="/city" [attr.aria-label]="city.name">
|
||||
<div class="city-card__top">
|
||||
<div>
|
||||
<h2>{{ city.name }}</h2>
|
||||
<p>
|
||||
Открыто
|
||||
<strong>{{ openedCount() }} из {{ totalCount }}</strong>
|
||||
объектов
|
||||
</p>
|
||||
<a class="city-card" routerLink="/city" [attr.aria-label]="city.name">
|
||||
<div class="city-card__top">
|
||||
<div>
|
||||
<h2>{{ city.name }}</h2>
|
||||
<p>
|
||||
Открыто
|
||||
<strong>{{ openedCount() }} из {{ totalCount }}</strong>
|
||||
объектов
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="city-card__percent" aria-hidden="true">{{ progress() }}%</div>
|
||||
</div>
|
||||
|
||||
<div class="city-card__percent" aria-hidden="true">{{ progress() }}%</div>
|
||||
</div>
|
||||
<mat-progress-bar mode="determinate" [value]="progress()" />
|
||||
|
||||
<mat-progress-bar mode="determinate" [value]="progress()" />
|
||||
|
||||
<div class="city-card__cells">
|
||||
@for (landmark of city.objects; track landmark.id) {
|
||||
<span
|
||||
class="cell"
|
||||
[class.cell--open]="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'
|
||||
<div class="city-card__cells">
|
||||
@for (landmark of city.objects; track landmark.id) {
|
||||
<span
|
||||
class="cell"
|
||||
[class.cell--open]="collectedIds().has(landmark.id)"
|
||||
[attr.aria-label]="
|
||||
landmark.title + (collectedIds().has(landmark.id) ? ', получено' : ', не получен')
|
||||
"
|
||||
[alt]=""
|
||||
/>
|
||||
</span>
|
||||
}
|
||||
</div>
|
||||
</a>
|
||||
>
|
||||
<img
|
||||
[src]="
|
||||
collectedIds().has(landmark.id)
|
||||
? landmark.achievement
|
||||
: '/assets/icons/cell-lock.svg'
|
||||
"
|
||||
[alt]=""
|
||||
/>
|
||||
</span>
|
||||
}
|
||||
</div>
|
||||
</a>
|
||||
|
||||
@for (name of upcomingCities; track name) {
|
||||
<article class="city-card city-card--soon">
|
||||
<h2>{{ name }}</h2>
|
||||
<p>Скоро появится</p>
|
||||
</article>
|
||||
}
|
||||
@for (name of upcomingCities; track name) {
|
||||
<article class="city-card city-card--soon">
|
||||
<h2>{{ name }}</h2>
|
||||
<p>Скоро появится</p>
|
||||
</article>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user