Skip to content

Commit bfad6f5

Browse files
committed
[KB] feat[#267]: 로딩 스피너 컴포넌트 추가
1 parent df2a666 commit bfad6f5

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import styled, { keyframes } from 'styled-components';
2+
3+
const spin = keyframes`
4+
0% { transform: rotate(0deg); }
5+
100% { transform: rotate(360deg); }
6+
`;
7+
8+
const Container = styled.div`
9+
display: flex;
10+
flex-direction: column;
11+
align-items: center;
12+
justify-content: center;
13+
padding: 20px;
14+
`;
15+
16+
const Spinner = styled.div`
17+
width: 40px;
18+
height: 40px;
19+
border: 4px solid rgba(255, 255, 255, 0.3);
20+
border-top: 4px solid #3498db;
21+
border-radius: 50%;
22+
animation: ${spin} 1s linear infinite;
23+
margin-bottom: 10px;
24+
`;
25+
26+
const LoadingSpinner = () => {
27+
return (
28+
<Container>
29+
<Spinner />
30+
</Container>
31+
);
32+
};
33+
34+
export default LoadingSpinner;

0 commit comments

Comments
 (0)