This file contains hidden or 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
| const SSkeletonLine = styled(SSkeletonPulse)` | |
| width: 5.5em; | |
| border-radius: 5px; | |
| &::before { | |
| content: "\00a0"; | |
| } | |
| `; |
This file contains hidden or 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
| <SkeletonLine translucent={true} /> |
This file contains hidden or 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
| const SSkeletonPulse = styled.div` | |
| display: inline-block; | |
| height: 100%; | |
| width: 100%; | |
| background: ${props => | |
| props.translucent | |
| ? css`linear-gradient(-90deg, #C1C1C1 0%, #F8F8F8 50%, #C1C1C1 100%)` | |
| : css`linear-gradient(-90deg, #F0F0F0 0%, #F8F8F8 50%, #F0F0F0 100%)`}; | |
| background-size: 400% 400%; | |
| animation: pulse 1.2s ease-in-out infinite; |
This file contains hidden or 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
| if (data === undefined) { | |
| const profileContent = ( | |
| <Profile> | |
| <ProfileName><SkeletonLine /></ProfileName> | |
| <ProfileBio><SkeletonLine /></ProfileBio> | |
| </Profile> | |
| ); | |
| } else { | |
| const profileContent = ( | |
| <Profile> |
This file contains hidden or 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
| export const SkeletonLine = () => ( | |
| <SSkeletonLine /> | |
| ); |
This file contains hidden or 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
| const SSkeletonPulse = styled.div` | |
| display: inline-block; | |
| height: 100%; | |
| width: 100%; | |
| background: linear-gradient(-90deg, #F0F0F0 0%, #F8F8F8 50%, #F0F0F0 100%); | |
| background-size: 400% 400%; | |
| animation: pulse 1.2s ease-in-out infinite; | |
| @keyframes pulse { | |
| 0% { | |
| background-position: 0% 0%; |