Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified packages/insight/src/assets/icon/favicon.ico
Binary file not shown.
18 changes: 18 additions & 0 deletions packages/insight/src/assets/img/bchicon-testnet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions packages/insight/src/assets/img/btcicon-testnet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

<ion-item *ngFor="let chainNetwork of availableNetworks">
<ion-avatar item-start>
<img src="assets/img/currency_logos/{{ chainNetwork.chain.toLowerCase() }}.svg" class="logo" />
<img *ngIf="chainNetwork.network === 'mainnet'" src="assets/img/currency_logos/{{ chainNetwork.chain.toLowerCase() }}.svg" class="logo" />
<img *ngIf="chainNetwork.network !== 'mainnet' && chainNetwork.chain==='BTC'" src="assets/img/btcicon-testnet.svg" class="logo" />
<img *ngIf="chainNetwork.network !== 'mainnet' && chainNetwork.chain==='BCH'" src="assets/img/bchicon-testnet.svg" class="logo" />
<img [ngClass]="{'secondary': chainNetwork.network ==='testnet'}" *ngIf="chainNetwork.network !== 'mainnet' && chainNetwork.chain==='ETH'" src="assets/img/currency_logos/eth.svg" class="logo" />
</ion-avatar>
<ion-label color="dark" (click)="changeExplorer(chainNetwork)">
{{ chainNetwork.chain }} <small class="pill"> {{ chainNetwork.network }}</small>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ ion-item.item-md {
}
}
}

.secondary {
filter: grayscale(100%);
}

ion-item {
ion-label {
cursor: pointer;
Expand Down
4 changes: 2 additions & 2 deletions packages/insight/src/pages/home/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ion-grid class="page-content-grid-desktop">
<ion-row>
<ion-col col-12 class="page-content" *ngIf="currentView === 'blocks'">
<div class="charts-container">
<!-- <div class="charts-container">
<div class="tx-chart-container">
<h2 class="content-container--heading"> Txs Per Day</h2>
<div class="daily-tx-chart">
Expand All @@ -24,7 +24,7 @@ <h2 class="content-container--heading">Price Chart</h2>
<price-chart #priceChart> </price-chart>
</div>
</div>
</div>
</div> -->
<h2 class="content-container--heading">Latest Blocks</h2>
<latest-blocks [showTimeAs]="'age'" [showAllBlocksButton]="true" [chainNetwork]="chainNetwork" #latestBlocks>
</latest-blocks>
Expand Down
6 changes: 3 additions & 3 deletions packages/insight/src/pages/home/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ page-home {
}

.charts-container {
display: flex;
display: none;
flex-direction: row;
justify-content: space-between;
flex-wrap: wrap;
Expand Down Expand Up @@ -88,7 +88,7 @@ page-home {
@media (min-width: map-get($grid-breakpoints, md)) {

.charts-container {
display: flex;
display: none;
flex-direction: row;
justify-content: space-evenly;
flex-wrap: wrap;
Expand Down Expand Up @@ -119,7 +119,7 @@ page-home {
}

.charts-container {
display: flex;
display: none;
flex-direction: column;
align-items: center;
}
Expand Down