-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
362 additions
and
109 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { css } from '@emotion/css'; | ||
|
||
export const fullPageContent = css` | ||
height: 100%; | ||
justify-content: center; | ||
max-width: 440px; | ||
padding: 0px 24px; | ||
`; |
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
47 changes: 47 additions & 0 deletions
47
src/app/pages/onboarding/back-up-secret-key/components/back-up-secret-key-actions.tsx
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { FiEyeOff, FiLock, FiRotateCcw } from 'react-icons/fi'; | ||
import { Box, Button, color, Stack } from '@stacks/ui'; | ||
|
||
import { Caption } from '@app/components/typography'; | ||
import { Link } from '@app/components/link'; | ||
import { isFullPage } from '@app/common/utils'; | ||
|
||
interface BackUpSecretKeyLayoutProps { | ||
onBackedUpSecretKey(): void; | ||
} | ||
export function BackUpSecretKeyActions(props: BackUpSecretKeyLayoutProps): JSX.Element { | ||
const { onBackedUpSecretKey } = props; | ||
|
||
return ( | ||
<> | ||
<Stack alignItems="center" isInline> | ||
<Box as={FiRotateCcw} color={color('text-caption')} size="12px" /> | ||
<Caption>Your Secret Key gives access to your account</Caption> | ||
</Stack> | ||
<Stack alignItems="center" isInline> | ||
<Box as={FiEyeOff} color={color('text-caption')} size="12px" /> | ||
<Caption>Never share your Secret Key</Caption> | ||
</Stack> | ||
<Stack alignItems="center" isInline> | ||
<Box as={FiLock} color={color('text-caption')} size="12px" /> | ||
<Caption>Put it somewhere private and secure</Caption> | ||
</Stack> | ||
<Stack alignItems={isFullPage ? 'center' : 'start'} isInline={isFullPage} spacing="loose"> | ||
<Button | ||
borderRadius="10px" | ||
height="48px" | ||
mr="24px !important" | ||
onClick={onBackedUpSecretKey} | ||
width="198px" | ||
> | ||
I've backed it up | ||
</Button> | ||
<Stack isInline alignItems="center"> | ||
<Caption mr="4px !important">Or</Caption> | ||
<Link fontSize="14px" onClick={() => {}}> | ||
back it up later | ||
</Link> | ||
</Stack> | ||
</Stack> | ||
</> | ||
); | ||
} |
26 changes: 26 additions & 0 deletions
26
src/app/pages/onboarding/set-password/set-password.styles.tsx
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { css } from '@emotion/css'; | ||
|
||
export const fullPageContent = css` | ||
height: 100%; | ||
justify-content: center; | ||
max-width: 440px; | ||
padding: 0px 24px; | ||
`; | ||
|
||
export const fullPageText = css` | ||
padding: 0px 16px; | ||
text-align: center; | ||
`; | ||
|
||
export const fullPageTitle = css` | ||
font-size: 48px; | ||
line-height: 60px; | ||
text-align: center; | ||
`; | ||
|
||
export const popupTitle = css` | ||
font-size: 32px; | ||
line-height: 44px; | ||
margin-bottom: 16px !important; | ||
width: 264px; | ||
`; |
Oops, something went wrong.