Lazy load pages
This commit is contained in:
parent
53c1921a87
commit
4c16a971a2
4 changed files with 54 additions and 8 deletions
26
crabfit-frontend/src/components/Loading/loadingStyle.ts
Normal file
26
crabfit-frontend/src/components/Loading/loadingStyle.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import styled from '@emotion/styled';
|
||||
|
||||
export const Wrapper = styled.main`
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
`;
|
||||
|
||||
export const Loader = styled.div`
|
||||
@keyframes load {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
border: 3px solid ${props => props.theme.primary};
|
||||
border-left-color: transparent;
|
||||
border-radius: 100px;
|
||||
animation: load .5s linear infinite;
|
||||
`;
|
||||
Loading…
Add table
Add a link
Reference in a new issue