Block pool logos

This commit is contained in:
softsimon 2024-07-08 21:45:57 +09:00
parent c43b567847
commit eec6efcc22
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
2 changed files with 15 additions and 3 deletions

View File

@ -60,9 +60,12 @@
</ng-container>
</div>
<div class="animated" [class]="markHeight === block.height ? 'hide' : 'show'" *ngIf="block.extras?.pool != undefined && showPools">
<a [attr.data-cy]="'bitcoin-block-' + offset + '-index-' + i + '-pool'" class="badge badge-primary"
[routerLink]="[('/mining/pool/' + block.extras.pool.slug) | relativeUrl]">
{{ block.extras.pool.name}}</a>
<a [routerLink]="[('/mining/pool/' + block.extras.pool.slug) | relativeUrl]">
<img class="pool-logo" [src]="'/resources/mining-pools/' + block.extras.pool.slug + '.svg'" onError="this.src = '/resources/mining-pools/default.svg'" [alt]="'Logo of ' + block.extras.pool.name + ' mining pool'">
</a>
<a [attr.data-cy]="'bitcoin-block-' + offset + '-index-' + i + '-pool'" class="badge badge-primary" [routerLink]="[('/mining/pool/' + block.extras.pool.slug) | relativeUrl]">
{{ block.extras.pool.name}}
</a>
</div>
</div>
</ng-container>

View File

@ -157,6 +157,15 @@
position: relative;
top: 15px;
z-index: 101;
left: -7.5px;
}
.pool-logo {
width: 15px;
height: 15px;
position: relative;
top: 15px;
left: -12px;
}
.animated {