NastiaS
7 years ago
12 changed files with 498 additions and 28 deletions
@ -0,0 +1,28 @@ |
|||||
|
// @flow
|
||||
|
import styled from 'styled-components' |
||||
|
|
||||
|
import Box from 'components/base/Box' |
||||
|
|
||||
|
export const Title = styled(Box).attrs({ |
||||
|
width: 152, |
||||
|
height: 27, |
||||
|
ff: 'Museo Sans|Regular', |
||||
|
fontSize: 7, |
||||
|
color: 'dark', |
||||
|
})`` |
||||
|
|
||||
|
export const Description = styled(Box).attrs({ |
||||
|
width: 340, |
||||
|
height: 36, |
||||
|
ff: 'Open Sans|Regular', |
||||
|
fontSize: 4, |
||||
|
textAlign: 'center', |
||||
|
color: 'smoke', |
||||
|
})` |
||||
|
margin: 10px auto 25px; |
||||
|
` |
||||
|
export const Inner = styled(Box).attrs({ |
||||
|
horizontal: true, |
||||
|
grow: true, |
||||
|
flow: 4, |
||||
|
})`` |
@ -0,0 +1,73 @@ |
|||||
|
// @flow
|
||||
|
|
||||
|
import React from 'react' |
||||
|
import styled from 'styled-components' |
||||
|
|
||||
|
import Box from 'components/base/Box' |
||||
|
import Button from 'components/base/Button' |
||||
|
import { ModalFooter } from 'components/base/Modal/index' |
||||
|
import IconBlue from 'icons/device/Blue' |
||||
|
import CheckBox from 'components/base/CheckBox' |
||||
|
import { Title, Description } from '../helperComponents' |
||||
|
|
||||
|
import type { StepProps } from '..' |
||||
|
|
||||
|
export default (props: StepProps) => { |
||||
|
const { nextStep, prevStep } = props |
||||
|
return ( |
||||
|
<Box sticky alignItems="center" justifyContent="center"> |
||||
|
<Box align="center"> |
||||
|
<Title>This is ANALYTICS screen. 1 line is the maximum</Title> |
||||
|
<Description> |
||||
|
This is a long text, please replace it with the final wording once it’s done. |
||||
|
<br /> |
||||
|
Lorem ipsum dolor amet ledger lorem dolor ipsum amet |
||||
|
</Description> |
||||
|
<DeviceIcon> |
||||
|
<IconBlue size={60} /> |
||||
|
</DeviceIcon> |
||||
|
<Box horizontal flow={2} align="center"> |
||||
|
<CheckBox isChecked /> |
||||
|
<AnalyticsText> |
||||
|
This is a long text, please replace it with the final wording once it’s done. |
||||
|
<br /> |
||||
|
Lorem ipsum dolor amet ledger lorem dolor ipsum amet |
||||
|
</AnalyticsText> |
||||
|
</Box> |
||||
|
<Box horizontal flow={2} align="center"> |
||||
|
<CheckBox isChecked={false} /> |
||||
|
<AnalyticsText> |
||||
|
This is a long text, please replace it with the final wording once it’s done. |
||||
|
<br /> |
||||
|
Lorem ipsum dolor amet ledger lorem dolor ipsum amet |
||||
|
</AnalyticsText> |
||||
|
</Box> |
||||
|
</Box> |
||||
|
<ModalFooter horizontal align="center" justify="flex-end" flow={2}> |
||||
|
<Button small outline onClick={() => prevStep()}> |
||||
|
Go Back |
||||
|
</Button> |
||||
|
<Button small primary onClick={() => nextStep()}> |
||||
|
Continue |
||||
|
</Button> |
||||
|
</ModalFooter> |
||||
|
</Box> |
||||
|
) |
||||
|
} |
||||
|
|
||||
|
export const AnalyticsText = styled(Box).attrs({ |
||||
|
ff: 'Open Sans|Regular', |
||||
|
fontSize: 4, |
||||
|
textAlign: 'left', |
||||
|
color: 'smoke', |
||||
|
})` |
||||
|
margin: 10px auto 25px; |
||||
|
padding-left: 10px; |
||||
|
` |
||||
|
const DeviceIcon = styled(Box).attrs({ |
||||
|
alignItems: 'center', |
||||
|
justifyContent: 'center', |
||||
|
color: 'graphite', |
||||
|
})` |
||||
|
width: 55px; |
||||
|
` |
@ -0,0 +1,62 @@ |
|||||
|
// @flow
|
||||
|
|
||||
|
import React from 'react' |
||||
|
import styled from 'styled-components' |
||||
|
|
||||
|
import Box from 'components/base/Box' |
||||
|
import IconNanoS from 'icons/device/NanoS' |
||||
|
import IconBlue from 'icons/device/Blue' |
||||
|
import { Title, Description, Inner } from '../helperComponents' |
||||
|
|
||||
|
import type { StepProps } from '..' |
||||
|
|
||||
|
export default (props: StepProps) => { |
||||
|
const { nextStep } = props |
||||
|
|
||||
|
return ( |
||||
|
<Box sticky alignItems="center" justifyContent="center"> |
||||
|
<Box align="center"> |
||||
|
<Title>This is the title of the screen. 1 line is the maximum</Title> |
||||
|
<Description> |
||||
|
This is a long text, please replace it with the final wording once it’s done. |
||||
|
<br /> |
||||
|
Lorem ipsum dolor amet ledger lorem dolor ipsum amet |
||||
|
</Description> |
||||
|
<Box> |
||||
|
<Inner> |
||||
|
<DeviceContainer onClick={() => nextStep()}> |
||||
|
<DeviceIcon> |
||||
|
<IconNanoS size={46} /> |
||||
|
</DeviceIcon> |
||||
|
<Title>Ledger Nano S</Title> |
||||
|
<Description>Please replace it with the final wording once it’s done.</Description> |
||||
|
</DeviceContainer> |
||||
|
<DeviceContainer> |
||||
|
<DeviceIcon> |
||||
|
<IconBlue size={46} /> |
||||
|
</DeviceIcon> |
||||
|
<Title>Ledger Blue</Title> |
||||
|
<Description>Please replace it with the final wording once it’s done.</Description> |
||||
|
</DeviceContainer> |
||||
|
</Inner> |
||||
|
</Box> |
||||
|
</Box> |
||||
|
</Box> |
||||
|
) |
||||
|
} |
||||
|
|
||||
|
const DeviceContainer = styled(Box).attrs({ |
||||
|
alignItems: 'center', |
||||
|
justifyContent: 'center', |
||||
|
})` |
||||
|
width: 218px; |
||||
|
height: 204px; |
||||
|
border: 1px solid #d8d8d8; |
||||
|
` |
||||
|
const DeviceIcon = styled(Box).attrs({ |
||||
|
alignItems: 'center', |
||||
|
justifyContent: 'center', |
||||
|
color: 'graphite', |
||||
|
})` |
||||
|
width: 55px; |
||||
|
` |
@ -0,0 +1,34 @@ |
|||||
|
// @flow
|
||||
|
|
||||
|
import React from 'react' |
||||
|
|
||||
|
import Box from 'components/base/Box' |
||||
|
import Button from 'components/base/Button' |
||||
|
import { ModalFooter } from 'components/base/Modal/index' |
||||
|
import { Title, Description } from '../helperComponents' |
||||
|
|
||||
|
import type { StepProps } from '..' |
||||
|
|
||||
|
export default (props: StepProps) => { |
||||
|
const { nextStep, prevStep } = props |
||||
|
return ( |
||||
|
<Box sticky alignItems="center" justifyContent="center"> |
||||
|
<Box align="center"> |
||||
|
<Title>This is CHOOSE PIN screen. 1 line is the maximum</Title> |
||||
|
<Description> |
||||
|
This is a long text, please replace it with the final wording once it’s done. |
||||
|
<br /> |
||||
|
Lorem ipsum dolor amet ledger lorem dolor ipsum amet |
||||
|
</Description> |
||||
|
</Box> |
||||
|
<ModalFooter horizontal align="center" justify="flex-end" flow={2}> |
||||
|
<Button small outline onClick={() => prevStep()}> |
||||
|
Go Back |
||||
|
</Button> |
||||
|
<Button small primary onClick={() => nextStep()}> |
||||
|
Continue |
||||
|
</Button> |
||||
|
</ModalFooter> |
||||
|
</Box> |
||||
|
) |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
// @flow
|
||||
|
|
||||
|
import React from 'react' |
||||
|
|
||||
|
import Box from 'components/base/Box' |
||||
|
import Button from 'components/base/Button' |
||||
|
import { ModalFooter } from 'components/base/Modal/index' |
||||
|
import { Title, Description } from '../helperComponents' |
||||
|
|
||||
|
import type { StepProps } from '..' |
||||
|
|
||||
|
export default (props: StepProps) => { |
||||
|
const { nextStep, prevStep, jumpStep } = props |
||||
|
return ( |
||||
|
<Box sticky alignItems="center" justifyContent="center"> |
||||
|
<Box align="center"> |
||||
|
<Title>This is CHOOSE PIN screen. 1 line is the maximum</Title> |
||||
|
<Description> |
||||
|
This is a long text, please replace it with the final wording once it’s done. |
||||
|
<br /> |
||||
|
Lorem ipsum dolor amet ledger lorem dolor ipsum amet |
||||
|
</Description> |
||||
|
</Box> |
||||
|
<ModalFooter horizontal align="center" justify="flex-end" flow={2}> |
||||
|
<Button small outline onClick={() => prevStep()}> |
||||
|
Go Back |
||||
|
</Button> |
||||
|
<Button big danger onClick={() => jumpStep('init')}> |
||||
|
Test JUMP! |
||||
|
</Button> |
||||
|
<Button small primary onClick={() => nextStep()}> |
||||
|
Continue |
||||
|
</Button> |
||||
|
</ModalFooter> |
||||
|
</Box> |
||||
|
) |
||||
|
} |
@ -1,18 +1,85 @@ |
|||||
// @flow
|
// @flow
|
||||
|
|
||||
import React from 'react' |
import React from 'react' |
||||
|
import styled from 'styled-components' |
||||
|
|
||||
import Button from 'components/base/Button' |
|
||||
import Box from 'components/base/Box' |
import Box from 'components/base/Box' |
||||
|
import IconNanoS from 'icons/device/NanoS' |
||||
|
import IconBlue from 'icons/device/Blue' |
||||
|
import { Title, Description, Inner } from '../helperComponents' |
||||
|
|
||||
import type { StepProps } from '..' |
import type { StepProps } from '..' |
||||
|
|
||||
export default (props: StepProps) => { |
export default (props: StepProps) => { |
||||
const { nextStep } = props |
const { nextStep, jumpStep } = props |
||||
|
/* TODO: all titles, descriptions to be wrapped in a translation tag once defined */ |
||||
return ( |
return ( |
||||
<Box> |
<Box sticky alignItems="center" justifyContent="center"> |
||||
hey im step init |
<Box align="center"> |
||||
<Button onClick={() => nextStep()}>press me for going to prev</Button> |
<Title>This is the title of the screen. 1 line is the maximum</Title> |
||||
|
<Description> |
||||
|
This is a long text, please replace it with the final wording once it’s done. |
||||
|
<br /> |
||||
|
Lorem ipsum dolor amet ledger lorem dolor ipsum amet |
||||
|
</Description> |
||||
|
<Box> |
||||
|
<Inner> |
||||
|
<DeviceContainer onClick={() => nextStep()}> |
||||
|
<DeviceIcon> |
||||
|
<IconNanoS size={24} /> |
||||
|
</DeviceIcon> |
||||
|
<TrackChoiceTitle>Clean Nano S setup</TrackChoiceTitle> |
||||
|
<Description>Please replace it with the final wording once it’s done.</Description> |
||||
|
</DeviceContainer> |
||||
|
<DeviceContainer onClick={() => jumpStep('genuineCheck')}> |
||||
|
<DeviceIcon> |
||||
|
<IconBlue size={24} /> |
||||
|
</DeviceIcon> |
||||
|
<TrackChoiceTitle>Existing seed + Clean setup</TrackChoiceTitle> |
||||
|
<Description>Please replace it with the final wording once it’s done.</Description> |
||||
|
</DeviceContainer> |
||||
|
</Inner> |
||||
|
<Inner> |
||||
|
<DeviceContainer onClick={() => nextStep()}> |
||||
|
<DeviceIcon> |
||||
|
<IconNanoS size={24} /> |
||||
|
</DeviceIcon> |
||||
|
<TrackChoiceTitle>Migrate accounts</TrackChoiceTitle> |
||||
|
<Description>Please replace it with the final wording once it’s done.</Description> |
||||
|
</DeviceContainer> |
||||
|
<DeviceContainer> |
||||
|
<DeviceIcon> |
||||
|
<IconBlue size={24} /> |
||||
|
</DeviceIcon> |
||||
|
<TrackChoiceTitle>Not a user, but would love to</TrackChoiceTitle> |
||||
|
<Description>Please replace it with the final wording once it’s done.</Description> |
||||
|
</DeviceContainer> |
||||
|
</Inner> |
||||
|
</Box> |
||||
|
</Box> |
||||
</Box> |
</Box> |
||||
) |
) |
||||
} |
} |
||||
|
|
||||
|
const DeviceContainer = styled(Box).attrs({ |
||||
|
alignItems: 'center', |
||||
|
justifyContent: 'center', |
||||
|
})` |
||||
|
width: 218px; |
||||
|
height: 204px; |
||||
|
border: 1px solid #d8d8d8; |
||||
|
` |
||||
|
const DeviceIcon = styled(Box).attrs({ |
||||
|
alignItems: 'center', |
||||
|
justifyContent: 'center', |
||||
|
color: 'graphite', |
||||
|
})` |
||||
|
width: 55px; |
||||
|
` |
||||
|
export const TrackChoiceTitle = styled(Box).attrs({ |
||||
|
width: 152, |
||||
|
height: 27, |
||||
|
ff: 'Museo Sans|Regular', |
||||
|
fontSize: 5, |
||||
|
color: 'dark', |
||||
|
})`` |
||||
|
@ -0,0 +1,47 @@ |
|||||
|
// @flow
|
||||
|
|
||||
|
import React from 'react' |
||||
|
|
||||
|
import Box from 'components/base/Box' |
||||
|
import Button from 'components/base/Button' |
||||
|
import { ModalFooter } from 'components/base/Modal/index' |
||||
|
import Text from 'components/base/Text' |
||||
|
|
||||
|
import IconLock from 'icons/Lock' |
||||
|
import type { StepProps } from '..' |
||||
|
import { Title, Description } from '../helperComponents' |
||||
|
|
||||
|
export default (props: StepProps) => { |
||||
|
const handleSetPassword = () => { |
||||
|
console.warn('SET PASSWORD TRIGGER') // eslint-disable-line
|
||||
|
} |
||||
|
const { nextStep, prevStep } = props |
||||
|
return ( |
||||
|
<Box sticky alignItems="center" justifyContent="center"> |
||||
|
<Box align="center"> |
||||
|
<Title>This is SET PASSWORD screen. 1 line is the maximum</Title> |
||||
|
<Description> |
||||
|
This is a long text, please replace it with the final wording once it’s done. |
||||
|
<br /> |
||||
|
Lorem ipsum dolor amet ledger lorem dolor ipsum amet |
||||
|
</Description> |
||||
|
<IconLock size={30} /> |
||||
|
<Button small primary onClick={() => handleSetPassword()}> |
||||
|
Set Password |
||||
|
</Button> |
||||
|
<Box onClick={() => nextStep()} style={{ padding: 15 }}> |
||||
|
<Text color="smoke">I do not want to set it up</Text> |
||||
|
</Box> |
||||
|
</Box> |
||||
|
|
||||
|
<ModalFooter horizontal align="center" justify="flex-end" flow={2}> |
||||
|
<Button small outline onClick={() => prevStep()}> |
||||
|
Go Back |
||||
|
</Button> |
||||
|
<Button small primary onClick={() => nextStep()}> |
||||
|
Continue |
||||
|
</Button> |
||||
|
</ModalFooter> |
||||
|
</Box> |
||||
|
) |
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
// @flow
|
||||
|
|
||||
|
import React from 'react' |
||||
|
|
||||
|
import Box from 'components/base/Box' |
||||
|
import Button from 'components/base/Button' |
||||
|
import { ModalFooter } from 'components/base/Modal/index' |
||||
|
|
||||
|
import type { StepProps } from '..' |
||||
|
import { Title, Description } from '../helperComponents' |
||||
|
|
||||
|
export default (props: StepProps) => { |
||||
|
const { nextStep, prevStep } = props |
||||
|
return ( |
||||
|
<Box sticky alignItems="center" justifyContent="center"> |
||||
|
<Box align="center"> |
||||
|
<Title>This is WALLET SETUP screen. 1 line is the maximum</Title> |
||||
|
<Description> |
||||
|
This is a long text, please replace it with the final wording once it’s done. |
||||
|
<br /> |
||||
|
Lorem ipsum dolor amet ledger lorem dolor ipsum amet |
||||
|
</Description> |
||||
|
</Box> |
||||
|
<ModalFooter horizontal align="center" justify="flex-end" flow={2}> |
||||
|
<Button small outline onClick={() => prevStep()}> |
||||
|
Go Back |
||||
|
</Button> |
||||
|
<Button small primary onClick={() => nextStep()}> |
||||
|
Continue |
||||
|
</Button> |
||||
|
</ModalFooter> |
||||
|
</Box> |
||||
|
) |
||||
|
} |
@ -1,17 +0,0 @@ |
|||||
// @flow
|
|
||||
|
|
||||
import React from 'react' |
|
||||
|
|
||||
import Button from 'components/base/Button' |
|
||||
|
|
||||
import type { StepProps } from '..' |
|
||||
|
|
||||
export default (props: StepProps) => { |
|
||||
const { jumpStep } = props |
|
||||
return ( |
|
||||
<div> |
|
||||
hey im step user choice |
|
||||
<Button onClick={() => jumpStep('init')}>press me for going to prev</Button> |
|
||||
</div> |
|
||||
) |
|
||||
} |
|
@ -0,0 +1,34 @@ |
|||||
|
// @flow
|
||||
|
|
||||
|
import React from 'react' |
||||
|
|
||||
|
import Box from 'components/base/Box' |
||||
|
import Button from 'components/base/Button' |
||||
|
import { ModalFooter } from 'components/base/Modal/index' |
||||
|
import { Title, Description } from '../helperComponents' |
||||
|
|
||||
|
import type { StepProps } from '..' |
||||
|
|
||||
|
export default (props: StepProps) => { |
||||
|
const { nextStep, prevStep } = props |
||||
|
return ( |
||||
|
<Box sticky alignItems="center" justifyContent="center"> |
||||
|
<Box align="center"> |
||||
|
<Title>This is WRITE SEED screen. 1 line is the maximum</Title> |
||||
|
<Description> |
||||
|
This is a long text, please replace it with the final wording once it’s done. |
||||
|
<br /> |
||||
|
Lorem ipsum dolor amet ledger lorem dolor ipsum amet |
||||
|
</Description> |
||||
|
</Box> |
||||
|
<ModalFooter horizontal align="center" justify="flex-end" flow={2}> |
||||
|
<Button small outline onClick={() => prevStep()}> |
||||
|
Go Back |
||||
|
</Button> |
||||
|
<Button small primary onClick={() => nextStep()}> |
||||
|
Continue |
||||
|
</Button> |
||||
|
</ModalFooter> |
||||
|
</Box> |
||||
|
) |
||||
|
} |
Loading…
Reference in new issue