Files
vardkey/static/setup.html
T

93 lines
5.4 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#f4f6f2">
<title>Key setup — VardKey</title>
<link rel="stylesheet" href="/styles.css">
<script src="/setup.js" defer></script>
</head>
<body>
<header class="topbar">
<a class="brand" href="/" aria-label="VardKey dashboard">
<span class="brand-mark" aria-hidden="true">V</span>
<span>VardKey</span>
</a>
<a class="back-link" href="/">Back to dashboard</a>
</header>
<main class="page-shell form-shell">
<div class="page-heading form-heading">
<div>
<p class="eyebrow">First-run setup</p>
<h1>Key setup</h1>
<p class="intro">Choose how many keys your multisig setup has and how many of them are required to sign, then name each key, choose its type, and record its address path. The name is a label you can change later in the settings; the type and the address path are locked once the setup is saved.</p>
</div>
</div>
<div class="privacy-notice" role="note">
Never enter seed phrases, private keys, PINs, passwords, wallet secrets, or contact details.
</div>
<form id="setup-form">
<section class="form-section" aria-labelledby="multisig-title">
<div class="form-section-heading">
<p class="eyebrow">01 / Multisig setup</p>
<h2 id="multisig-title">Threshold and key slots</h2>
</div>
<p class="field-help">The threshold is how many keys are required to sign. The key slots are how many keys the setup holds. The app records check results only — it never signs anything.</p>
<div class="field-grid">
<label class="field"><span>Threshold</span><input id="threshold" name="threshold" type="number" min="1" step="1" value="2" required></label>
<label class="field"><span>Key slots</span><input id="key-count" name="key_count" type="number" min="2" max="15" step="1" value="3" required></label>
</div>
</section>
<section class="form-section" aria-labelledby="keys-title">
<div class="form-section-heading">
<p class="eyebrow">02 / Keys</p>
<h2 id="keys-title">The keys</h2>
</div>
<p class="field-help">The name you enter is the product name of that key everywhere: the check form, the alerts, the history, and the CSV export. Names must be unique.</p>
<p class="field-help">A hardware key is a device you hold yourself. A cloud key is held by a provider; its own name is also offered as wallet software for the other keys.</p>
<p class="field-help">The address path is the public derivation path the key is used at, for example <code>m/48'/0'/0'/2'</code>. It is the identity of the key, together with its type, and it holds no secret.</p>
<div class="form-stack" id="key-fields">
<fieldset class="check-card">
<legend>Key 1</legend>
<div class="field-grid">
<label class="field"><span>Name</span><input name="key_1_name" type="text" maxlength="60" autocomplete="off" required></label>
<label class="field"><span>Type</span><select name="key_1_type" required><option value="">Select type</option><option value="hardware">Hardware</option><option value="cloud">Cloud</option></select></label>
</div>
<label class="field"><span>Address path</span><input name="key_1_address_path" type="text" maxlength="200" autocomplete="off" required></label>
</fieldset>
<fieldset class="check-card">
<legend>Key 2</legend>
<div class="field-grid">
<label class="field"><span>Name</span><input name="key_2_name" type="text" maxlength="60" autocomplete="off" required></label>
<label class="field"><span>Type</span><select name="key_2_type" required><option value="">Select type</option><option value="hardware">Hardware</option><option value="cloud">Cloud</option></select></label>
</div>
<label class="field"><span>Address path</span><input name="key_2_address_path" type="text" maxlength="200" autocomplete="off" required></label>
</fieldset>
<fieldset class="check-card">
<legend>Key 3</legend>
<div class="field-grid">
<label class="field"><span>Name</span><input name="key_3_name" type="text" maxlength="60" autocomplete="off" required></label>
<label class="field"><span>Type</span><select name="key_3_type" required><option value="">Select type</option><option value="hardware">Hardware</option><option value="cloud">Cloud</option></select></label>
</div>
<label class="field"><span>Address path</span><input name="key_3_address_path" type="text" maxlength="200" autocomplete="off" required></label>
</fieldset>
</div>
</section>
<div class="form-actions">
<button class="primary-button active-button" id="save-setup" type="submit">Save key setup</button>
<a class="secondary-button" href="/">Cancel</a>
</div>
</form>
<p class="workflow-note" id="setup-status" role="status"></p>
</main>
<footer class="footer"><span>VardKey</span><span>Your data stays local.</span></footer>
</body>
</html>