-
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.
feat(config,-loading): updated configs for tokens and atoms, added lo…
…ading
- Loading branch information
1 parent
b0cf2f4
commit f87504b
Showing
19 changed files
with
220 additions
and
218 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
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
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,5 @@ | ||
import { Loading } from './loading'; | ||
|
||
export const sidanMolecules = (styled: any, keyframes: any) => ({ | ||
Loading: Loading(styled, keyframes), | ||
}); |
Empty file.
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,78 @@ | ||
import { Overlay } from '../atoms/overlay'; | ||
|
||
export const Loading = (styled: any, keyframes: any) => { | ||
const ringAnimation = keyframes({ | ||
'0%': { | ||
transform: 'rotate(0deg)', | ||
}, | ||
'100%': { | ||
transform: 'rotate(360deg)', | ||
}, | ||
}); | ||
|
||
const spanAnimation = keyframes({ | ||
'0%': { | ||
transform: 'rotate(45deg)', | ||
}, | ||
'100%': { | ||
transform: 'rotate(405deg)', | ||
}, | ||
}); | ||
|
||
const Ring = styled('div', { | ||
position: 'absolute', | ||
top: '50%', | ||
left: '50%', | ||
transform: 'translate(-50%,-50%)', | ||
width: '176px', | ||
height: '176px', | ||
background: 'transparent', | ||
border: '1px solid $backgroundLight', | ||
borderRadius: 'calc(50% - 2px)', | ||
'&:before': { | ||
content: '', | ||
position: 'absolute', | ||
top: '-3px', | ||
left: '-3px', | ||
width: '100%', | ||
height: '100%', | ||
border: '3px solid transparent', | ||
background: 'transparent', | ||
borderTop: '3px solid $primary', | ||
borderRight: '3px solid $primary', | ||
borderRadius: '50%', | ||
animation: `${ringAnimation} 2s linear infinite`, | ||
}, | ||
}); | ||
|
||
const Span = styled('span', { | ||
display: 'block', | ||
position: 'absolute', | ||
top: 'calc(50% - 2px)', | ||
left: '50%', | ||
width: 'calc(50% - 1px)', | ||
height: '4px', | ||
background: 'transparent', | ||
transformOrigin: 'left', | ||
animation: `${spanAnimation} 2s linear infinite`, | ||
'&:before': { | ||
content: '', | ||
position: 'absolute', | ||
top: '-6px', | ||
right: '-8px', | ||
width: '11px', | ||
height: '11px', | ||
background: '$primary', | ||
borderRadius: '50%', | ||
boxShadow: '0 0 20px 4px $primary', | ||
}, | ||
}); | ||
|
||
return ( | ||
<Overlay> | ||
<Ring> | ||
<Span /> | ||
</Ring> | ||
</Overlay> | ||
); | ||
}; |
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.