From 7c1d0f2e8fa4c0da920d7f2db64443188c16a3bf Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Sun, 19 Jul 2020 15:49:57 +0200 Subject: [PATCH] Recovery seed page improvements --- .../Views/Home/RecoverySeedBackup.cshtml | 76 ++++++++++--------- .../Views/Shared/_LayoutSimple.cshtml | 58 -------------- 2 files changed, 41 insertions(+), 93 deletions(-) diff --git a/BTCPayServer/Views/Home/RecoverySeedBackup.cshtml b/BTCPayServer/Views/Home/RecoverySeedBackup.cshtml index bdbd40949..519a3e53f 100644 --- a/BTCPayServer/Views/Home/RecoverySeedBackup.cshtml +++ b/BTCPayServer/Views/Home/RecoverySeedBackup.cshtml @@ -4,8 +4,18 @@ ViewData["Title"] = "Your recovery phrase"; } + +
-
+
@@ -18,40 +28,8 @@ The words below are called your recovery phrase. Write them down on a piece of paper in the exact order.

-

- They are the only backup of your private keys and allow you to restore your wallet. - If you lose or write down the recovery phrase incorrectly you will permanently lose access of your funds. - Double-check the spelling and position of each recovery phrase word. -

- @if (!Model.IsStored) - { -

- - The recovery phrase will only be shown before being wiped from the server. - -

- } -

- Do not photograph the recovery seed. - Do not keep it a digital format. - Do not share them with anybody. -

- @if (!string.IsNullOrEmpty(Model.Passphrase)) - { -

Please make sure to also write down your passphrase.

- }
- -
    +
      @foreach (var word in Model.Words) {
    1. @@ -59,7 +37,35 @@
    2. }
    -
    +
    + @if (Model.IsStored) + { +

    + The recovery phrase is a backup that allows you to restore your wallet in case of a server crash. + If you lose it or write it down incorrectly, you may permanently lose access to your funds. + Do not photograph it. Do not store it digitally. +

    +

    + The recovery phrase will also be stored on a server as a hot wallet. +

    + } + else + { +

    + The recovery phrase allows you to access and restore your wallet. + If you lose it or write it down incorrectly, you will permanently lose access to your funds. + Do not photograph the recovery phrase and do not store it digitally. +

    +

    + The recovery phrase will permanently be erased from the server. +

    + } + @if (!string.IsNullOrEmpty(Model.Passphrase)) + { +

    Please make sure to also write down your passphrase.

    + } +
    + diff --git a/BTCPayServer/Views/Shared/_LayoutSimple.cshtml b/BTCPayServer/Views/Shared/_LayoutSimple.cshtml index 3236a604b..a676b11ee 100644 --- a/BTCPayServer/Views/Shared/_LayoutSimple.cshtml +++ b/BTCPayServer/Views/Shared/_LayoutSimple.cshtml @@ -21,52 +21,14 @@ padding: 0 2rem; } - .head-logo { - height: 70px; - margin-bottom: 1rem; - } - - .lead-title { - font-family: Montserrat; - font-style: normal; - font-weight: bold; - font-size: 24px; - line-height: 1.2; - max-width: 17em; - letter-spacing: .1em; - } - - .lead-login { - font-family: Montserrat; - font-style: normal; - font-weight: normal; - font-size: 16px; - line-height: 1.8; - letter-spacing: 0.1em; - } - @@media screen and (min-width: 768px) { .content-wrapper { padding: 75px 0; } .col-head { - text-align: left; flex-direction: row; } - - .lead-title { - font-size: 34px; - } - - .lead-login { - font-size: 18px; - } - - .head-logo { - height: 80px; - margin: 0 30px 0 0; - } } @@ -74,28 +36,8 @@
    -
    -
    -
    - - - -

    @ViewData["Headline"]

    -
    -
    - -
    - @RenderBody() - -
    - -
    -
    - -
    -
    @await Html.PartialAsync("_ValidationScriptsPartial")