Special halvening block and fireworks.

fixes #50
This commit is contained in:
softsimon
2020-04-09 17:46:30 +07:00
parent 6483fbe1db
commit 611aa0ec93
5 changed files with 165 additions and 1 deletions

View File

@@ -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">&nbsp;</a>
<div class="block-height">
<a [routerLink]="['/block/', block.id]" [state]="{ data: { block: block } }">{{ block.height }}</a>

View File

@@ -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;}
}