@@ -41,9 +41,9 @@ export default function ReservationCard({
4141 const showReviewCompleted = isCompleted && reviewSubmitted ;
4242
4343 return (
44- < div className = 'rounded-24 flex h-204 w-792 overflow-hidden border border-gray-300 bg-white' >
44+ < div className = 'flex h-128 w-full max-w- 792 flex-row rounded-3xl border border-gray-300 bg-white sm:h-156 lg:h-204 ' >
4545 { /* 이미지 영역 */ }
46- < div className = 'relative h-204 w-204 flex-shrink-0' >
46+ < div className = 'relative h-full w-128 flex-shrink-0 overflow-hidden rounded-l-3xl sm:w-156 lg:w-204 ' >
4747 < Image
4848 src = { activity . bannerImageUrl }
4949 alt = { activity . title }
@@ -53,39 +53,46 @@ export default function ReservationCard({
5353 </ div >
5454
5555 { /* 콘텐츠 영역 */ }
56- < div className = 'flex flex-1 flex-col justify-start py-21 pr-24 pl-24 ' >
56+ < div className = 'flex w-0 flex-grow flex-col justify-start px-12 py-10 sm:px-16 sm:py-12 lg:px-24 lg:py-14 ' >
5757 { /* 상태 라벨 */ }
5858 < div >
59- < span className = { cn ( 'text-lg font-bold' , STATUS_COLORS [ status ] ) } >
59+ < span
60+ className = { cn (
61+ 'text-sm font-bold sm:text-lg' ,
62+ STATUS_COLORS [ status ] ,
63+ ) }
64+ >
6065 { STATUS_LABELS [ status ] }
6166 </ span >
6267 </ div >
6368
6469 { /* 제목 */ }
65- < div className = 'mt-8' >
66- < h3 className = 'text-nomad text-xl font-bold' > { activity . title } </ h3 >
70+ < div className = 'mt-4 sm:mt-6 lg:mt-8' >
71+ < h3 className = 'text-nomad truncate text-sm font-bold sm:text-lg lg:text-xl' >
72+ { activity . title }
73+ </ h3 >
6774 </ div >
6875
6976 { /* 날짜 및 인원 정보 */ }
70- < div className = 'mt-12' >
71- < p className = 'text-2lg text-nomad ' >
77+ < div className = 'mt-6 sm:mt-8 lg:mt- 12' >
78+ < p className = 'text-nomad lg:text- 2lg text-xs sm:text-sm ' >
7279 { date } · { startTime } - { endTime } · { headCount } 명
7380 </ p >
7481 </ div >
7582
7683 { /* 가격 + 버튼 */ }
77- < div className = 'mt-21 flex items-center justify-between' >
84+ < div className = 'mt-auto flex items-center justify-between pt-4 sm:pt-6 lg:pt-8 ' >
7885 { /* 가격 */ }
79- < p className = 'text-2xl font-bold text-black' >
86+ < p className = 'text-base font-bold text-black sm:text-xl lg:text-2xl ' >
8087 ₩{ totalPrice . toLocaleString ( ) }
8188 </ p >
8289
8390 { /* 버튼/상태 */ }
84- < div className = 'flex h-43 w-144 items-center justify-center' >
91+ < div className = 'flex h-32 w-80 items-center justify-center sm:h-40 sm:w-112 lg:h-43 lg:w-144 ' >
8592 { showCancelButton && (
8693 < Button
8794 variant = 'secondary'
88- className = 'h-43 w-144 rounded-md text-lg font-bold'
95+ className = 'h-32 w-80 rounded-md text-sm font-bold sm:h-40 sm:w-112 sm:text-lg lg:h-43 lg:w-144 '
8996 onClick = { ( ) => onCancel ?.( id ) }
9097 >
9198 예약 취소
@@ -94,14 +101,16 @@ export default function ReservationCard({
94101 { showReviewButton && (
95102 < Button
96103 variant = 'primary'
97- className = 'bg-nomad h-43 w-144 rounded-md text-lg font-bold'
104+ className = 'bg-nomad h-32 w-80 rounded-md text-sm font-bold sm:h-40 sm:w-112 sm:text-lg lg:h-43 lg:w-144 '
98105 onClick = { ( ) => onReview ?.( id ) }
99106 >
100107 후기 작성
101108 </ Button >
102109 ) }
103110 { showReviewCompleted && (
104- < div className = 'text-lg font-bold text-gray-500' > 후기 완료</ div >
111+ < div className = 'text-sm font-bold text-gray-500 sm:text-lg' >
112+ 후기 완료
113+ </ div >
105114 ) }
106115 </ div >
107116 </ div >
0 commit comments