Skip to content

Commit

Permalink
Merge pull request #21 from spknetwork/onboard-keys-process
Browse files Browse the repository at this point in the history
fix account steps
  • Loading branch information
igormuba authored Mar 26, 2024
2 parents d75ca47 + 33c7f0b commit fd99e4f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 23 deletions.
4 changes: 2 additions & 2 deletions src/common/i18n/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
"referral": "Referral:",
"copy-key": "Make sure you copy your password as you would be needing it to setup keychain.",
"key-copied": "Password copied successfully",
"download-keys": "Download Keys",
"download-keys": "Download the rest of your keys by clicking here, and save them somewhere you won’t lose them",
"create-account-hive": "Pay with HIVE",
"create-account-credit": "Pay with Account Credits ({{n}})",
"confirm-details": "Confirm Details",
Expand Down Expand Up @@ -222,7 +222,7 @@
"copy-tooltip": "Copy password",
"regenerate-password": "Regenerate password",
"copy-password": "Password copied successfully",
"copy-info-message": "Copy Link below and SEND to an existing Hive user or scan QR code",
"copy-info-message": "Click QR code to copy account link and send to your onboarder/referrer (an existing Hive user you know)",
"creating-for-a-friend": "You are creating an account for a friend.",
"success-message": "You successfully created the account ",
"sign-title": "Sign transaction with ",
Expand Down
6 changes: 6 additions & 0 deletions src/common/pages/_sign-up.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
display: flex;
justify-content: center;
width: 100%;
margin-top: 200px;

@media (max-width: 470px) {
margin-top: 500px;
}

.success-info {
display: flex;
flex-direction: column;
Expand Down
49 changes: 28 additions & 21 deletions src/common/pages/sign-up.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,40 +339,44 @@ const SignUpPage = (props: Props | any) => {
<p>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.)
</p>
{/* <p>If you are on mobile, download the keychain mobile app</p> */}
{/* <div className="d-flex">
<span className="">Don't have keychain? download</span>
<a className="ml-1" href="https://hive-keychain.com/" target="_blank" rel="noopener noreferrer">
here
</a>
</div> */}
<div className="account-details">
<span style={{ lineHeight: 2 }}>
{_t("onboard.username")} <strong>{username}</strong>
</span>
</div>
<div className="account-link">
{/* <div className="account-link">
<h3>Step 1</h3>
<span>Download your keys to continue</span>
<Button className="mt-3" onClick={()=> downloadKeys()}>{_t("onboard.download-keys")} {downloadSvg}</Button>
</div>
{isDownloaded && <div className="account-link">
<h3>Step 2</h3>
</div> */}
{/* {isDownloaded && */}
<div className="account-link">
<h3>Step 1</h3>
{!activeUser && <h5 className="text-danger">{_t("onboard.copy-info-message")}</h5>}
{activeUser && <h5 className="text-danger">Click link below or scan QR code</h5>}
<div className="link-wrap">
<div>
{!activeUser ? <>
<div className="link">
<Link to={`/onboard-friend/${urlHash}`}>{splitUrl(`${window.origin}/onboard-friend/${urlHash}`)}...</Link>
{/* <Link to={`/onboard-friend/${urlHash}`}>{splitUrl(`${window.origin}/onboard-friend/${urlHash}`)}</Link>
<span className="icon" onClick={() => {
clipboard(`${window.origin}/onboard-friend/${urlHash}`);
success(_t("onboard.copy-link"))
}}>{copyContent}</span>
}}>{copyContent}</span> */}
</div>
</> : <a href={`${window.origin}/onboard-friend/${urlHash}`}>{_t("onboard.click-link")}</a>}
</div>
<div style={{ background: 'white', padding: '16px' }}>
<div
onClick={() => {
clipboard(`${window.origin}/onboard-friend/${urlHash}`);
success(_t("onboard.copy-link"))
}}
style={{
background: 'white',
padding: '16px',
cursor: "pointer"
}}
>
<QRCode
size={256}
style={{ height: "auto", maxWidth: "100%", width: "100%" }}
Expand All @@ -382,30 +386,33 @@ const SignUpPage = (props: Props | any) => {
</div>
</div>
<div className="account-password">
<h3>Step 3</h3>
{/* <span className="text-danger">{_t("onboard.copy-key")}</span> */}
<h3>Step 2</h3>
<span>Confirm if your friend has created your account, then check your email for instructions on setting up your account and
<a className="ml-1" href="https://hive-keychain.com/" target="_blank" rel="noopener noreferrer">
download keychain extension here
</a>
</span>
{/* <span>If you are on mobile, download the keychain mobile app</span> */}
<div className="d-flex">
{/* <span className="">If you are on desktop</span> */}
</div>
<div className="d-flex flex-column align-items-center">
<h3>Step 4</h3>
<h3>Step 3</h3>
<h4 className="text-danger">Copy your account password below and paste to keychain to set up your account</h4>
<div className="password">
<strong>{accountPassword}...</strong>
<strong>{accountPassword}</strong>
<span className="icon" onClick={()=> {
clipboard(accountPassword)
success(_t("onboard.key-copied"))
}}>{copyContent}</span>
</div>
</div>
<div className="account-link">
<h3>Step 4</h3>
{/* <span>Download your keys to continue</span> */}
<Button className="mt-3" onClick={()=> downloadKeys()}>{_t("onboard.download-keys")} {downloadSvg}</Button>
</div>
</div>
</div>}
</div>
{/* // } */}
</div>
</div>
}
Expand Down

0 comments on commit fd99e4f

Please sign in to comment.