mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-08 14:11:56 -07:00
website: cleanup & fixes
This commit is contained in:
Binary file not shown.
+11
-1
@@ -2,6 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>bitview</title>
|
||||
<meta name="description" content="Bitcoin transparency, amplified" />
|
||||
<meta name="referrer" content="no-referrer" />
|
||||
<meta
|
||||
@@ -11,6 +12,15 @@
|
||||
<link rel="manifest" href="/manifest.webmanifest" />
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
|
||||
<!-- Keep URL in sync with @font-face in styles/fonts.css -->
|
||||
<link
|
||||
rel="preload"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
href="/assets/fonts/Lilex[wght]-v2_620.woff2"
|
||||
crossorigin
|
||||
/>
|
||||
|
||||
<!-- IMPORTMAP -->
|
||||
<link rel="stylesheet" href="/src/explorer/chain/cube/style.css" />
|
||||
<link rel="stylesheet" href="/src/explorer/chain/style.css" />
|
||||
@@ -96,7 +106,7 @@
|
||||
}
|
||||
} catch (_) {}
|
||||
</script>
|
||||
<script type="module" src="/scripts/entry.js"></script>
|
||||
<script type="module" src="/scripts/entry.js" fetchpriority="high"></script>
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/assets/favicon/favicon.svg" />
|
||||
<link
|
||||
|
||||
@@ -110,7 +110,7 @@ initPrice(brk);
|
||||
|
||||
onPrice((price) => {
|
||||
console.log("close:", price);
|
||||
window.document.title = `${price.toLocaleString("en-us")} | ${window.location.host}`;
|
||||
window.document.title = `${price.toLocaleString("en-us")} | bitview`;
|
||||
});
|
||||
|
||||
const options = initOptions();
|
||||
@@ -199,7 +199,9 @@ function initResizeBar() {
|
||||
const bar = getElementById("resize-bar");
|
||||
const key = "bar-width";
|
||||
const root = document.documentElement;
|
||||
const max = () => parseFloat(style.getPropertyValue("--max-main-width")) / 100 * window.innerWidth;
|
||||
const max = () =>
|
||||
(parseFloat(style.getPropertyValue("--max-main-width")) / 100) *
|
||||
window.innerWidth;
|
||||
|
||||
const saved = readStored(key);
|
||||
if (saved) root.style.setProperty("--sidebar-width", `${saved}px`);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* Preloaded in index.html — keep URL in sync. */
|
||||
@font-face {
|
||||
font-family: Lilex;
|
||||
src: url("/assets/fonts/Lilex[wght]-v2_620.woff2") format("woff2");
|
||||
@@ -28,13 +29,6 @@
|
||||
font-display: block;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Satoshi;
|
||||
src: url("/assets/fonts/Satoshi-Variable.woff2") format("woff2");
|
||||
font-weight: 100 900;
|
||||
font-display: block;
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user