aboutsummaryrefslogtreecommitdiffstats
path: root/src/pay-page.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/pay-page.html')
-rw-r--r--src/pay-page.html67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/pay-page.html b/src/pay-page.html
new file mode 100644
index 0000000..87c4739
--- /dev/null
+++ b/src/pay-page.html
@@ -0,0 +1,67 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<meta name="color-scheme" content="light dark">
+<title>Pay with Lightning · coinos</title>
+<meta name="description" content="Pay a coinos address over Lightning.">
+<link rel="icon" href="/icon.svg" type="image/svg+xml">
+<style>
+@font-face { font-family: 'Public Sans'; src: url('/PublicSans.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
+:root {
+ --bg: #eef0f3; --paper: #fff; --ink: #15171a; --muted: #6b7280; --faint: #9aa1ac;
+ --line: #e6e8ec; --fill: #15171a; --fill-fg: #fff; --green: #14935a; --red: #c43b3b; --soft: #f4f5f7;
+}
+@media (prefers-color-scheme: dark) {
+ :root { --bg: #0b0c0e; --paper: #16181b; --ink: #f2f3f5; --muted: #a0a6b0; --faint: #6b7280;
+ --line: #2a2d32; --fill: #f2f3f5; --fill-fg: #15171a; --green: #3fbf7f; --red: #ef6b6b; --soft: #1f2226; }
+}
+* { box-sizing: border-box; }
+body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 'Public Sans', system-ui, sans-serif; }
+main { max-width: 420px; margin: 0 auto; padding: 28px 16px 48px; }
+.who { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin-bottom: 18px; color: inherit; text-decoration: none; }
+.who img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--soft); }
+.who .display { font-weight: 700; font-size: 20px; }
+.who .handle { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
+.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
+.qr { display: block; background: #fff; border-radius: 12px; padding: 10px; }
+.qr svg { display: block; width: 100%; height: auto; }
+.hint { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }
+.row { display: flex; gap: 8px; align-items: center; }
+.row > * { flex: 1; }
+.row > button { flex: 0 0 auto; white-space: nowrap; }
+.addr { font: 14px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; flex: 2; }
+label { font-weight: 600; }
+input { width: 100%; font: inherit; color: inherit; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
+input:focus { outline: 2px solid var(--fill); outline-offset: -1px; }
+.amount-form { display: flex; flex-direction: column; gap: 10px; }
+button, .button { font: inherit; font-weight: 600; border-radius: 10px; padding: 11px 14px; cursor: pointer; text-align: center; text-decoration: none; border: 1px solid var(--line); background: var(--soft); color: var(--ink); }
+.primary { background: var(--fill); color: var(--fill-fg); border-color: var(--fill); }
+button:disabled { opacity: .6; cursor: default; }
+.link { background: none; border: 0; color: var(--muted); padding: 4px; font-weight: 500; }
+.err { color: var(--red); font-size: 14px; }
+.err:empty { display: none; }
+.big { font-size: 28px; font-weight: 700; text-align: center; }
+.big span { font-size: 16px; font-weight: 500; color: var(--muted); }
+.status { text-align: center; color: var(--muted); font-size: 14px; }
+.done { align-items: center; text-align: center; }
+.done p { margin: 0; color: var(--muted); }
+.tick { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; font-size: 30px; line-height: 56px; }
+footer { text-align: center; color: var(--faint); font-size: 13px; margin-top: 22px; }
+footer a { color: var(--muted); }
+</style>
+</head>
+<body>
+<main>
+<a class="who" id="profile-link" href="/">
+ <img id="avatar" alt="" hidden>
+ <div class="display" id="display">Pay with Lightning</div>
+ <div class="handle" id="who"></div>
+</a>
+<div id="body"><div class="card"><p class="hint">Loading…</p></div></div>
+<footer>Powered by <a href="/">coinos</a>, a free bitcoin wallet. <a href="/">Get your own</a>.</footer>
+</main>
+<script>/*PAY_PAGE_JS*/</script>
+</body>
+</html>