5 changed files with 115 additions and 227 deletions
@ -1,136 +0,0 @@ |
|||||
@import 'styles/variables.scss'; |
|
||||
|
|
||||
.container { |
|
||||
position: relative; |
|
||||
width: 100%; |
|
||||
height: 100vh; |
|
||||
background: var(--primaryColor); |
|
||||
} |
|
||||
|
|
||||
.content { |
|
||||
color: var(--primaryText); |
|
||||
text-align: center; |
|
||||
background: var(--primaryColor); |
|
||||
|
|
||||
header { |
|
||||
text-align: left; |
|
||||
padding: 20px 40px; |
|
||||
} |
|
||||
|
|
||||
.title { |
|
||||
h1 { |
|
||||
font-size: 20px; |
|
||||
margin-bottom: 20px; |
|
||||
} |
|
||||
|
|
||||
p { |
|
||||
font-size: 12px; |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
.hasNotSynced .title { |
|
||||
margin: 95px; |
|
||||
} |
|
||||
|
|
||||
.hasSynced .title { |
|
||||
margin: 30px; |
|
||||
} |
|
||||
|
|
||||
.address { |
|
||||
background: var(--primaryColor); |
|
||||
|
|
||||
.textAddress { |
|
||||
margin-top: 20px; |
|
||||
|
|
||||
span { |
|
||||
font-size: 12px; |
|
||||
|
|
||||
&.text { |
|
||||
background: var(--tertiaryColor); |
|
||||
padding: 10px; |
|
||||
} |
|
||||
|
|
||||
&.icon { |
|
||||
background: var(--secondaryColor); |
|
||||
padding: 10px; |
|
||||
cursor: pointer; |
|
||||
transition: all 0.25s; |
|
||||
color: var(--primaryText); |
|
||||
|
|
||||
&:hover { |
|
||||
opacity: 0.25; |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
svg { |
|
||||
width: 12px; |
|
||||
height: 12px; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
.qrcode { |
|
||||
border-style: solid; |
|
||||
border-color: var(--primaryText); |
|
||||
border-width: 2px; |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
.progressContainer { |
|
||||
color: var(--primaryText); |
|
||||
text-align: center; |
|
||||
padding: 40px 0; |
|
||||
background: var(--secondaryColor); |
|
||||
position: absolute; |
|
||||
height: 31vh; |
|
||||
width: 100%; |
|
||||
bottom: 0; |
|
||||
|
|
||||
h3 { |
|
||||
margin-bottom: 20px; |
|
||||
} |
|
||||
|
|
||||
.progressBar { |
|
||||
width: 75%; |
|
||||
max-width: 700px; |
|
||||
margin: 0 auto; |
|
||||
height: 10px; |
|
||||
border-radius: 5px; |
|
||||
background: var(--primaryColor); |
|
||||
} |
|
||||
|
|
||||
.progress { |
|
||||
background: var(--lightningOrange); |
|
||||
height: 10px; |
|
||||
border-radius: 5px; |
|
||||
transition: all 0.25s; |
|
||||
} |
|
||||
|
|
||||
h4 { |
|
||||
color: var(--lightningOrange); |
|
||||
margin-top: 10px; |
|
||||
} |
|
||||
|
|
||||
.progressDetail { |
|
||||
color: var(--lightningOrange); |
|
||||
font-size: 12px; |
|
||||
margin-top: 10px; |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
.spinner { |
|
||||
border: 1px solid rgba(0, 0, 0, 0.1); |
|
||||
border-left-color: rgba(0, 0, 0, 0.4); |
|
||||
border-radius: 999px; |
|
||||
margin: 0 auto; |
|
||||
height: 75px; |
|
||||
width: 75px; |
|
||||
animation: animation-rotate 1000ms linear infinite; |
|
||||
} |
|
||||
|
|
||||
@keyframes animation-rotate { |
|
||||
100% { |
|
||||
transform: rotate(360deg); |
|
||||
} |
|
||||
} |
|
@ -1,3 +1 @@ |
|||||
import Syncing from './Syncing' |
export Syncing from './Syncing' |
||||
|
|
||||
export default Syncing |
|
||||
|
@ -0,0 +1,41 @@ |
|||||
|
import React from 'react' |
||||
|
import { storiesOf } from '@storybook/react' |
||||
|
import { linkTo } from '@storybook/addon-links' |
||||
|
import { State, Store } from '@sambego/storybook-state' |
||||
|
import { Modal, Page } from 'components/UI' |
||||
|
import { Syncing } from 'components/Syncing' |
||||
|
import { boolean } from '@storybook/addon-knobs' |
||||
|
|
||||
|
const store = new Store({ |
||||
|
address: '2MxZ2z7AodL6gxEgwL5tkq2imDBhkBMq2Jc', |
||||
|
syncStatus: 'in-progress', |
||||
|
blockHeight: 123123, |
||||
|
lndBlockHeight: 1000, |
||||
|
lndCfilterHeight: 100, |
||||
|
isLoading: false, |
||||
|
syncPercentage: 30 |
||||
|
}) |
||||
|
|
||||
|
const setIsWalletOpen = () => ({}) |
||||
|
|
||||
|
storiesOf('Containers.Syncing', module) |
||||
|
.addParameters({ |
||||
|
info: { |
||||
|
disable: true |
||||
|
} |
||||
|
}) |
||||
|
.addDecorator(story => ( |
||||
|
<Page css={{ height: 'calc(100vh - 40px)' }}> |
||||
|
<Modal withHeader onClose={linkTo('Containers.Home', 'Home')} pb={0} px={0}> |
||||
|
{story()} |
||||
|
</Modal> |
||||
|
</Page> |
||||
|
)) |
||||
|
.add('Syncing', () => { |
||||
|
const hasSynced = boolean('Has synced', false) |
||||
|
return ( |
||||
|
<State store={store}> |
||||
|
<Syncing setIsWalletOpen={setIsWalletOpen} hasSynced={hasSynced} /> |
||||
|
</State> |
||||
|
) |
||||
|
}) |
Loading…
Reference in new issue