This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add feedback after installing libraries (#773)
* feat: add user feedback for installing libraries * feat: scroll to top after installing library via npm * feat: add show animation for library box * feat: show library box shadow with box color * feat: add new spinner component * feat: show store with internet connection only * fix: remove unneeded imports * wip: feat: animate transition of installed packages box in store * wip: feat: position installed container absolute for better performance * feat: add feedback after installing libraries * feat: add feedback after installing npm packages
- Loading branch information
Showing
13 changed files
with
2,261 additions
and
271 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
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,60 @@ | ||
import { Color } from '../colors'; | ||
import * as React from 'react'; | ||
import styled from 'styled-components'; | ||
import { IconSize } from '../icons'; | ||
|
||
export interface SpinnerProps { | ||
size: IconSize; | ||
} | ||
|
||
const Wrapper = styled.div` | ||
width: ${(props: SpinnerProps) => props.size}px; | ||
height: ${(props: SpinnerProps) => props.size}px; | ||
animation: intro 0.1s 0.2s ease-out both; | ||
@keyframes intro { | ||
from { | ||
transform: scale(0.5); | ||
opacity: 0; | ||
} | ||
to { | ||
transform: scale(1); | ||
opacity: 1; | ||
} | ||
} | ||
`; | ||
|
||
const StyledSpinner = styled.div` | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
animation: spin 2s linear infinite; | ||
@keyframes spin { | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
`; | ||
|
||
const StyledInnerSpinner = styled.div` | ||
height: 100%; | ||
width: 100%; | ||
box-sizing: border-box; | ||
border-radius: 50%; | ||
border: 1.5px solid ${Color.White}; | ||
border-left-color: transparent; | ||
animation: spin 1.5s ease infinite; | ||
`; | ||
|
||
export const Spinner: React.StatelessComponent<SpinnerProps> = props => ( | ||
<Wrapper size={props.size}> | ||
<StyledSpinner> | ||
<StyledInnerSpinner /> | ||
</StyledSpinner> | ||
</Wrapper> | ||
); |
Oops, something went wrong.
6bc58b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deployed at: https://alva-commits-6bc58.surge.sh