Skip to content

Commit f793ffa

Browse files
committed
design: 반응형 적용
1 parent 11486cb commit f793ffa

File tree

6 files changed

+95
-7
lines changed

6 files changed

+95
-7
lines changed

src/features/dashboard/ui/OptionSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const OptionSection = ({ responses, options }: OptionSectionProps) => {
2424

2525
return (
2626
<div key={option.optionName}>
27-
<p className="block mb-2 text-l">{option.optionName}</p>
27+
<p className="block mb-2 text-sm md:text-lg">{option.optionName}</p>
2828
<ul className="space-y-1">
2929
{option.choices.map((choice: string) => (
3030
<li key={choice}>

src/features/dashboard/ui/ResponseFilter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const ResponseFilter = ({
6060
}}
6161
/>
6262
</div>
63-
<div className="flex items-center gap-2 ml-auto">
63+
<div className="flex items-center gap-1 md:gap-2 ml-auto ">
6464
<IconButton
6565
iconPath={<img src={leftButton} alt="왼쪽 버튼" />}
6666
onClick={() => {
@@ -71,7 +71,7 @@ const ResponseFilter = ({
7171
}
7272
}}
7373
/>
74-
<span>{Math.floor(currentIndex / 1) + 1} / {Math.ceil(responsesLength / 1)}</span>
74+
<span className='text-sm md:text-base w-10 text-center'>{Math.floor(currentIndex / 1) + 1} / {Math.ceil(responsesLength / 1)}</span>
7575
<IconButton
7676
iconPath={<img src={rightButton} alt="오른쪽 버튼" />}
7777
onClick={() => {

src/features/dashboard/ui/ResponsesList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ const ResponsesList = ({ listType }: ResponsesListProps) => {
3131
return (
3232
<div className="bg-white p-4 flex flex-col gap-2 mb-4">
3333
<div className="flex justify-between items-center text-xs bg-white px-2 md:px-3 py-3">
34-
<p>{transTitle}</p>
34+
<p className='text-base font-bold'>{transTitle}</p>
3535
<p>응답 {response.length}</p>
3636
</div>
3737

3838
{response.length === 0 ? (
3939
<p>응답이 없습니다.</p>
4040
) : (
41-
<div className={isSummaryPage ? "max-h-[185px] overflow-y-auto space-y-2" : "space-y-2"}>
41+
<div className={isSummaryPage ? "h-full max-h-48 overflow-y-auto space-y-2" : "h-full overflow-y-auto space-y-2"}>
4242
{response.map((response) => (
4343
<div className="flex justify-between text-xs bg-gray-100 shadow-sm px-2 md:px-3 py-3 gap-2" key={response.id}>
4444
<p>{typeof response[key] === 'object' ? JSON.stringify(response[key]) : response[key]}</p>

src/pages/dashboard/ui/ResponsesManagementPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const ResponsesManagementPage = () => {
2323
return (
2424
<DashboardLayout centerContent="WOOACON 2024" pinkBg={true}>
2525
<div className="flex flex-col px-2 md:px-4">
26-
<h1 className="text-left font-semibold text-2xl py-4 md:py-6 pl-4">응답 {response.length}</h1>
26+
<h1 className="text-left font-semibold md:text-2xl text-xl py-4 md:py-6 pl-4">응답 {response.length}</h1>
2727
<div className="flex justify-center">
2828
<ResponsesFilterBar
2929
listType={listType}

src/shared/types/responseType.ts

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,92 @@ export const responsesInfo: responsesData[] = [
108108
"티셔츠 사이즈": "L",
109109
},
110110
},
111+
{
112+
id: '1',
113+
name: '고에진',
114+
email: 'qwe@naver.com',
115+
phone: '000-1234-5678',
116+
grade: '1',
117+
num: '20211234',
118+
selectedOptions: {
119+
"티셔츠 사이즈": "S",
120+
},
121+
},
122+
{
123+
id: '2',
124+
name: '조히은',
125+
email: 'asd@naver.com',
126+
phone: '000-1212-3232',
127+
grade: '2',
128+
num: '20211234',
129+
selectedOptions: {
130+
"티셔츠 사이즈": "M",
131+
},
132+
},
133+
{
134+
id: '3',
135+
name: '한승철',
136+
email: 'qaz@naver.com',
137+
phone: '000-3456-1234',
138+
grade: '2',
139+
num: '20211234',
140+
selectedOptions: {
141+
"티셔츠 사이즈": "L",
142+
},
143+
},
144+
{
145+
id: '4',
146+
name: '민정준',
147+
email: 'poi@naver.com',
148+
phone: '000-1345-2346',
149+
grade: '2',
150+
num: '20211234',
151+
selectedOptions: {
152+
"티셔츠 사이즈": "L",
153+
},
154+
},
155+
{
156+
id: '5',
157+
name: '고에진',
158+
email: 'ghj@naver.com',
159+
phone: '000-1234-5678',
160+
grade: '4',
161+
num: '20211234',
162+
selectedOptions: {
163+
"티셔츠 사이즈": "L",
164+
},
165+
},
166+
{
167+
id: '6',
168+
name: '조히은',
169+
email: 'jhe@naver.com',
170+
phone: '000-1212-3232',
171+
grade: '3',
172+
num: '20211234',
173+
selectedOptions: {
174+
"티셔츠 사이즈": "L",
175+
},
176+
},
177+
{
178+
id: '7',
179+
name: '한승철',
180+
email: 'hsc@naver.com',
181+
phone: '000-3456-1234',
182+
grade: '1',
183+
num: '20211234',
184+
selectedOptions: {
185+
"티셔츠 사이즈": "L",
186+
},
187+
},
188+
{
189+
id: '8',
190+
name: '민정준',
191+
email: 'mjj@naver.com',
192+
phone: '000-1345-2346',
193+
grade: '3',
194+
num: '20211234',
195+
selectedOptions: {
196+
"티셔츠 사이즈": "L",
197+
},
198+
},
111199
];

src/widgets/dashboard/ui/ResponsesFilterBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const ResponsesFilterBar = ({
1010
setListType,
1111
}: ResponsesFilterBarProps) => {
1212
return (
13-
<div className="flex items-center justify-between text-15 md:text-sm py-2 flex gap-20 font-semibold">
13+
<div className="flex items-center justify-between text-sm md:text-base py-2 flex gap-20 ">
1414
<TextButton
1515
label="요약"
1616
onClick={() => setListType('summary')}

0 commit comments

Comments
 (0)