22
33import Button from '@/shared/components/button/Button' ;
44import TextButton from '@/shared/components/button/TextButton' ;
5- import ConfirmPop from '@/shared/components/ModalPop /ConfirmPop' ;
6- import ModalLayout from '@/shared/components/ModalPop /ModalLayout' ;
5+ import ConfirmPop from '@/shared/components/modalPop /ConfirmPop' ;
6+ import ModalLayout from '@/shared/components/modalPop /ModalLayout' ;
77import { useState } from 'react' ;
8+ import { customToast } from '@/shared/components/toast/CustomToastUtils' ;
89
910function Page ( ) {
1011 const [ isModalOpen , setModalOpen ] = useState ( false ) ;
1112 const [ isConfirmOpen , setConfirmOpen ] = useState ( false ) ;
1213
1314 return (
14- < div className = "p-6 space-y-6" >
15+ < div className = "p-6 space-y-6 bg-primary " >
1516 { /* 페이지 제목 */ }
1617 < h1 className = "text-2xl font-bold border-b pb-2" > Design System</ h1 >
1718
@@ -21,29 +22,29 @@ function Page() {
2122
2223 { /* Input */ }
2324 < div className = "flex flex-col gap-2 space-y-2" >
24- < h3 className = "text-xl font-medium border-b pb-1" > Input</ h3 >
25+ < h3 className = "text-lg font-medium border-b pb-1" > Input</ h3 >
2526 { /* 여기 컴포넌트 삽입 */ }
2627 </ div >
2728
2829 { /* checkbox */ }
2930 < div className = "space-y-2" >
30- < h3 className = "text-xl font-medium border-b pb-1" > checkbox</ h3 >
31+ < h3 className = "text-lg font-medium border-b pb-1" > checkbox</ h3 >
3132 { /* 여기 컴포넌트 삽입 */ }
3233 </ div >
3334
3435 { /* select */ }
3536 < div className = "space-y-2" >
36- < h3 className = "text-xl font-medium border-b pb-1" > select</ h3 >
37+ < h3 className = "text-lg font-medium border-b pb-1" > select</ h3 >
3738 { /* 여기 컴포넌트 삽입 */ }
3839 </ div >
3940 </ div >
4041
4142 { /* Button */ }
4243 < div className = "space-y-3" >
43- < h2 className = "text-2xl font-semibold border-b pb-1" > Button</ h2 >
44+ < h2 className = "text-2xl font-semibold pb-1" > Button</ h2 >
4445
4546 < div className = "space-y-2" >
46- < h3 className = "text-xl font-medium border-b pb-1" > Button</ h3 >
47+ < h3 className = "text-lg font-medium border-b pb-1" > Button</ h3 >
4748 < Button type = "button" > 버튼</ Button >
4849 < Button color = "purple" type = "button" >
4950 Button
@@ -66,15 +67,36 @@ function Page() {
6667
6768 { /* popup */ }
6869 < div className = "space-y-3" >
69- < h2 className = "text-2xl font-semibold border-b pb-1" > popup</ h2 >
70+ < h2 className = "text-2xl font-semibold pb-1" > popup</ h2 >
7071
7172 < div className = "space-y-2" >
72- < h3 className = "text-xl font-medium border-b pb-1" > toast</ h3 >
73- { /* 여기 컴포넌트 삽입 */ }
73+ < h3 className = "text-lg font-medium border-b pb-1" > toast</ h3 >
74+ < div className = "flex gap-2" >
75+ < button
76+ className = "px-4 py-2 bg-green-300 text-black rounded"
77+ onClick = { ( ) => customToast . success ( '성공 메시지' ) }
78+ >
79+ Success Toast
80+ </ button >
81+
82+ < button
83+ className = "px-4 py-2 bg-yellow-100 text-black rounded"
84+ onClick = { ( ) => customToast . info ( '정보 메시지' ) }
85+ >
86+ Info Toast
87+ </ button >
88+
89+ < button
90+ className = "px-4 py-2 bg-red-200 text-black rounded"
91+ onClick = { ( ) => customToast . error ( '오류 메시지' ) }
92+ >
93+ Error Toast
94+ </ button >
95+ </ div >
7496 </ div >
7597
7698 < div className = "space-y-2" >
77- < h3 className = "text-xl font-medium border-b pb-1" > popup</ h3 >
99+ < h3 className = "text-lg font-medium border-b pb-1" > popup</ h3 >
78100 { /* 모달 열기 버튼 */ }
79101 < button
80102 onClick = { ( ) => setModalOpen ( true ) }
@@ -94,7 +116,11 @@ function Page() {
94116 onClose = { ( ) => setModalOpen ( false ) }
95117 title = "제목"
96118 description = "설명"
97- buttons = { < > { /* 여기다가 버튼 컴포넌트 넣으면 됨 */ } </ > }
119+ buttons = {
120+ < >
121+ < Button type = "button" > 버튼</ Button >
122+ </ >
123+ }
98124 >
99125 < div > 모달팝업 내용</ div >
100126 </ ModalLayout >
0 commit comments