2 Commits
Author SHA1 Message Date
WantClue 1c0b2d93e3 Merge pull request #27 from WantClue/patch-1
Update splash.component.scss
2025-11-28 19:14:41 +01:00
WantClue 7840c7c0ec Update splash.component.scss
allow better visual stratum url on smaller screens
2025-02-24 19:37:42 +01:00
14 changed files with 52 additions and 71 deletions
@@ -33,8 +33,6 @@
<div class="info mb-2 p-4 border-dashed border-1 border-round"> <div class="info mb-2 p-4 border-dashed border-1 border-round">
<code>stratum+tcp://{{stratumURL}}</code> <code>stratum+tcp://{{stratumURL}}</code>
<br> <br>
<code>stratum+tls://{{secureStratumURL}}</code>
<br>
<code>username: &lt;your BTC address&gt;.&lt;worker name&gt;, password: x</code> <code>username: &lt;your BTC address&gt;.&lt;worker name&gt;, password: x</code>
</div> </div>
<span><b>NO FEES</b></span> <span><b>NO FEES</b></span>
@@ -42,6 +40,9 @@
<span>No second best.</span> <span>No second best.</span>
</div> </div>
</div> </div>
</div> </div>
@@ -64,7 +65,7 @@
<div class="text-center mb-2">Uptime: {{uptime$ | async | dateAgo}}</div> <div class="text-center mb-2">Uptime: {{uptime$ | async | dateAgo}}</div>
<ng-container *ngIf="chartData$ | async as chartData; else loadingChart"> <ng-container *ngIf="chartData$ | async as chartData; else loadingChart">
<p-chart [responsive]="true" type="line" [data]="chartData" [options]="chartOptions"></p-chart> <p-chart [responsive]="true" type="line" [data]="chartData" [options]="chartOptions"></p-chart>
</ng-container> </ng-container>
@@ -130,58 +131,6 @@
</div> </div>
</div> </div>
<div class="col-12">
<div class="card">
<h4 style="text-align: center;">Affiliate Program</h4>
<p>Purchase products through the affiliate links below to enjoy discounts on mining hardware. Affiliate
earnings are used for pool hosting costs and allow 0% fees. Your support is appreciated.</p>
<div class="grid" style="padding-top: 20px;">
<div class="col-12 md:col-4">
<a href="https://www.solosatoshi.com/aff/7/" target="_blank">
<div class="text-center">
<h4 class="text-center"> Solo Satoshi (USA)</h4>
<img id="solosatoshi" style="height: 200px; width: 200px; object-fit: contain;"
src="assets/layout/images/solo-logo.webp" alt="solosatoshi">
<h5>Discount Code (6.5%): <code>RealPleb </code></h5>
</div>
</a>
</div>
<div class="col-12 md:col-4">
<a href="https://www.thesolomining.co/" target="_blank">
<div class="text-center">
<h4 class="text-center"> The Solo Mining Co (UK)</h4>
<img id="soloco" style="height: 200px; width: 200px; object-fit: cover;"
src="assets/layout/images/soloco.png" alt="soloco">
<h5>Discount Code: <code>solo</code></h5>
</div>
</a>
</div>
<div class="col-12 md:col-4">
<a href="https://d-central.tech/product-category/asics/ref/benjamin.wilson/" target="_blank">
<div class="text-center">
<h4 class="text-center"> D-Central Tech (CA)</h4>
<img id="dcentral" style="height: 200px; width: 200px; object-fit: cover;"
src="assets/layout/images/dcentral.png" alt="dcentral">
<h5>Discount Code: <code>solo</code> (Bitaxe products)</h5>
</div>
</a>
</div>
<div class="col-12 md:col-4">
<a href="https://miningwholesale.eu/?wpam_id=143" target="_blank">
<div class="text-center">
<h4 class="text-center"> Mining Wholesale (EU)</h4>
<img id="GoBrrr" style="height: 200px; width: 200px; object-fit: contain;"
src="assets/layout/images/mining-wholesale.png" alt="GoBrrr">
</div>
</a>
</div>
</div>
</div>
</div>
<div class="col-12" *ngIf="highScores$ | async as highScores"> <div class="col-12" *ngIf="highScores$ | async as highScores">
<div class="card"> <div class="card">
@@ -24,6 +24,47 @@
font-size: x-large; font-size: x-large;
} }
.info code {
display: inline-block;
white-space: nowrap;
font-size: inherit;
}
/* Desktop styles */
@media screen and (min-width: 769px) {
.info {
padding: 1rem;
text-align: center;
}
.info code {
max-width: 90%;
margin: 0 auto;
}
}
/* Tablet and mobile styles */
@media screen and (max-width: 768px) {
.info {
font-size: large;
padding: 0.5rem;
}
.info code {
white-space: pre-wrap;
word-wrap: break-word;
font-size: 0.9em;
}
}
/* Very small screens */
@media screen and (max-width: 480px) {
.info {
font-size: medium;
padding: 0.25rem;
}
}
.card { .card {
max-width: 1024px; max-width: 1024px;
margin: 0 auto; margin: 0 auto;
@@ -33,4 +74,4 @@
.pi-star-fill { .pi-star-fill {
color: gold; color: gold;
} }
@@ -27,11 +27,10 @@ export class SplashComponent {
public chartOptions: any; public chartOptions: any;
public stratumURL = ''; public stratumURL = '';
public secureStratumURL = '';
private info$: Observable<any>; private info$: Observable<any>;
private networkInfo: any; private networkInfo:any;
constructor(private appService: AppService, private cdr: ChangeDetectorRef) { constructor(private appService: AppService, private cdr: ChangeDetectorRef) {
@@ -43,12 +42,6 @@ export class SplashComponent {
this.stratumURL = window.location.hostname + ':3333'; this.stratumURL = window.location.hostname + ':3333';
} }
if (environment.SECURE_STRATUM_URL.length > 1) {
this.secureStratumURL = environment.SECURE_STRATUM_URL;
} else {
this.secureStratumURL = window.location.hostname + ':4333';
}
this.blockData$ = this.info$.pipe(map(info => info.blockData)); this.blockData$ = this.info$.pipe(map(info => info.blockData));
this.userAgents$ = this.info$.pipe(map(info => info.userAgents)); this.userAgents$ = this.info$.pipe(map(info => info.userAgents));
this.highScores$ = this.info$.pipe(map(info => info.highScores)); this.highScores$ = this.info$.pipe(map(info => info.highScores));
@@ -114,7 +107,7 @@ export class SplashComponent {
ticks: { ticks: {
color: textColorSecondary, color: textColorSecondary,
callback: (value: number) => { callback: (value: number) => {
return HashSuffixPipe.transform(value) + " - " + AverageTimeToBlockPipe.transform(value, this.networkInfo.difficulty); return HashSuffixPipe.transform(value) + " - " + AverageTimeToBlockPipe.transform(value, this.networkInfo.difficulty);
} }
}, },
grid: { grid: {
@@ -91,5 +91,5 @@
<i class="pi pi-star-fill"></i> <i class="pi pi-star-fill"></i>
</a> </a>
</ng-container> </ng-container>
<ng-container *ngSwitchDefault>{{userAgent | slice:0:12}}</ng-container> <ng-container *ngSwitchDefault>{{userAgent}}</ng-container>
</ng-container> </ng-container>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

+1 -2
View File
@@ -1,6 +1,5 @@
export const environment = { export const environment = {
production: true, production: true,
API_URL: 'https://public-pool.io:40557', API_URL: 'https://public-pool.io:40557',
STRATUM_URL: 'public-pool.io:3333', STRATUM_URL: 'public-pool.io:21496'
SECURE_STRATUM_URL: 'public-pool.io:4333',
}; };
+1 -2
View File
@@ -1,6 +1,5 @@
export const environment = { export const environment = {
production: false, production: false,
API_URL: 'http://localhost:3334', API_URL: 'http://localhost:3334',
STRATUM_URL: 'public-pool.io:3333', STRATUM_URL: 'public-pool.io:21496'
SECURE_STRATUM_URL: 'public-pool.io:4333',
}; };