Logo overrides, custom index.html
This commit is contained in:
		
							parent
							
								
									0d9602693b
								
							
						
					
					
						commit
						f9fd589af2
					
				| @ -4,6 +4,7 @@ | ||||
|   "branding": { | ||||
|     "name": "onbtc", | ||||
|     "title": "Oficina Nacional del Bitcoin", | ||||
|     "header_img": "/resources/onbtc.svg", | ||||
|     "img": "/resources/elsalvador.svg", | ||||
|     "rounded_corner": true | ||||
|   }, | ||||
|  | ||||
| @ -24,8 +24,12 @@ | ||||
|       <div class="vertical-line"></div> | ||||
|     </ng-template> | ||||
|     <ng-container *ngIf="{ val: connectionState$ | async } as connectionState"> | ||||
|       <app-svg-images *ngIf="!officialMempoolSpace" name="mempoolSpace" viewBox="0 0 500 126" class="mempool-logo" [ngStyle]="{'opacity': connectionState.val === 2 ? 1 : 0.5 }"></app-svg-images> | ||||
|       <app-svg-images *ngIf="officialMempoolSpace" name="officialMempoolSpace" viewBox="0 0 500 126"></app-svg-images> | ||||
|       @if (enterpriseInfo?.header_img) { | ||||
|         <img [src]="enterpriseInfo?.header_img" alt="enterpriseInfo.title" height="36px"> | ||||
|       } @else { | ||||
|         <app-svg-images *ngIf="!officialMempoolSpace" name="mempoolSpace" viewBox="0 0 500 126" class="mempool-logo" [ngStyle]="{'opacity': connectionState.val === 2 ? 1 : 0.5 }"></app-svg-images> | ||||
|         <app-svg-images *ngIf="officialMempoolSpace" name="officialMempoolSpace" viewBox="0 0 500 126"></app-svg-images> | ||||
|       } | ||||
|       <div class="connection-badge"> | ||||
|         <div class="badge badge-warning" *ngIf="connectionState.val === 0" i18n="master-page.offline">Offline</div> | ||||
|         <div class="badge badge-warning" *ngIf="connectionState.val === 1" i18n="master-page.reconnecting">Reconnecting...</div> | ||||
| @ -41,9 +45,13 @@ | ||||
|       <div class="vertical-line"></div> | ||||
|     </ng-template> | ||||
|     <ng-container *ngIf="{ val: connectionState$ | async } as connectionState"> | ||||
|       <app-svg-images *ngIf="!officialMempoolSpace" name="mempoolSpace" viewBox="0 0 500 126" class="mempool-logo" [ngStyle]="{'opacity': connectionState.val === 2 ? 1 : 0.5 }"></app-svg-images> | ||||
|       <app-svg-images *ngIf="officialMempoolSpace" name="officialMempoolSpace" viewBox="0 0 500 126"></app-svg-images> | ||||
|       <div class="connection-badge"> | ||||
|       @if (enterpriseInfo?.header_img) { | ||||
|         <img [src]="enterpriseInfo?.header_img" alt="enterpriseInfo.title" height="36px"> | ||||
|       } @else { | ||||
|         <app-svg-images *ngIf="!officialMempoolSpace" name="mempoolSpace" viewBox="0 0 500 126" class="mempool-logo" [ngStyle]="{'opacity': connectionState.val === 2 ? 1 : 0.5 }"></app-svg-images> | ||||
|         <app-svg-images *ngIf="officialMempoolSpace" name="officialMempoolSpace" viewBox="0 0 500 126"></app-svg-images> | ||||
|       } | ||||
|         <div class="connection-badge"> | ||||
|         <div class="badge badge-warning" *ngIf="connectionState.val === 0" i18n="master-page.offline">Offline</div> | ||||
|         <div class="badge badge-warning" *ngIf="connectionState.val === 1" i18n="master-page.reconnecting">Reconnecting...</div> | ||||
|       </div> | ||||
|  | ||||
| @ -50,7 +50,7 @@ export class EnterpriseService { | ||||
|     if (this.stateService.env.customize?.branding) { | ||||
|       const info = this.stateService.env.customize?.branding; | ||||
|       this.insertMatomo(info.site_id); | ||||
|       this.seoService.setEnterpriseTitle(info.title); | ||||
|       this.seoService.setEnterpriseTitle(info.title, true); | ||||
|       this.info$.next(info); | ||||
|     } else { | ||||
|       this.apiService.getEnterpriseInfo$(this.subdomain).subscribe((info) => { | ||||
|  | ||||
| @ -50,8 +50,12 @@ export class SeoService { | ||||
|     this.metaService.updateTag({ property: 'og:meta:ready', content: 'ready'}); | ||||
|   } | ||||
| 
 | ||||
|   setEnterpriseTitle(title: string) { | ||||
|     this.baseTitle = title + ' - ' + this.baseTitle; | ||||
|   setEnterpriseTitle(title: string, override: boolean = false) { | ||||
|     if (override) { | ||||
|       this.baseTitle = title; | ||||
|     } else { | ||||
|       this.baseTitle = title + ' - ' + this.baseTitle; | ||||
|     } | ||||
|     this.resetTitle(); | ||||
|   } | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										45
									
								
								frontend/src/index.sv.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								frontend/src/index.sv.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,45 @@ | ||||
| <!doctype html> | ||||
| <html lang="en"> | ||||
| 
 | ||||
| <head> | ||||
|   <meta charset="utf-8"> | ||||
|   <title>Oficina Nacional del Bitcoin - Bitcoin Explorer</title> | ||||
|   <script src="/resources/config.js"></script> | ||||
|   <script src="/resources/customize.js"></script> | ||||
|   <base href="/"> | ||||
| 
 | ||||
|   <meta name="description" content="Explore the full Bitcoin ecosystem with The Mempool Open Source Project®. See the real-time status of your transactions, get network info, and more." /> | ||||
|   <meta property="og:image" content="https://mempool.space/resources/previews/mempool-space-preview.jpg" /> | ||||
|   <meta property="og:image:type" content="image/jpeg" /> | ||||
|   <meta property="og:image:width" content="2000" /> | ||||
|   <meta property="og:image:height" content="1000" /> | ||||
|   <meta property="og:description" content="Explore the full Bitcoin ecosystem with The Mempool Open Source Project®. See the real-time status of your transactions, get network info, and more." /> | ||||
|   <meta name="twitter:card" content="summary_large_image"> | ||||
|   <meta name="twitter:site" content="@mempool"> | ||||
|   <meta name="twitter:creator" content="@mempool"> | ||||
|   <meta name="twitter:title" content="The Mempool Open Source Project®"> | ||||
|   <meta name="twitter:description" content="Explore the full Bitcoin ecosystem with The Mempool Open Source Project®. See the real-time status of your transactions, get network info, and more." /> | ||||
|   <meta name="twitter:image" content="https://mempool.space/resources/previews/mempool-space-preview.jpg" /> | ||||
|   <meta name="twitter:domain" content="mempool.space"> | ||||
| 
 | ||||
|   <link rel="apple-touch-icon" sizes="180x180" href="/resources/favicons/apple-touch-icon.png"> | ||||
|   <link rel="icon" type="image/png" sizes="32x32" href="/resources/favicons/favicon-32x32.png"> | ||||
|   <link rel="icon" type="image/png" sizes="16x16" href="/resources/favicons/favicon-16x16.png"> | ||||
|   <link rel="manifest" href="/resources/favicons/site.webmanifest"> | ||||
|   <link rel="shortcut icon" href="/resources/favicons/favicon.ico"> | ||||
|   <link id="canonical" rel="canonical" href="https://mempool.space"> | ||||
| 
 | ||||
|   <meta name="apple-mobile-web-app-capable" content="yes"> | ||||
|   <meta name="apple-mobile-web-app-status-bar-style" content="black"> | ||||
|   <meta name="msapplication-TileColor" content="#000000"> | ||||
|   <meta name="msapplication-config" content="/resources/favicons/browserconfig.xml"> | ||||
|   <meta name="theme-color" content="#1d1f31"> | ||||
| 
 | ||||
|   <meta name="viewport" content="width=device-width, initial-scale=1"> | ||||
| </head> | ||||
| 
 | ||||
| <body> | ||||
|   <app-root></app-root> | ||||
| </body> | ||||
| 
 | ||||
| </html> | ||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 80 KiB | 
							
								
								
									
										32
									
								
								frontend/src/resources/onbtc.svg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								frontend/src/resources/onbtc.svg
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||||
| <!-- Created with Inkscape (http://www.inkscape.org/) --> | ||||
| 
 | ||||
| <svg | ||||
|    width="166.66856mm" | ||||
|    height="27.910412mm" | ||||
|    viewBox="0 0 166.66856 27.910412" | ||||
|    version="1.1" | ||||
|    id="svg5" | ||||
|    xmlns="http://www.w3.org/2000/svg" | ||||
|    xmlns:svg="http://www.w3.org/2000/svg"> | ||||
|   <defs | ||||
|      id="defs2" /> | ||||
|   <g | ||||
|      id="layer1" | ||||
|      transform="translate(-15.744419,-40.187266)"> | ||||
|     <text | ||||
|        xml:space="preserve" | ||||
|        style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:16.8847px;line-height:1;font-family:'Bembo Std';-inkscape-font-specification:'Bembo Std';fill:#d2d2d2;fill-opacity:1;stroke-width:3.37609;stroke-linecap:square" | ||||
|        x="15.491148" | ||||
|        y="50.942822" | ||||
|        id="text1855"><tspan | ||||
|          id="tspan1853" | ||||
|          style="stroke-width:3.37609" | ||||
|          x="15.491148" | ||||
|          y="50.942822">OFICINA NACIONAL</tspan><tspan | ||||
|          style="stroke-width:3.37609" | ||||
|          x="15.491148" | ||||
|          y="67.827522" | ||||
|          id="tspan1857">DEL BITCOIN</tspan></text> | ||||
|   </g> | ||||
| </svg> | ||||
| After Width: | Height: | Size: 1.0 KiB | 
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user