2020-07-15 19:51:01 +02:00
@model RecoverySeedBackupViewModel
@{
Layout = "_LayoutSimple";
2020-07-16 19:09:45 +02:00
ViewData["Title"] = "Your recovery phrase";
2020-07-15 19:51:01 +02:00
}
2021-05-19 04:39:27 +02:00
@section PageHeadContent {
<style>
2023-03-24 16:09:53 +01:00
main { max-width: 800px; margin: 0 auto; text-align: center;}
2021-05-19 04:39:27 +02:00
form#RecoveryConfirmation button { position: absolute; bottom:0; left:50%; width:200px; margin-left:-100px; }
form#RecoveryConfirmation button:not([disabled]) { display: none; }
form#RecoveryConfirmation input:checked ~ button[disabled] { display: none; }
form#RecoveryConfirmation input:checked + button:not([disabled]) { display: inline-block; }
2023-03-24 16:09:53 +01:00
2024-05-20 01:57:46 +02:00
.icon.icon-warning {
--icon-size: 2.5rem;
2023-03-24 16:09:53 +01:00
}
2021-05-19 04:39:27 +02:00
</style>
2021-02-11 11:48:54 +01:00
}
2021-05-19 04:39:27 +02:00
@section PageFootContent {
<partial name="_ValidationScriptsPartial" />
}
2020-07-19 15:49:57 +02:00
2023-03-24 16:09:53 +01:00
<main>
<partial name="_StatusMessage" />
<div class="d-inline-flex flex-column align-items-center justify-content-center">
<div class="text-warning mb-3">
<vc:icon symbol="warning" />
2020-07-16 19:09:45 +02:00
</div>
<div class="lead text-center">
2024-10-14 14:11:00 +09:00
<h1 class="text-center text-warning mb-3" text-translate="true">
Secure your recovery phrase
2023-05-03 10:55:20 +02:00
</h1>
</div>
2023-03-24 16:09:53 +01:00
</div>
<div class="lead text-center">
2024-10-25 15:48:53 +02:00
<p class="mb-0" text-translate="true">The combination of words below are called your recovery phrase. The recovery phrase allows you to access and restore your wallet. Write them down on a piece of paper in the exact order:</p>
2023-03-24 16:09:53 +01:00
</div>
2023-05-30 10:44:05 +02:00
<ol id="RecoveryPhrase" data-mnemonic="@Model.Mnemonic" class="d-inline-block my-5 mx-auto ps-4">
2023-03-24 16:09:53 +01:00
@foreach (var word in Model.Words)
{
<li class="text-start text-muted py-2">
<span class="text-dark h5">@word</span>
</li>
}
</ol>
<div class="lead text-center">
@if (Model.IsStored)
{
2020-07-16 19:09:45 +02:00
<p>
2024-10-14 14:11:00 +09:00
<span text-translate="true">The recovery phrase is a backup that allows you to restore your wallet in case of a server crash.</span>
<span text-translate="true">If you lose it or write it down incorrectly, you may permanently lose access to your funds.</span>
<span text-translate="true">Do not photograph it. Do not store it digitally.</span>
2023-03-24 16:09:53 +01:00
</p>
<p class="text-warning">
2024-10-14 14:11:00 +09:00
<strong text-translate="true">The recovery phrase will also be stored on the server as a hot wallet.</strong>
2020-07-16 19:09:45 +02:00
</p>
2020-08-05 11:20:34 +02:00
}
else
{
2023-03-24 16:09:53 +01:00
<p>
2024-10-14 14:11:00 +09:00
<span text-translate="true">If you lose it or write it down incorrectly, you will permanently lose access to your funds.</span>
<span text-translate="true">Do not photograph the recovery phrase, and do not store it digitally.</span>
2023-03-24 16:09:53 +01:00
</p>
<br />
2023-12-13 10:53:37 +01:00
<p class="text-warning">
2024-10-14 14:11:00 +09:00
<strong text-translate="true">The recovery phrase will be permanently erased from the server.</strong>
2023-03-24 16:09:53 +01:00
</p>
}
@if (!string.IsNullOrEmpty(Model.Passphrase))
{
2024-10-14 14:11:00 +09:00
<p class="mt-3 mb-0" text-translate="true">Please make sure to also write down your passphrase.</p>
2020-08-05 11:20:34 +02:00
}
2020-07-15 19:51:01 +02:00
</div>
2023-03-24 16:09:53 +01:00
@if (Model.RequireConfirm)
{
2023-04-05 10:55:35 +09:00
<form id="RecoveryConfirmation" action="@Url.EnsureLocal(Model.ReturnUrl, Context.Request)" class="position-relative d-flex align-items-start justify-content-center" style="padding:20px 0 100px" rel="noreferrer noopener">
2024-10-14 14:11:00 +09:00
<label class="form-check-label lead order-2" for="confirm" text-translate="true">I have written down my recovery phrase and stored it in a secure location</label>
2023-03-24 16:09:53 +01:00
<input type="checkbox" class="me-3 order-1 form-check-input" id="confirm" style="margin-top:.35rem;flex-shrink:0">
2024-10-14 14:11:00 +09:00
<button type="submit" class="btn btn-primary btn-lg px-5 order-3" id="submit" text-translate="true">Done</button>
<button type="submit" class="btn btn-primary btn-lg px-5 order-3" disabled text-translate="true">Done</button>
2023-03-24 16:09:53 +01:00
</form>
}
else
{
2024-10-14 14:11:00 +09:00
<a href="@Url.EnsureLocal(Model.ReturnUrl, Context.Request)" class="btn btn-primary btn-lg mt-3 px-5 order-3" id="proceed" rel="noreferrer noopener" text-translate="true">Done</a>
2023-03-24 16:09:53 +01:00
}
</main>