aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-15 23:46:46 -0700
committerAdam Soltys <[email protected]>2026-06-15 23:46:46 -0700
commitb312abb4432cb3258c896541babd9a31c9aabca9 (patch)
tree66d381d32d1fd61f66b426110b1d4a5fba79c5cd /src/app.js
parenteedba2f7f78b2ed5297a28ee88c70466ff13aa67 (diff)
downloadcoinosv3-b312abb4432cb3258c896541babd9a31c9aabca9.tar.gz
coinosv3-b312abb4432cb3258c896541babd9a31c9aabca9.zip
Add footer; default to public explorers (proxy via localStorage opt-in)
- Footer: "made with ♥ by Adam Soltys" (links adamsoltys.com) and "source available on GitHub" (links the repo). - Explorer endpoint now defaults to the public explorers; a rate-limited machine can opt into a proxy via localStorage('explorer-proxy'). Correct for a hosted multi-user deploy (each visitor uses their own IP). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/app.js b/src/app.js
index e59b1bd..a017841 100644
--- a/src/app.js
+++ b/src/app.js
@@ -73,8 +73,21 @@ function h(tag, attrs = {}, ...children) {
}
const root = document.getElementById('app');
+function footer() {
+ return h(
+ 'div',
+ { class: 'footer small muted center' },
+ 'made with ',
+ h('span', { style: 'color:#e25555' }, '♥'),
+ ' by ',
+ h('a', { href: 'https://adamsoltys.com', target: '_blank', rel: 'noopener' }, 'Adam Soltys'),
+ h('span', { class: 'faint' }, ' · '),
+ h('a', { href: 'https://github.com/asoltys/cold', target: '_blank', rel: 'noopener' }, 'source available on GitHub')
+ );
+}
+
function render() {
- root.replaceChildren(ui.screen === 'wallet' ? walletScreen() : unlockScreen());
+ root.replaceChildren(ui.screen === 'wallet' ? walletScreen() : unlockScreen(), footer());
}
wallet.subscribe(render);