forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wallet-ext: backup mnemonic view ui update & use bg service for mnemonic
- Loading branch information
1 parent
fe97029
commit bf5134d
Showing
10 changed files
with
255 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
189 changes: 117 additions & 72 deletions
189
apps/wallet/src/ui/app/pages/initialize/backup/Backup.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,122 @@ | ||
@use '_values/colors'; | ||
@use '_values/sizing'; | ||
@use '_utils'; | ||
@use 'sass:color'; | ||
|
||
.wallet-created { | ||
.mnemonic { | ||
padding: 14px; | ||
border-radius: 15px; | ||
margin: auto; | ||
margin-bottom: 16px; | ||
background: colors.$white; | ||
border: 1px solid #e9eaeb; | ||
font-family: Inter, sans-serif; | ||
width: 320px; | ||
height: 90px; | ||
|
||
@include utils.typography('header/search-text'); | ||
|
||
line-height: 130%; | ||
color: colors.$gray-85; | ||
} | ||
|
||
.header-title { | ||
text-align: left; | ||
margin-bottom: 20px; | ||
color: colors.$gray-100; | ||
font-size: 30px; | ||
font-weight: 700; | ||
line-height: 36px; | ||
} | ||
|
||
.sub-title { | ||
text-align: center; | ||
color: colors.$gray-90; | ||
font-weight: 600; | ||
font-size: 18px; | ||
line-height: 100%; | ||
} | ||
|
||
.success-icon { | ||
border-radius: 50%; | ||
width: 46px; | ||
height: 46px; | ||
margin: auto; | ||
border: 3px dotted colors.$success; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
.success-bg { | ||
background-color: colors.$success; | ||
border-radius: 50%; | ||
width: 32px; | ||
height: 32px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
i { | ||
color: colors.$white; | ||
font-size: 25px; | ||
} | ||
} | ||
|
||
.btn { | ||
width: 100%; | ||
margin: auto; | ||
max-width: 320px; | ||
margin-top: 20px; | ||
|
||
i { | ||
margin-right: 10px; | ||
font-weight: 500; | ||
font-size: 12px; | ||
} | ||
} | ||
$color: color.change(colors.$sui-blue, $alpha: 0.1); | ||
|
||
display: flex; | ||
flex-flow: column nowrap; | ||
align-items: center; | ||
justify-content: center; | ||
padding: 40px 30px; | ||
background: $color; | ||
border: 1px solid $color; | ||
border-radius: 20px; | ||
max-width: sizing.$popup-width; | ||
max-height: sizing.$popup-height; | ||
flex: 1; | ||
} | ||
|
||
.success-icon { | ||
border-radius: 50%; | ||
width: 48px; | ||
height: 48px; | ||
min-height: 48px; | ||
border: 3px dotted colors.$success; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.success-bg { | ||
background-color: colors.$success; | ||
border-radius: 50%; | ||
width: 32px; | ||
height: 32px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.thumbs-up { | ||
color: colors.$white; | ||
font-size: 25px; | ||
} | ||
|
||
.header-title { | ||
text-align: center; | ||
margin: 0; | ||
margin-bottom: 30px; | ||
color: colors.$gray-90; | ||
text-transform: capitalize; | ||
|
||
@include utils.typography('Primary/Heading1-B'); | ||
} | ||
|
||
.sub-title { | ||
margin: 0; | ||
margin-bottom: 15px; | ||
color: colors.$gray-75; | ||
text-transform: uppercase; | ||
|
||
@include utils.typography('Primary/CAPTION-B'); | ||
} | ||
|
||
.mnemonic { | ||
display: flex; | ||
flex-flow: column nowrap; | ||
gap: 8px; | ||
align-self: stretch; | ||
font-weight: 600; | ||
font-size: 17px; | ||
line-height: 140%; | ||
padding: 14px; | ||
border-radius: 15px; | ||
background: colors.$white; | ||
border: 1px solid #e9eaeb; | ||
box-shadow: 0 1px 2px rgba(16 24 40 / 5%); | ||
color: colors.$gray-85; | ||
} | ||
|
||
.copy { | ||
margin-top: 10px; | ||
color: colors.$sui-dark-blue; | ||
align-self: flex-end; | ||
cursor: pointer; | ||
|
||
@include utils.typography('Primary/CAPTION-SB'); | ||
} | ||
|
||
.info { | ||
text-align: center; | ||
color: colors.$gray-75; | ||
margin-top: 15px; | ||
|
||
@include utils.typography('ParagraphPrimary/P2-R'); | ||
} | ||
|
||
.info-caption { | ||
text-align: center; | ||
color: colors.$gray-75; | ||
margin-bottom: 5px; | ||
|
||
@include utils.typography('Primary/CAPTION-M'); | ||
} | ||
|
||
.btn { | ||
display: flex; | ||
flex-flow: row nowrap; | ||
gap: 8px; | ||
margin-top: 45px; | ||
align-self: stretch; | ||
padding: 14px 20px; | ||
} | ||
|
||
.arrow-up { | ||
font-size: 12px; | ||
font-weight: 300; | ||
transform: rotate(135deg); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.