Lazy load pages

This commit is contained in:
Ben Grant 2021-03-11 11:30:36 +11:00
parent 53c1921a87
commit 4c16a971a2
4 changed files with 54 additions and 8 deletions

View 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;
`;