From 551d714cce27afaee1ec6d6e54cb984afe7bd2bf Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Fri, 20 Dec 2024 15:22:59 +0100 Subject: [PATCH] Remove woff(1) assets, show something when mining pool logo is shown --- src/lib/style/app.scss | 20 +++++++++++++++++--- src/lib/style/satsymbol.scss | 4 +--- src/routes/Rendered.svelte | 7 +++++++ static/fonts/Satoshi_Symbol.woff | Bin 2340 -> 0 bytes 4 files changed, 25 insertions(+), 6 deletions(-) delete mode 100644 static/fonts/Satoshi_Symbol.woff diff --git a/src/lib/style/app.scss b/src/lib/style/app.scss index 53eeee8..c09af73 100644 --- a/src/lib/style/app.scss +++ b/src/lib/style/app.scss @@ -1,9 +1,23 @@ +@use '@fontsource/ubuntu/scss/mixins' as Ubuntu; +@use '@fontsource/antonio/scss/mixins' as Antonio; + @import '../node_modules/bootstrap/scss/functions'; //@import "@fontsource/antonio/latin-400.css"; -@import '@fontsource/ubuntu/latin-400.css'; -//@import '@fontsource/oswald/latin-400.css'; -@import '@fontsource/antonio/latin-400.css'; + +@include Ubuntu.faces( + $subsets: latin, + $weights: 400, + $formats: 'woff2', + $directory: '@fontsource/ubuntu/files' +); + +@include Antonio.faces( + $subsets: latin, + $weights: 400, + $formats: 'woff2', + $directory: '@fontsource/antonio/files' +); @import './satsymbol'; diff --git a/src/lib/style/satsymbol.scss b/src/lib/style/satsymbol.scss index f761701..9b7eefd 100644 --- a/src/lib/style/satsymbol.scss +++ b/src/lib/style/satsymbol.scss @@ -1,8 +1,6 @@ @font-face { font-family: 'Satoshi Symbol'; - src: - url('/fonts/Satoshi_Symbol.woff2') format('woff2'), - url('/fonts/Satoshi_Symbol.woff') format('woff'); + src: url('/fonts/Satoshi_Symbol.woff2') format('woff2'); font-weight: normal; font-style: normal; font-display: swap; diff --git a/src/routes/Rendered.svelte b/src/routes/Rendered.svelte index d544ad8..e4a1783 100644 --- a/src/routes/Rendered.svelte +++ b/src/routes/Rendered.svelte @@ -72,6 +72,9 @@ {#if char.endsWith('bitaxe')} {/if} + {#if char.endsWith('miningpool')} + + {/if} {:else if char === 'STS'}
S
@@ -104,4 +107,8 @@ .bitaxelogo { transform: rotate(-90deg); } + + .pool-logo { + font-size: 0.75rem; + } diff --git a/static/fonts/Satoshi_Symbol.woff b/static/fonts/Satoshi_Symbol.woff deleted file mode 100644 index 0b184da4ff2afc93b26328061ff4b9c507985d50..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2340 zcmZuzc|25m8$V|@vk$Tj(h#x^#!a%^62=;`yphsOGng<8Q|MCBZJ8KxyAm0%B_u7j z7U?R>RASPiZg!Fzk*uN6+%xy>^ZxU`zjMCN^Z7o{_j%6w{XU=H`JDuBIvoH3Xkc^! zg3Oy3$n5_cbh`geNQZ`Unlgx3Ef-vzoaq379*6jP2wH#v5bo_~Mgst_0^(i}7&$H_ zax5;B2LLc#h(CmKaXHc6-@=)ED25(}VzQoSsT6>RM;!?R060_&76Smq$5($iixbLZ zL);wFY=&T^oi{SZfr3zs192?~x;R5v7l(T&5sEEC+z>*i<|YN_s2CQcgN;I5EW;6v zRC6vf5qd5tfVixd0#pFn(M)bA03bafZ6)LdAB5MGc`^J$03avpHwNk5-1z0x#9kJI z&0qi{hPPF5@4s>%(0F|Fl&1AnN-X&`*Y0IYc&k)uQhVJcbuSU6pJf2hgxD^q!H>GS zHB~V$rz{Ob2eQd(WFJri@LPgIv;UEIWoNM%p#Z2)31b6ix2Al>1Ee=V`+xEW6v9PK zP3=uh5fYnp?bKabPSU=ntOL`v9Rq5 z!zPpZKVurcTb!y_6RmxF@KuyVpTdoxnR37ax0= zzcjNjw>bM{o`l9@i5LPdlTm~eoXzlN2sVb;16%ZUte_bHD*wH906d@wTG3@t7xV>F z!0TWy3O8I2Sn+fe|DirRw` zpl+dtsXrUNTFvEwVZI3KaOzd1(w+?6PwjD(IXoXojVzB=EI(fiMH*N$1nv9X7kE2~)>rIMWE# z72S5vg&T%1Br*cUk+&ACuTEPE&GDEgc_f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