Skip to content

Commit 7cb8884

Browse files
authored
Merge pull request #12 from MBTips/feature/-LoadingMessage-ui-컴포너트-작업
Feat: LoadingMessageBox UI 컴포넌트 작업
2 parents b00ee3f + 59159f0 commit 7cb8884

File tree

5 files changed

+56
-1
lines changed

5 files changed

+56
-1
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function App() {
2-
return <div className="text-lg">폰트 크기 설정 테스트</div>
2+
return;
33
}
44

55
export default App;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import LoadingSpinner from "@/components/spinner/LoadingSpinner";
2+
3+
const LoadingCommentBox = () => {
4+
return (
5+
<div className="flex justify-center items-center bg-white border border-gray-100 rounded-xl rounded-tl-none w-[100px] h-[52px]">
6+
<LoadingSpinner />
7+
</div>
8+
);
9+
};
10+
11+
export default LoadingCommentBox;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const LoadingSpinner = () => {
2+
return (
3+
<div className="flex justify-center items-center space-x-3">
4+
<div className="bg-primary-normal rounded-full w-2.5 h-2.5 animate-pulse-custom delay-400"></div>
5+
<div className="bg-primary-light rounded-full w-2.5 h-2.5 animate-pulse-custom delay-600"></div>
6+
<div className="bg-primary-pale rounded-full w-2.5 h-2.5 animate-pulse-custom delay-800"></div>
7+
</div>
8+
);
9+
};
10+
11+
export default LoadingSpinner;

src/index.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,33 @@ body {
5959
place-items: center;
6060
min-width: 320px;
6161
min-height: 100vh;
62+
}
63+
64+
@keyframes pulse-custom {
65+
66+
0%,
67+
100% {
68+
transform: scale(1);
69+
}
70+
71+
50% {
72+
transform: scale(1.5);
73+
/* 크기를 늘리는 효과 */
74+
}
75+
}
76+
77+
.animate-pulse-custom {
78+
animation: pulse-custom 1s infinite;
79+
}
80+
81+
.delay-400 {
82+
animation-delay: 0.4s;
83+
}
84+
85+
.delay-600 {
86+
animation-delay: 0.6s;
87+
}
88+
89+
.delay-800 {
90+
animation-delay: 0.8s;
6291
}

tsconfig.app.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"compilerOptions": {
3+
"baseUrl": "src",
4+
"paths": {
5+
"@/*": ["*"]
6+
},
37
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
48
"target": "ES2020",
59
"useDefineForClassFields": true,

0 commit comments

Comments
 (0)