site/hephaestus.x/index.html
Local Dev f4a6c85c3e feat(hephaestus.x): landing 'Sign in' becomes a Bitcoin Cash wallet dropdown
- site/hephaestus.x/index.html: replace single 'Sign in with wallet' CTA with
  a <details> dropdown labelled 'Bitcoin Cash wallet'. Menu items:
    Sign in       -> /user/oauth2/hephaestus-wallet#import
    Sign up       -> /user/oauth2/hephaestus-wallet#create   (pill: easiest)
    WizardConnect -> /user/oauth2/hephaestus-wallet#connect  (pill: most private)
  Same emoji + copy scheme as the wallet accordion, so the landing previews
  the choices the user will see after clicking through.

- Hephaestus/auth-proxy/public/wallet.js: renderTabs() now reads location.hash
  and auto-opens the matching <details> option on load (create/import/connect).
  Fragments survive Forgejo's OAuth redirect chain, so a click on 'Sign up'
  from the landing lands the user directly on the Create accordion.
2026-09-02 22:13:55 +02:00

156 lines
7.9 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hephaestus — the forge</title>
<meta name="description" content="A code host you sign in to with a Bitcoin Cash wallet. Repos hosted, cold blobs on Sia. No email, no password reset, no middleman.">
<style>
:root{
--bg:#0b0e14; --panel:#141a24; --panel2:#18202c; --line:rgba(255,255,255,.09);
--ink:#e7eaf1; --mut:#8b98a9; --dim:#5e6678; --acid:#d6ff3d;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:radial-gradient(1100px 560px at 50% -12%,#16202e,var(--bg));
color:var(--ink);font:16px/1.65 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;min-height:100vh;
display:flex;flex-direction:column}
a{color:var(--acid)}
.wrap{max-width:820px;margin:0 auto;padding:0 1.2rem;width:100%;flex:1}
header.hero{text-align:center;padding:6rem 1.2rem 1rem}
.mark{font-size:64px;line-height:1}
h1{font-size:clamp(2.2rem,6vw,3.4rem);margin:.5rem 0 .3rem;letter-spacing:-0.01em}
h1 .g{color:var(--acid)}
.tag{color:var(--mut);font-size:1.1rem;max-width:600px;margin:0 auto}
.cta{margin-top:2rem;display:flex;gap:10px;justify-content:center;flex-wrap:wrap;align-items:flex-start}
.btn{display:inline-block;text-decoration:none;padding:12px 22px;border-radius:10px;font-size:14.5px;font-weight:500;
border:1px solid var(--line);color:var(--ink);background:transparent;transition:filter .1s,background .1s}
.btn.acid{background:var(--acid);color:#0b0e14;font-weight:600;border-color:var(--acid)}
.btn:hover{filter:brightness(1.12);background:var(--panel)}
.btn.acid:hover{background:var(--acid)}
/* wallet dropdown */
details.wallet-dd{position:relative;display:inline-block;text-align:left}
details.wallet-dd > summary{
list-style:none;cursor:pointer;user-select:none;
background:var(--acid);color:#0b0e14;font-weight:600;
padding:12px 22px;border-radius:10px;font-size:14.5px;
border:1px solid var(--acid);display:inline-flex;align-items:center;gap:8px;
}
details.wallet-dd > summary::-webkit-details-marker{display:none}
details.wallet-dd > summary::marker{content:""}
details.wallet-dd > summary .chev{transition:transform .15s;display:inline-block;font-size:11px}
details.wallet-dd[open] > summary .chev{transform:rotate(180deg)}
details.wallet-dd .menu{
position:absolute;top:calc(100% + 8px);left:0;min-width:280px;z-index:20;
background:var(--panel);border:1px solid var(--line);border-radius:12px;
padding:6px;display:flex;flex-direction:column;gap:2px;
box-shadow:0 12px 32px rgba(0,0,0,.35);
}
details.wallet-dd .menu a{
display:grid;grid-template-columns:26px 1fr;gap:10px;align-items:start;
padding:10px 12px;border-radius:8px;text-decoration:none;color:var(--ink);
}
details.wallet-dd .menu a:hover{background:var(--panel2)}
details.wallet-dd .menu .ico{font-size:18px;line-height:1.2}
details.wallet-dd .menu b{display:block;font-size:14px;font-weight:600;color:var(--ink)}
details.wallet-dd .menu .sub{display:block;font-size:12px;color:var(--mut);margin-top:2px;line-height:1.4}
details.wallet-dd .menu .pill{
display:inline-block;font-size:10px;padding:0 6px;margin-left:6px;border-radius:999px;
background:rgba(214,255,61,.15);color:var(--acid);font-weight:500;text-transform:lowercase;letter-spacing:.02em;vertical-align:middle;
}
section.facts{padding:3rem 0 1rem}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:20px 22px}
.card h3{margin:0 0 .35rem;font-size:15px;color:var(--ink);letter-spacing:.01em}
.card p{margin:0;color:var(--mut);font-size:13.5px;line-height:1.6}
.card b{color:var(--ink)}
section.stack{padding:2rem 0}
dl.spec{display:grid;grid-template-columns:auto 1fr;gap:8px 22px;margin:0;font-size:13.5px}
dl.spec dt{color:var(--dim);white-space:nowrap;font-family:ui-monospace,monospace}
dl.spec dd{margin:0;color:var(--mut)}
dl.spec dd b{color:var(--ink)}
dl.spec a{color:var(--acid)}
section.stack h2{font-size:1.15rem;margin:0 0 .8rem;color:var(--ink);font-weight:500}
footer{border-top:1px solid var(--line);padding:2.4rem 1.2rem 3.4rem;color:var(--dim);font-size:13px;text-align:center;margin-top:3rem}
footer a{color:var(--mut)}
footer a:hover{color:var(--ink)}
code{background:#0e131b;border:1px solid var(--line);border-radius:5px;padding:1px 6px;font-family:ui-monospace,monospace;font-size:12.5px}
</style>
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
</head>
<body>
<div class="wrap">
<header class="hero">
<div class="mark">⚒️</div>
<h1><span class="g">Hephaestus</span></h1>
<p class="tag">A code host you sign in to with a Bitcoin Cash wallet. No email, no password reset, no middleman.</p>
<div class="cta">
<details class="wallet-dd">
<summary>Bitcoin Cash wallet <span class="chev"></span></summary>
<div class="menu" role="menu">
<a href="https://code.silentmode.st/user/oauth2/hephaestus-wallet#import" role="menuitem">
<span class="ico">🔑</span>
<span>
<b>Sign in</b>
<span class="sub">Import a wallet you already have — 12- or 24-word recovery phrase.</span>
</span>
</a>
<a href="https://code.silentmode.st/user/oauth2/hephaestus-wallet#create" role="menuitem">
<span class="ico"></span>
<span>
<b>Sign up<span class="pill">easiest</span></b>
<span class="sub">Create a new wallet in the browser. Write the recovery phrase down.</span>
</span>
</a>
<a href="https://code.silentmode.st/user/oauth2/hephaestus-wallet#connect" role="menuitem">
<span class="ico">🪄</span>
<span>
<b>WizardConnect<span class="pill">most private</span></b>
<span class="sub">Sign with Cashonize or Paytaca — your keys never leave the wallet.</span>
</span>
</a>
</div>
</details>
<a class="btn" href="/explore/repos">Browse repos</a>
<a class="btn" href="https://silentmode.st/hephaestus/">Read the docs</a>
</div>
</header>
<section class="facts">
<div class="grid">
<div class="card">
<h3>Your wallet is your account</h3>
<p>Generate or import a BCH wallet in the browser. Sign one challenge, you're in. <b>Nothing to remember except your recovery phrase.</b></p>
</div>
<div class="card">
<h3>Storage on Sia</h3>
<p>LFS, releases, packages, attachments — all sharded and encrypted across independent Sia hosts worldwide. <b>Live git stays on a fast local disk</b> for speed.</p>
</div>
<div class="card">
<h3>Standard git, nothing weird</h3>
<p><code>git clone</code>, <code>git push</code>, PRs, issues, releases, container/npm registries. Bring your existing muscle memory.</p>
</div>
</div>
</section>
<section class="stack">
<h2>Where it lives</h2>
<dl class="spec">
<dt>forge</dt> <dd><a href="https://code.silentmode.st/">code.silentmode.st</a> (mirror) · <b>hephaestus.x</b> (primary) — same Forgejo 10, dual-hostname</dd>
<dt>this name</dt> <dd><b>hephaestus.x</b> — on-chain BCNR certificate, chipnet, owner-controlled, TLS via Silent Mode CA</dd>
<dt>storage</dt> <dd>Sia network via <code>s3.silentmode.st:8600</code>, encrypted client-side · static landing mirrored to Sia bucket as DR backup</dd>
<dt>source</dt> <dd><a href="https://code.silentmode.st/silentmode/hephaestus">silentmode/hephaestus</a> — the docker-compose + auth-proxy + Caddyfile</dd>
<dt>protocol</dt> <dd>BIP-137 "Bitcoin Signed Message" over BCH secp256k1 — any wallet that speaks Sign Message can log in</dd>
</dl>
</section>
</div>
<footer>
A tool from <a href="https://silentmode.st/">Silent Mode</a> · alpha on chipnet · one wallet, all of it
</footer>
</body>
</html>