sirius/register.html
Local Dev 94bf3bcf68 feat(sirius-x): merge register.html into landing via shared mint flow
Register.html and the landing were running duplicate name-search UIs.
The register one was reported broken; the landing one already works
inline. Merged both into the landing:

- New js/register-flow.js — the full mint modal + wallet setup (Create /
  Import / Unlock / WizardConnect / Fund / Confirm / Register / Point
  it somewhere) extracted from register.html's <script type='module'>
  and turned into a shared module. Injects its own scoped modal HTML +
  CSS into the host page on load and exposes
  window.siriusRegisterName(fullName) as its public entry point.

- Landing search results now have Register buttons that call the shared
  flow directly. The whole 'search -> pick name -> mint' journey stays
  on one page, no redirects, no duplicate search UI to maintain.

- register.html reduced to a redirect stub: preserves ?q= if present,
  refreshes/JS-forwards to './' (landing), and shows a one-line
  'Name search moved to the home page' fallback for JS-off users.
  Old links keep working; no /register.html deep links are broken.

- All nav 'Register' entries now point at './#search-input' (or
  '../#search-input' on subpages), scrolling straight to the landing
  search box. Footer injector and every internal href updated the
  same way. Zero live href='.../register.html' left in the tree.

Verified: register.html?q=hello redirects to /?q=hello; landing
search 'fresh42abc' -> Register button -> modal opens with
'Register fresh42abc.bch' at the wallet-choice step.
2026-09-07 22:36:02 +02:00

40 lines
1.7 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Register a name — Sirius.X</title>
<meta name="description" content="Search a Bitcoin Cash name and mint the certificate to your own wallet. The name-registration flow lives on the Sirius.X landing.">
<link rel="icon" href="./assets/favicon.svg" type="image/svg+xml">
<link rel="mask-icon" href="./assets/favicon.svg" color="#d6ff3d">
<meta name="robots" content="noindex">
<!-- register.html used to host a duplicate search-and-mint flow. The Sirius.X
landing now owns both the search UI and the shared mint modal
(js/register-flow.js), so this page redirects there with any `?q=` label
preserved. The meta-refresh is a fallback for JS-off; the script picks
up first when JS is on. -->
<meta http-equiv="refresh" content="0; url=./">
<script>
(function () {
// Preserve ?q= if the user (or an old link) still points here with a label.
const q = new URLSearchParams(location.search).get("q");
const target = q ? `./?q=${encodeURIComponent(q)}` : "./";
location.replace(target);
})();
</script>
<style>
body{margin:0;font:16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
background:#0b0e14;color:#8b98a9;min-height:100vh;
display:flex;align-items:center;justify-content:center;padding:2rem;text-align:center}
a{color:#d6ff3d}
.mark{font-size:40px;line-height:1;margin-bottom:.6rem}
</style>
</head>
<body>
<div>
<div class="mark"></div>
<p>Redirecting to <a href="./">Sirius.X</a></p>
<p style="font-size:12.5px;color:#5e6678;margin-top:1rem">Name search moved to the home page.</p>
</div>
</body>
</html>