diff options
Diffstat (limited to 'extension/src/popup.html')
| -rw-r--r-- | extension/src/popup.html | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/extension/src/popup.html b/extension/src/popup.html new file mode 100644 index 0000000..331b838 --- /dev/null +++ b/extension/src/popup.html @@ -0,0 +1,49 @@ +<!doctype html> +<html lang="en"> +<head><meta charset="utf-8"><title>Coinos</title><link rel="stylesheet" href="ui.css"></head> +<body> + <section id="setup" hidden> + <div class="card"> + <h1>Set up your key</h1> + <p class="muted" style="margin-top:6px">Paste your nsec, or the twelve words of a Coinos wallet. It stays in this browser and is never shown to a site.</p> + <textarea id="key-input" spellcheck="false" autocomplete="off" aria-label="nsec or twelve words"></textarea> + <p class="err" id="key-err"></p> + <button id="key-save" class="primary" style="width:100%">Save key</button> + </div> + </section> + + <section id="main" hidden> + <div class="head"> + <img id="pic" src="icon-192.png" alt=""> + <div class="who"> + <div id="name" style="font-weight:650"></div> + <div class="mono muted" id="npub"></div> + </div> + <button id="copy">Copy</button> + </div> + + <div class="card" id="wallet-on" hidden> + <h2>Wallet</h2> + <div class="balance" id="balance">…</div> + <p class="err" id="wallet-err"></p> + <ul id="txs"></ul> + <p class="small" style="margin:10px 0 0"><button id="wallet-remove" class="link">Disconnect wallet</button></p> + </div> + <div class="card" id="wallet-off" hidden> + <h2>Wallet</h2> + <p class="muted">To pay from sites, open Coinos, go to Settings and add a connection under Nostr Wallet Connect, then paste its connection string here.</p> + <textarea id="nwc-input" spellcheck="false" autocomplete="off" aria-label="Connection string" placeholder="nostr+walletconnect://…"></textarea> + <p class="err" id="nwc-err"></p> + <button id="nwc-save" class="primary" style="width:100%">Connect wallet</button> + </div> + + <div class="card"> + <h2>Sites</h2> + <p class="muted small" id="no-sites">No site has asked yet. The first time one does, you choose once.</p> + <ul id="sites"></ul> + </div> + <p class="small" style="text-align:center"><button id="key-remove" class="link">Remove key from this browser</button></p> + </section> + <script type="module" src="popup.js"></script> +</body> +</html> |
