@@ -1,6 +1,6 @@
|
||||
<div class="blocks-container" *ngIf="blocks.length">
|
||||
<div *ngFor="let block of blocks; let i = index; trackBy: trackByBlocksFn" >
|
||||
<div class="text-center bitcoin-block mined-block" id="bitcoin-block-{{ block.height }}" [ngStyle]="getStyleForBlock(block)">
|
||||
<div class="text-center bitcoin-block mined-block" [class.blink-bg]="block.height % 210000 === 0" id="bitcoin-block-{{ block.height }}" [ngStyle]="getStyleForBlock(block)">
|
||||
<a [routerLink]="['/block/', block.id]" [state]="{ data: { block: block } }" class="blockLink"> </a>
|
||||
<div class="block-height">
|
||||
<a [routerLink]="['/block/', block.id]" [state]="{ data: { block: block } }">{{ block.height }}</a>
|
||||
|
||||
@@ -101,3 +101,19 @@
|
||||
border-right: 35px solid transparent;
|
||||
border-bottom: 35px solid #FFF;
|
||||
}
|
||||
|
||||
// Blinking block
|
||||
|
||||
.blink-bg {
|
||||
color: #fff;
|
||||
animation: blinkingBackground 1s infinite;
|
||||
background: inherit !important;
|
||||
}
|
||||
|
||||
@keyframes blinkingBackground {
|
||||
0% { background-color: #10c018;}
|
||||
25% { background-color: #1056c0;}
|
||||
50% { background-color: #ef0a1a;}
|
||||
75% { background-color: #CFB53B;}
|
||||
100% { background-color: #04a1d5;}
|
||||
}
|
||||
Reference in New Issue
Block a user