aboutsummaryrefslogtreecommitdiffstats
path: root/src/format.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-07-06 07:45:47 -0700
committerAdam Soltys <[email protected]>2026-07-06 07:45:47 -0700
commit63a203b861f1c2e4cd6fe0cd9e77448bf4ac1ee2 (patch)
treea8dce7d1346ffa7838188d8c92a7bfd93e6e44b0 /src/format.js
parentd6da40c92ee8e76708b9230c404688c431f879a0 (diff)
downloadcoinosv3-63a203b861f1c2e4cd6fe0cd9e77448bf4ac1ee2.tar.gz
coinosv3-63a203b861f1c2e4cd6fe0cd9e77448bf4ac1ee2.zip
Ark icon: Second's logo instead of the crossed-swords placeholder
The ⚔ was a U+2694 emoji stand-in. Swap in Second's actual mark (second.tech logo: a triangle with an evenodd inner cutout) as two format.js helpers — ARK_ICON (dark rounded-square app badge + white mark, for card/section headers) and ARK_MARK (bare currentColor glyph, for the history-row circle). Wired into the Ark settings card, the boarding/withdrawal/exit history rows + detail section, and the How-it-works Ark section; the gift source toggle drops the emoji for plain 'Ark'. Verified the badge renders (18px, #00090C square, white evenodd mark). Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'src/format.js')
-rw-r--r--src/format.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/format.js b/src/format.js
index 6191033..56f2b82 100644
--- a/src/format.js
+++ b/src/format.js
@@ -3,6 +3,16 @@
export const SATS = 100_000_000;
+// The Ark mark — Second's logo (second.tech): a triangle with an inner cutout
+// (evenodd). ARK_MARK is the bare glyph in currentColor (sits inline like an
+// emoji, themes automatically); ARK_ICON is the app-badge treatment (dark
+// rounded square + white mark) for card headers.
+const ARK_PATH = 'M218.4 50.9c-8.4-14.5-29.4-14.5-37.7 0L20.9 327.6c-8.4 14.5 2.1 32.7 18.9 32.7h319.5c16.8 0 27.3-18.2 18.9-32.7L218.4 50.9ZM73.9 305.5c-5.1 9.1 3.7 19.7 13.5 16.4l134.8-45.3c6.8-2.3 9.8-10.2 6.2-16.5l-55.3-95.8c-4.4-7.6-15.4-7.6-19.7.1L73.9 305.5Z';
+export const ARK_MARK = (px = 16) =>
+ `<svg width="${px}" height="${px}" viewBox="0 0 400 400" style="display:inline-block;vertical-align:-2px"><path fill="currentColor" fill-rule="evenodd" d="${ARK_PATH}"/></svg>`;
+export const ARK_ICON = (px = 16) =>
+ `<svg width="${px}" height="${px}" viewBox="0 0 400 400" style="display:inline-block;vertical-align:-3px"><rect width="400" height="400" rx="92" fill="#00090C"/><path fill="#fff" fill-rule="evenodd" transform="translate(37 34) scale(0.82)" d="${ARK_PATH}"/></svg>`;
+
export function btc(sats) {
return (Number(sats) / SATS).toFixed(8);
}