Improve unfurl layout & resize to 1200x600

This commit is contained in:
Mononaut 2022-08-02 01:15:50 +00:00
parent 578a1b6d19
commit e4342113fa
No known key found for this signature in database
GPG Key ID: 61B952CAF4838F94
7 changed files with 46 additions and 42 deletions

View File

@ -44,7 +44,7 @@
<div class="w-100 d-block d-md-none"></div> <div class="w-100 d-block d-md-none"></div>
<div class="col-md qrcode-col"> <div class="col-md qrcode-col">
<div class="qr-wrapper"> <div class="qr-wrapper">
<app-qrcode [data]="address.address" [size]="370"></app-qrcode> <app-qrcode [data]="address.address" [size]="448"></app-qrcode>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,5 +1,5 @@
h1 { h1 {
font-size: 42px; font-size: 52px;
margin: 0; margin: 0;
} }
@ -11,23 +11,26 @@ h1 {
} }
.qrcode-col { .qrcode-col {
width: 420px; width: 468px;
min-width: 420px; min-width: 468px;
flex-grow: 0; flex-grow: 0;
flex-shrink: 0; flex-shrink: 0;
text-align: center; text-align: center;
padding: 0;
margin-left: 2px;
margin-right: 15px;
} }
.table { .table {
font-size: 24px; font-size: 32px;
::ng-deep .symbol { ::ng-deep .symbol {
font-size: 18px; font-size: 24px;
} }
} }
.address-link { .address-link {
font-size: 20px; font-size: 24px;
margin-bottom: 0.5em; margin-bottom: 0.5em;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -35,7 +38,7 @@ h1 {
.truncated-address { .truncated-address {
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
max-width: calc(505px - 4em); max-width: calc(640px - 4em);
display: inline-block; display: inline-block;
white-space: nowrap; white-space: nowrap;
} }

View File

@ -1,23 +1,25 @@
.block-title { .block-title {
margin-bottom: 0.75em; margin-bottom: 48px;
font-size: 42px; font-size: 52px;
::ng-deep .next-previous-blocks { ::ng-deep .next-previous-blocks {
font-size: 42px; font-size: 52px;
} }
} }
.table { .table {
font-size: 24px; font-size: 32px;
} }
.chart-container { .chart-container {
flex-grow: 0; flex-grow: 0;
flex-shrink: 0; flex-shrink: 0;
width: 420px; width: 470px;
min-width: 420px; min-width: 470px;
padding: 0;
margin-right: 15px;
} }
::ng-deep .symbol { ::ng-deep .symbol {
font-size: 18px; font-size: 24px;
} }

View File

@ -1,21 +1,20 @@
<ng-container *ngIf="{ val: network$ | async } as network"> <ng-container *ngIf="{ val: network$ | async } as network">
<div class="preview-wrapper"> <div class="preview-wrapper">
<router-outlet></router-outlet> <header>
<span class="header-brand" style="position: relative;">
<footer> <img *ngIf="!officialMempoolSpace" src="/resources/mempool-logo.png" height="50" width="200" class="logo">
<span class="footer-brand" style="position: relative;"> <app-svg-images *ngIf="officialMempoolSpace" name="officialMempoolSpace" style="width: 200px; height: 50px" width="500" height="126" viewBox="0 0 500 126"></app-svg-images>
<img *ngIf="!officialMempoolSpace" src="/resources/mempool-logo.png" height="35" width="140" class="logo">
<app-svg-images *ngIf="officialMempoolSpace" name="officialMempoolSpace" style="width: 140px; height: 35px" width="500" height="126" viewBox="0 0 500 126"></app-svg-images>
</span> </span>
<div [ngSwitch]="network.val"> <div [ngSwitch]="network.val">
<span *ngSwitchCase="'signet'" class="network signet"><img src="/resources/signet-logo.png" style="width: 30px;" class="signet mr-1" alt="logo"> Signet</span> <span *ngSwitchCase="'signet'" class="network signet"><img src="/resources/signet-logo.png" style="width: 45px;" class="signet mr-1" alt="logo"> Signet</span>
<span *ngSwitchCase="'testnet'" class="network testnet"><img src="/resources/testnet-logo.png" style="width: 30px;" class="mr-1" alt="testnet logo"> Testnet</span> <span *ngSwitchCase="'testnet'" class="network testnet"><img src="/resources/testnet-logo.png" style="width: 45px;" class="mr-1" alt="testnet logo"> Testnet</span>
<span *ngSwitchCase="'bisq'" class="network bisq"><img src="/resources/bisq-logo.png" style="width: 30px;" class="mr-1" alt="bisq logo"> Bisq</span> <span *ngSwitchCase="'bisq'" class="network bisq"><img src="/resources/bisq-logo.png" style="width: 45px;" class="mr-1" alt="bisq logo"> Bisq</span>
<span *ngSwitchCase="'liquid'" class="network liquid"><img src="/resources/liquid-logo.png" style="width: 30px;" class="mr-1" alt="liquid mainnet logo"> Liquid</span> <span *ngSwitchCase="'liquid'" class="network liquid"><img src="/resources/liquid-logo.png" style="width: 45px;" class="mr-1" alt="liquid mainnet logo"> Liquid</span>
<span *ngSwitchCase="'liquidtestnet'" class="network liquidtestnet"><img src="/resources/liquidtestnet-logo.png" style="width: 30px;" class="mr-1" alt="liquid testnet logo"> Liquid Testnet</span> <span *ngSwitchCase="'liquidtestnet'" class="network liquidtestnet"><img src="/resources/liquidtestnet-logo.png" style="width: 45px;" class="mr-1" alt="liquid testnet logo"> Liquid Testnet</span>
<span *ngSwitchDefault class="network mainnet"><img src="/resources/bitcoin-logo.png" style="width: 30px;" class="mainnet mr-1" alt="bitcoin logo"> Mainnet</span> <span *ngSwitchDefault class="network mainnet"><img src="/resources/bitcoin-logo.png" style="width: 45px;" class="mainnet mr-1" alt="bitcoin logo"> Mainnet</span>
</div> </div>
</footer> </header>
<router-outlet></router-outlet>
</div> </div>
</ng-container> </ng-container>

View File

@ -2,28 +2,28 @@
position: relative; position: relative;
display: block; display: block;
margin: auto; margin: auto;
max-width: 1024px; max-width: 1200px;
max-height: 512px; max-height: 600px;
padding-bottom: 64px; padding-top: 80px;
footer { header {
position: absolute; position: absolute;
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; top: 0;
z-index: 100; z-index: 100;
min-height: 64px; min-height: 80px;
padding: 0rem 2rem; padding: 0rem 3rem;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
background: #11131f; background: #11131f;
text-align: start; text-align: start;
font-size: 1.2em; font-size: 1.8em;
} }
.footer-brand { .header-brand {
width: 60%; width: 60%;
} }

View File

@ -88,8 +88,8 @@ body {
} }
.preview-box { .preview-box {
min-height: 512px; min-height: 520px;
padding: 2rem 3rem; padding: 1.5rem 3rem;
} }
@media (max-width: 767.98px) { @media (max-width: 767.98px) {

View File

@ -1,11 +1,11 @@
{ {
"headless": true, "headless": true,
"defaultViewport": { "defaultViewport": {
"width": 1024, "width": 1200,
"height": 512 "height": 600
}, },
"args": [ "args": [
"--window-size=1024,512", "--window-size=1200,600",
"--autoplay-policy=user-gesture-required", "--autoplay-policy=user-gesture-required",
"--disable-background-networking", "--disable-background-networking",
"--disable-background-timer-throttling", "--disable-background-timer-throttling",