From ee2e4d4ac993ada48bd0c1290d947722ea7f1c37 Mon Sep 17 00:00:00 2001 From: Adesojisouljay Date: Tue, 13 Aug 2024 10:13:29 +0100 Subject: [PATCH 1/2] refactor steps --- src/common/pages/_sign-up.scss | 41 +++++++++++- src/common/pages/sign-up.tsx | 115 +++++++++++++++++++++++++-------- 2 files changed, 129 insertions(+), 27 deletions(-) diff --git a/src/common/pages/_sign-up.scss b/src/common/pages/_sign-up.scss index d061ef80019..c6ad70b196d 100644 --- a/src/common/pages/_sign-up.scss +++ b/src/common/pages/_sign-up.scss @@ -37,9 +37,48 @@ // background-color: red; @media (max-width: 470px) { - // margin-top: 100px; width: 100%; } + + .keychain-ext{ + display: flex; + flex-direction: column; + align-items: center; + background-color: #161d26; + border-radius: 30px; + width: 100%; + padding: 20px; + + .ul{ + display: flex; + align-items: center; + justify-content: space-between; + gap: 20px; + width: 100%; + list-style: none; + + @media (max-width: 470px) { + flex-direction: column; + width: 100%; + padding: 15px; + } + + .kc-list{ + display: flex; + flex-direction: column; + align-items: center; + gap: 10px; + + img{ + width: 50px; + } + + .a-c{ + width: 100px; + } + } + } + } .account-details{ display: flex; diff --git a/src/common/pages/sign-up.tsx b/src/common/pages/sign-up.tsx index 296eb66cbb3..a1678b92c53 100644 --- a/src/common/pages/sign-up.tsx +++ b/src/common/pages/sign-up.tsx @@ -223,10 +223,18 @@ const SignUpPage = (props: Props | any) => { style={{ marginRight: "6px" }} /> ); + let containerClasses = global.isElectron ? "app-content sign-up-page mb-lg-0 mt-0 pt-6" : "app-content sign-up-page mb-lg-0"; + const formatString = (str: string)=> { + const first10 = str.substring(0, 10); + const last10 = str.substring(str.length - 10); + + return `${first10}...${last10}`; + } + return ( <> @@ -386,20 +394,68 @@ const SignUpPage = (props: Props | any) => {

Account creation steps

-

+ Please make sure you have keychain installed as an extension on your browser (If you are a using the web browser, we recommend that you pin it to your browser.) -

+

- - download keychain extension here - +
+

Download the Hive Keychain extension for your preferred device:

+ +
+

@@ -459,27 +515,34 @@ const SignUpPage = (props: Props | any) => {

Step 3

- +

Confirm if your friend has created your account, then check your email for instructions on setting up your account - -

- Copy your master password below and paste to - keychain to set up your account

-
- {accountPassword} - { - clipboard(accountPassword); - success(_t("onboard.key-copied")); - }} + {global.isMobile &&

+ Click the button below to copy your master password and paste to + keychain to set up your account +

} +
+ {!global.isMobile &&

+ Copy your master password below and paste to + keychain to set up your account +

} +
+ {global.isMobile ? + {formatString(accountPassword)} : + {accountPassword} + } +
+
From 84a84002a65218b3298e32a9536ab9ee6923635e Mon Sep 17 00:00:00 2001 From: Adesojisouljay Date: Mon, 30 Sep 2024 20:43:22 +0100 Subject: [PATCH 2/2] update text --- src/common/pages/sign-up.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/pages/sign-up.tsx b/src/common/pages/sign-up.tsx index a1678b92c53..ae0d4f9fbf6 100644 --- a/src/common/pages/sign-up.tsx +++ b/src/common/pages/sign-up.tsx @@ -533,7 +533,7 @@ const SignUpPage = (props: Props | any) => { }} > {!global.isMobile &&

- Copy your master password below and paste to + Click to opy your master password below and paste to keychain to set up your account

}