A desktop browser with x402 built in: when a page asks for payment, it pays in stablecoins and shows the content.

0 downloads

dbbasic-browser/apps/browser/demo/checkout-card.html
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-browser.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-browser.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-browser.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 site icons (favicons) in tabs, address bar suggestions and the bookmarks panel 7249579 15 hours, 52 minutes ago History
checkout-card.html · 5.3 KB · 85 lines
1<!doctype html>
2<html lang="en">
3<head>
4<meta charset="utf-8" />
5<meta name="viewport" content="width=device-width, initial-scale=1" />
6<title>Design Critique w/ Jordan — checkout</title>
7<style>
8 :root { --ink:#1a1a1e; --muted:#6a6a72; --line:#e6e4df; --card:#fff; --bg:#eceae4; }
9 * { box-sizing: border-box; }
10 html,body { margin:0; background:var(--bg); font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif; color:var(--ink); }
11 .wrap { min-height:100vh; display:flex; align-items:flex-start; justify-content:center; padding:40px 16px; }
12 .card { width:100%; max-width:520px; background:var(--card); border-radius:22px; padding:36px 34px 28px; box-shadow:0 30px 80px rgba(0,0,0,.14); }
13 .top { display:flex; align-items:flex-start; gap:14px; }
14 .avatar { width:52px; height:52px; border-radius:13px; background:#5b5f97; color:#fff; display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:600; flex:none; }
15 .who h1 { margin:0; font-size:22px; letter-spacing:-.01em; }
16 .who p { margin:2px 0 0; color:var(--muted); font-size:15px; }
17 .bal { margin-left:auto; text-align:right; }
18 .bal .lbl { color:var(--muted); font-size:13px; }
19 .bal .amt { font-weight:700; font-size:18px; }
20 .tabs { display:flex; background:#f0eee9; border-radius:12px; padding:5px; margin:22px 0 8px; }
21 .tabs button { flex:1; border:0; background:transparent; padding:11px; border-radius:9px; font-size:15px; font-weight:600; color:var(--muted); cursor:pointer; }
22 .tabs button.on { background:#fff; color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.08); }
23 .price { text-align:center; font-size:64px; font-weight:800; letter-spacing:-.03em; margin:22px 0 4px; }
24 .sub { text-align:center; color:var(--muted); font-size:15px; margin-bottom:22px; }
25 .apple { width:100%; border:0; background:#000; color:#fff; font-size:18px; font-weight:600; padding:18px; border-radius:14px; cursor:pointer; }
26 .grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px; }
27 .rail { display:flex; align-items:center; gap:10px; padding:16px; border:1px solid var(--line); border-radius:14px; background:#fff; font-weight:600; cursor:pointer; }
28 .dot { width:10px; height:10px; border-radius:50%; flex:none; }
29 .div { display:flex; align-items:center; gap:14px; margin:26px 0 18px; color:var(--muted); font-size:12px; letter-spacing:.12em; font-weight:600; }
30 .div::before,.div::after { content:""; height:1px; background:var(--line); flex:1; }
31 .scan { display:flex; gap:18px; align-items:flex-start; }
32 .scan img { width:132px; height:132px; border:1px solid var(--line); border-radius:14px; }
33 .scan h3 { margin:0 0 4px; font-size:16px; }
34 .scan .chains { color:var(--muted); font-size:14px; margin:0 0 8px; }
35 .scan .addr { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; color:#8a8a90; }
36 .scan .wait { margin:8px 0 0; color:#b0902f; font-size:14px; display:flex; align-items:center; gap:7px; }
37 .scan .wait .dot { background:#d8b24a; }
38 .note { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); color:var(--muted); font-size:13.5px; line-height:1.55; }
39 .foot { text-align:center; color:#9a9aa0; font-size:13px; margin-top:16px; }
40</style>
41</head>
42<body>
43 <div class="wrap">
44 <div class="card">
45 <div class="top">
46 <div class="avatar">J</div>
47 <div class="who"><h1>Design Critique w/ Jordan</h1><p>30-minute room access</p></div>
48 <div class="bal"><div class="lbl">wallet balance</div><div class="amt">$1.89</div></div>
49 </div>
50
51 <div class="tabs"><button class="on">Pay once</button><button>Fund wallet</button></div>
52
53 <div class="price">$0.05</div>
54 <div class="sub">one-time · enters the room immediately · nothing recurring</div>
55
56 <button class="apple">&#63743; Pay</button>
57 <div class="grid">
58 <div class="rail"><span class="dot" style="background:#f6851b"></span>MetaMask</div>
59 <div class="rail"><span class="dot" style="background:#1652f0"></span>Coinbase Wallet</div>
60 <div class="rail"><span class="dot" style="background:#142c8e"></span>PayPal · PYUSD</div>
61 <div class="rail"><span class="dot" style="background:#635bff"></span>Card · Stripe</div>
62 </div>
63
64 <div class="div">OR SCAN FROM ANY WALLET</div>
65 <div class="scan">
66 <img src="{{QR}}" alt="EIP-681 payment QR" />
67 <div>
68 <h3>0.05 USDC <span style="font-weight:400;color:var(--muted)">on</span> Base</h3>
69 <p class="chains">Trust · Rainbow · Gemini · Phantom · any EVM wallet</p>
70 <div class="addr">0x209693Bc6afc0C5328bA36FaF03C5…</div>
71 <p class="wait"><span class="dot"></span> Waiting for payment…</p>
72 </div>
73 </div>
74
75 <p class="note">The QR encodes a standard EIP-681 payment link. Some wallets pre-fill
76 only the address and ignore the amount — confirm <b>the amount shown above</b> before
77 sending. Wallet payments settle on-chain and you pay the network's own gas (a few cents
78 on Base). Apple Pay and card payments fund your wallet balance instead, because card
79 rails carry a fixed ~$0.30 fee that makes per-nickel charges uneconomical — fund once,
80 then drawing from the balance costs nothing to authorize.</p>
81 <p class="foot">Prototype — buttons simulate the handoff; nothing is charged.</p>
82 </div>
83 </div>
84</body>
85</html>