Files
vardkey/static/setup.html
T

81 lines
4.5 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">Name the three keys of your 2-of-3 setup, choose the type of each one, 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="keys-title">
<div class="form-section-heading">
<p class="eyebrow">01 / Keys</p>
<h2 id="keys-title">The three 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">
<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>