Skip to content

Commit

Permalink
feat(Loader): 로딩 컴포넌트 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
seung365 committed Nov 15, 2024
1 parent 76bf10d commit 05e7243
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/components/common/Loader/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import styled from '@emotion/styled';

const LoaderWrapper = styled.div`
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
`;

const Spinner = styled.div`
border: 4px solid #f3f3f3;
border-top: 4px solid #3498db;
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1.5s linear infinite;
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
`;

const Loader = () => {
return (
<LoaderWrapper>
<Spinner />
</LoaderWrapper>
);
};

export default Loader;

0 comments on commit 05e7243

Please sign in to comment.