@daeryun/dr_components 0.9.12 → 0.9.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/Daeryuntalk/ChatObject/ObjectButton.jsx +4 -4
- package/dist/components/Daeryuntalk/ChatObject/ObjectButton.tsx +4 -4
- package/dist/components/Daeryuntalk/HomeView.jsx +2 -4
- package/dist/components/Daeryuntalk/HomeView.tsx +8 -5
- package/dist/components/page/Login/LoginComp/SignContainer.jsx +107 -57
- package/dist/components/page/Login/LoginComp/SignContainer.tsx +113 -62
- package/dist/components/page/Login/StepOne.d.ts +3 -0
- package/dist/components/page/Login/StepOne.jsx +209 -0
- package/dist/components/page/Login/StepOne.tsx +300 -0
- package/dist/components/page/Login/StepTwo.d.ts +3 -0
- package/dist/components/page/Login/StepTwo.jsx +515 -0
- package/dist/components/page/Login/StepTwo.tsx +615 -0
- package/dist/styles/daeryuntalk.css +6 -0
- package/dist/styles/globals.css +358 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
4
|
+
|
|
5
|
+
import Image from 'next/image';
|
|
6
|
+
|
|
7
|
+
const Box = ({
|
|
8
|
+
type_idx,
|
|
9
|
+
tag_title,
|
|
10
|
+
selected,
|
|
11
|
+
selectedList,
|
|
12
|
+
setSelectedList,
|
|
13
|
+
activeTooltipId,
|
|
14
|
+
setActiveTooltipId,
|
|
15
|
+
tooltipTimeoutRef
|
|
16
|
+
}: {
|
|
17
|
+
type_idx: number;
|
|
18
|
+
tag_title: string;
|
|
19
|
+
selected: boolean;
|
|
20
|
+
selectedList: number[];
|
|
21
|
+
setSelectedList: React.Dispatch<React.SetStateAction<number[]>>;
|
|
22
|
+
activeTooltipId: number | null;
|
|
23
|
+
setActiveTooltipId: (id: number | null) => void;
|
|
24
|
+
tooltipTimeoutRef: React.MutableRefObject<NodeJS.Timeout | null>;
|
|
25
|
+
}) => {
|
|
26
|
+
const [tooltipStyle, setTooltipStyle] = useState<React.CSSProperties>({});
|
|
27
|
+
const buttonRef = useRef<HTMLButtonElement>(null);
|
|
28
|
+
const tooltipRef = useRef<HTMLDivElement>(null);
|
|
29
|
+
|
|
30
|
+
const [tooltipArrowLeft, setTooltipArrowLeft] = useState('50%');
|
|
31
|
+
|
|
32
|
+
// 외부 클릭 시 툴팁 닫기
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if (activeTooltipId !== type_idx) return;
|
|
35
|
+
|
|
36
|
+
const handleClickOutside = (e: MouseEvent) => {
|
|
37
|
+
if (
|
|
38
|
+
tooltipRef.current &&
|
|
39
|
+
!tooltipRef.current.contains(e.target as Node) &&
|
|
40
|
+
buttonRef.current &&
|
|
41
|
+
!buttonRef.current.contains(e.target as Node)
|
|
42
|
+
) {
|
|
43
|
+
setActiveTooltipId(null);
|
|
44
|
+
if (tooltipTimeoutRef.current) {
|
|
45
|
+
clearTimeout(tooltipTimeoutRef.current);
|
|
46
|
+
tooltipTimeoutRef.current = null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const handleResize = () => {
|
|
51
|
+
setActiveTooltipId(null);
|
|
52
|
+
if (tooltipTimeoutRef.current) {
|
|
53
|
+
clearTimeout(tooltipTimeoutRef.current);
|
|
54
|
+
tooltipTimeoutRef.current = null;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
window.addEventListener('resize', handleResize);
|
|
59
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
60
|
+
return () => {
|
|
61
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
62
|
+
window.removeEventListener('resize', handleResize);
|
|
63
|
+
};
|
|
64
|
+
}, [activeTooltipId, type_idx]);
|
|
65
|
+
|
|
66
|
+
const handleClick = () => {
|
|
67
|
+
const clearTooltipTimer = () => {
|
|
68
|
+
if (tooltipTimeoutRef.current) {
|
|
69
|
+
clearTimeout(tooltipTimeoutRef.current);
|
|
70
|
+
tooltipTimeoutRef.current = null;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
if (selected) {
|
|
75
|
+
setSelectedList(prev => prev.filter(item => item !== type_idx));
|
|
76
|
+
setActiveTooltipId(null);
|
|
77
|
+
clearTooltipTimer();
|
|
78
|
+
} else {
|
|
79
|
+
if (selectedList.length >= 5) {
|
|
80
|
+
const button = buttonRef.current;
|
|
81
|
+
if (button) {
|
|
82
|
+
const rect = button.getBoundingClientRect();
|
|
83
|
+
const viewportWidth = window.innerWidth;
|
|
84
|
+
|
|
85
|
+
const TOOLTIP_WIDTH = window.innerWidth >= 1024 ? 271 : window.innerWidth >= 640 ? 240 : 177;
|
|
86
|
+
const SCREEN_PADDING = 8;
|
|
87
|
+
const NUDGE_X = 20;
|
|
88
|
+
const TOOLTIP_OFFSET_Y = window.innerWidth >= 1024 ? 68 : window.innerWidth >= 640 ? 58 : 44;
|
|
89
|
+
|
|
90
|
+
const centerLeft = rect.width / 2 - TOOLTIP_WIDTH / 2;
|
|
91
|
+
let left = centerLeft;
|
|
92
|
+
|
|
93
|
+
const absoluteLeft = rect.left + centerLeft;
|
|
94
|
+
const absoluteRight = rect.left + centerLeft + TOOLTIP_WIDTH;
|
|
95
|
+
|
|
96
|
+
if (absoluteLeft < SCREEN_PADDING) {
|
|
97
|
+
left += SCREEN_PADDING - absoluteLeft + NUDGE_X;
|
|
98
|
+
} else if (absoluteRight > viewportWidth - SCREEN_PADDING) {
|
|
99
|
+
left -= absoluteRight - (viewportWidth - SCREEN_PADDING) + NUDGE_X;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const tooltipArrowX = rect.left + rect.width / 2 - (rect.left + left);
|
|
103
|
+
setTooltipArrowLeft(`${tooltipArrowX}px`);
|
|
104
|
+
|
|
105
|
+
setTooltipStyle({
|
|
106
|
+
position: 'absolute',
|
|
107
|
+
top: -TOOLTIP_OFFSET_Y,
|
|
108
|
+
left,
|
|
109
|
+
width: TOOLTIP_WIDTH
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
clearTooltipTimer();
|
|
114
|
+
setActiveTooltipId(type_idx);
|
|
115
|
+
|
|
116
|
+
tooltipTimeoutRef.current = setTimeout(() => {
|
|
117
|
+
setActiveTooltipId(null);
|
|
118
|
+
tooltipTimeoutRef.current = null;
|
|
119
|
+
}, 3000000);
|
|
120
|
+
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
setSelectedList(prev => [...prev, type_idx]);
|
|
125
|
+
setActiveTooltipId(null);
|
|
126
|
+
clearTooltipTimer();
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
return (
|
|
131
|
+
<div className="relative inline-block">
|
|
132
|
+
{activeTooltipId === type_idx && (
|
|
133
|
+
<div ref={tooltipRef} style={tooltipStyle} className="z-10">
|
|
134
|
+
<div className="relative w-full rounded-[4px] bg-[#7B2238] p-[6px] text-white shadow-md sm:rounded-[8px] sm:px-[14px] sm:py-[10px] lg:px-[16px] lg:py-[12px]">
|
|
135
|
+
<div className="flex items-center justify-center gap-[4px] sm:gap-[6px] lg:gap-[8px]">
|
|
136
|
+
<Image
|
|
137
|
+
src="https://d1tgonli21s4df.cloudfront.net/common-login/mark2.webp"
|
|
138
|
+
alt="warning"
|
|
139
|
+
width={24}
|
|
140
|
+
height={24}
|
|
141
|
+
className="h-[13.82px] w-[16px] sm:h-[17.27px] sm:w-[20px] lg:h-[20.73px] lg:w-[24px]"
|
|
142
|
+
/>
|
|
143
|
+
<p className="label_large2_mo sm:label_large2_tb lg:label_large2">
|
|
144
|
+
선택은 5개까지만 가능해요.
|
|
145
|
+
</p>
|
|
146
|
+
</div>
|
|
147
|
+
{/* 꼬리 */}
|
|
148
|
+
<div
|
|
149
|
+
style={{
|
|
150
|
+
position: 'absolute',
|
|
151
|
+
top: '100%',
|
|
152
|
+
left: tooltipArrowLeft,
|
|
153
|
+
transform: 'translateX(-50%)',
|
|
154
|
+
width: 0,
|
|
155
|
+
height: 0,
|
|
156
|
+
borderLeft: '4.8px solid transparent',
|
|
157
|
+
borderRight: '4.8px solid transparent',
|
|
158
|
+
borderTop: '8px solid #7B2238'
|
|
159
|
+
}}
|
|
160
|
+
/>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
)}
|
|
164
|
+
|
|
165
|
+
<button
|
|
166
|
+
ref={buttonRef}
|
|
167
|
+
onClick={handleClick}
|
|
168
|
+
className={`flex flex-row items-center rounded-[26px] border border-solid ${
|
|
169
|
+
selected ? 'border-transparent bg-grayScale1' : 'border-grayScale5'
|
|
170
|
+
} px-[8px] py-[4px] sm:px-[16px] sm:py-[8px] lg:px-[20px] lg:py-[8px]`}
|
|
171
|
+
>
|
|
172
|
+
<p
|
|
173
|
+
className={`body_small2_mo sm:body_medium2_tb lg:body_medium2 leading-[18px] sm:leading-[25px] lg:leading-[30px] ${selected ? 'text-grayScale8' : 'text-grayScale2'}`}
|
|
174
|
+
>
|
|
175
|
+
{tag_title}
|
|
176
|
+
</p>
|
|
177
|
+
</button>
|
|
178
|
+
</div>
|
|
179
|
+
);
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
const StepTwo = () => {
|
|
183
|
+
const [selectedList, setSelectedList] = useState<number[]>([]);
|
|
184
|
+
const [activeTooltipId, setActiveTooltipId] = useState<number | null>(null);
|
|
185
|
+
const tooltipTimeoutRef = useRef<NodeJS.Timeout | null>(null);
|
|
186
|
+
// const { data: categories, isLoading: categoriesLoading } = actionGetDetailCategoryList('CT0001');
|
|
187
|
+
|
|
188
|
+
const center_code = 'CT0001';
|
|
189
|
+
const center_code2 = 'CT0025';
|
|
190
|
+
const categories = [
|
|
191
|
+
{ code: 'CT0004', code_name: '기업법무' },
|
|
192
|
+
{ code: 'CT0014', code_name: '지식재산권' },
|
|
193
|
+
{ code: 'CT0026', code_name: '공정거래' },
|
|
194
|
+
{ code: 'CT0021', code_name: '관세·국제통상·이민' },
|
|
195
|
+
{ code: 'CT0007', code_name: '건설·부동산' },
|
|
196
|
+
{ code: 'CT0005', code_name: '이혼' },
|
|
197
|
+
{ code: 'CT0006', code_name: '상속·가사' },
|
|
198
|
+
{ code: 'CT0012', code_name: '조세' },
|
|
199
|
+
{ code: 'CT0024', code_name: '회계감리' },
|
|
200
|
+
{ code: 'CT0001', code_name: '형사' },
|
|
201
|
+
{ code: 'CT0019', code_name: '음주교통사고' },
|
|
202
|
+
{ code: 'CT0017', code_name: '국방군사' },
|
|
203
|
+
{ code: 'CT0002', code_name: '성범죄' },
|
|
204
|
+
{ code: 'CT0013', code_name: '마약' },
|
|
205
|
+
{ code: 'CT0008', code_name: '민사·중재' },
|
|
206
|
+
{ code: 'CT0003', code_name: '학교폭력' },
|
|
207
|
+
{ code: 'CT0009', code_name: '헌법행정' },
|
|
208
|
+
{ code: 'CT0011', code_name: '금융·보험' },
|
|
209
|
+
{ code: 'CT0018', code_name: '의료제약' },
|
|
210
|
+
{ code: 'CT0027', code_name: '산업안전·중대재해' },
|
|
211
|
+
{ code: 'CT0016', code_name: '노동·산재' },
|
|
212
|
+
{ code: 'CT0025', code_name: '엔터테인먼트·스포츠' },
|
|
213
|
+
{ code: 'CT0015', code_name: '증거조사' },
|
|
214
|
+
{ code: 'CT0029', code_name: '디지털포렌식' },
|
|
215
|
+
{ code: 'CT0030', code_name: '경호' }
|
|
216
|
+
];
|
|
217
|
+
const data1 = {
|
|
218
|
+
result: true,
|
|
219
|
+
data: [
|
|
220
|
+
{
|
|
221
|
+
type_idx: 1713,
|
|
222
|
+
tag_title: '뇌물수수'
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
type_idx: 1937,
|
|
226
|
+
tag_title: '업무상과실치사상'
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
type_idx: 1914,
|
|
230
|
+
tag_title: '데이트폭력처벌'
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
type_idx: 6662,
|
|
234
|
+
tag_title: '명의도용죄'
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
type_idx: 2131,
|
|
238
|
+
tag_title: '횡령·횡령죄'
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
type_idx: 1967,
|
|
242
|
+
tag_title: '음주운전범죄'
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
type_idx: 1873,
|
|
246
|
+
tag_title: '유사수신행위'
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
type_idx: 1649,
|
|
250
|
+
tag_title: '강도죄'
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
type_idx: 1836,
|
|
254
|
+
tag_title: '보이스피싱'
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
type_idx: 8947,
|
|
258
|
+
tag_title: '주민등록법위반'
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
type_idx: 1954,
|
|
262
|
+
tag_title: '영업비밀보호법'
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
type_idx: 1694,
|
|
266
|
+
tag_title: '공직선거법위반'
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
type_idx: 2809,
|
|
270
|
+
tag_title: '통신비밀보호법위반'
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
type_idx: 2594,
|
|
274
|
+
tag_title: '위증죄/증거인멸죄'
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
type_idx: 1858,
|
|
278
|
+
tag_title: '사기죄'
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
type_idx: 6664,
|
|
282
|
+
tag_title: '아동복지법위반'
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
type_idx: 6600,
|
|
286
|
+
tag_title: '감금죄'
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
type_idx: 1746,
|
|
290
|
+
tag_title: '도박죄'
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
type_idx: 1927,
|
|
294
|
+
tag_title: '업무방해죄'
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
type_idx: 1684,
|
|
298
|
+
tag_title: '교통사고범죄'
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
type_idx: 2801,
|
|
302
|
+
tag_title: '장애인복지법위반'
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
type_idx: 6623,
|
|
306
|
+
tag_title: '경찰사칭죄 '
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
type_idx: 2138,
|
|
310
|
+
tag_title: '학교폭력'
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
type_idx: 3398,
|
|
314
|
+
tag_title: '대부업법위반'
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
type_idx: 8199,
|
|
318
|
+
tag_title: '배임·배임죄'
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
type_idx: 1829,
|
|
322
|
+
tag_title: '보복운전/난폭운전'
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
type_idx: 7547,
|
|
326
|
+
tag_title: '가상화폐사기'
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
type_idx: 1753,
|
|
330
|
+
tag_title: '마약류관리법위반'
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
type_idx: 6627,
|
|
334
|
+
tag_title: '공무상비밀누설죄'
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
type_idx: 2077,
|
|
338
|
+
tag_title: '정치자금법위반'
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
type_idx: 6630,
|
|
342
|
+
tag_title: '공중위생관리법'
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
type_idx: 6659,
|
|
346
|
+
tag_title: '기물파손죄'
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
type_idx: 6602,
|
|
350
|
+
tag_title: '강제집행면탈죄'
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
type_idx: 2125,
|
|
354
|
+
tag_title: '강요죄'
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
type_idx: 2815,
|
|
358
|
+
tag_title: '보험사기죄'
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
type_idx: 8204,
|
|
362
|
+
tag_title: '상해'
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
type_idx: 1983,
|
|
366
|
+
tag_title: '절도죄'
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
type_idx: 6633,
|
|
370
|
+
tag_title: '국민체육진흥법위반 '
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
type_idx: 1771,
|
|
374
|
+
tag_title: '명예훼손/허위사실유포'
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
type_idx: 1825,
|
|
378
|
+
tag_title: '방화죄'
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
type_idx: 1902,
|
|
382
|
+
tag_title: '스토킹처벌법'
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
type_idx: 2101,
|
|
386
|
+
tag_title: '폭행·폭행죄'
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
type_idx: 1804,
|
|
390
|
+
tag_title: '무고죄'
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
type_idx: 1971,
|
|
394
|
+
tag_title: '재물손괴죄'
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
type_idx: 1706,
|
|
398
|
+
tag_title: '교육감선거'
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
type_idx: 1997,
|
|
402
|
+
tag_title: '주거침입죄'
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
type_idx: 1817,
|
|
406
|
+
tag_title: '문서위조/변조'
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
type_idx: 1779,
|
|
410
|
+
tag_title: '사이버명예훼손'
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
type_idx: 2931,
|
|
414
|
+
tag_title: '특경법'
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
type_idx: 1992,
|
|
418
|
+
tag_title: '특정범죄가중처벌법'
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
type_idx: 1918,
|
|
422
|
+
tag_title: '아동학대'
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
type_idx: 1961,
|
|
426
|
+
tag_title: '음주운전동승자처벌'
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
type_idx: 2116,
|
|
430
|
+
tag_title: '협박죄'
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
type_idx: 1661,
|
|
434
|
+
tag_title: '개인정보보호법위반'
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
type_idx: 1786,
|
|
438
|
+
tag_title: '모욕죄'
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
type_idx: 1729,
|
|
442
|
+
tag_title: '뇌물알선수재죄'
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
type_idx: 1680,
|
|
446
|
+
tag_title: '공갈죄'
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
type_idx: 2094,
|
|
450
|
+
tag_title: '부정청탁금지법'
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
type_idx: 1843,
|
|
454
|
+
tag_title: '전자금융거래법위반'
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
type_idx: 1886,
|
|
458
|
+
tag_title: '살인죄'
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
type_idx: 1690,
|
|
462
|
+
tag_title: '공무집행방해죄'
|
|
463
|
+
}
|
|
464
|
+
]
|
|
465
|
+
};
|
|
466
|
+
const data2 = {
|
|
467
|
+
result: true,
|
|
468
|
+
data: [
|
|
469
|
+
{
|
|
470
|
+
type_idx: 2615,
|
|
471
|
+
tag_title: '엔터테인먼트'
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
type_idx: 2634,
|
|
475
|
+
tag_title: '게임산업'
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
type_idx: 2649,
|
|
479
|
+
tag_title: '저작권'
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
type_idx: 2717,
|
|
483
|
+
tag_title: '상표/디자인'
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
type_idx: 2662,
|
|
487
|
+
tag_title: '전속계약'
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
type_idx: 2620,
|
|
491
|
+
tag_title: '스포츠산업'
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
type_idx: 2693,
|
|
495
|
+
tag_title: '특허/실용신안'
|
|
496
|
+
}
|
|
497
|
+
]
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
// console.log('categories:', categories);
|
|
501
|
+
|
|
502
|
+
return (
|
|
503
|
+
<>
|
|
504
|
+
<div className="relative mx-[200px] mt-[150px] max-[1498px]:mx-[120px] max-lg:mx-[60px] max-sm:mx-[20px] sm:mt-[240px] lg:mt-[200px] ">
|
|
505
|
+
<div className="">
|
|
506
|
+
<p className="title_large_mo sm:title_large_tb lg:title_large">STEP 2</p>
|
|
507
|
+
<div className="6xl:flex 6xl:flex-row 6xl:items-center 6xl:justify-between">
|
|
508
|
+
<div className="mt-[8px] flex flex-col gap-[4px] sm:mt-[12px] md:flex-row md:items-center md:gap-[8px] lg:mt-[12px] lg:flex-col lg:items-start lg2:flex-row lg2:items-center lg2:gap-[8px]">
|
|
509
|
+
<p className="title_small_mo sm:title_small_tb lg:title_small">
|
|
510
|
+
해당분야의 구체적인 사건 유형을 선택해주세요.
|
|
511
|
+
</p>
|
|
512
|
+
<p className="body_small2_mo sm:body_medium2_tb lg:body_medium2">
|
|
513
|
+
(최대 5개까지 선택할 수 있어요.)
|
|
514
|
+
</p>
|
|
515
|
+
</div>
|
|
516
|
+
<div className="mt-[12px] flex flex-row gap-[8px] rounded-[8px] bg-grayScale7 p-[8px] sm:mt-[40px] sm:w-[513px] sm:gap-[12px] sm:px-[20px] sm:py-[12px] lg:w-[590px] lg:rounded-[12px] lg:px-[28px] lg:py-[16px] 6xl:mt-0">
|
|
517
|
+
<Image
|
|
518
|
+
src="https://d1tgonli21s4df.cloudfront.net/common-login/mark.webp"
|
|
519
|
+
alt="물음표"
|
|
520
|
+
width={28}
|
|
521
|
+
height={28}
|
|
522
|
+
className="mt-[1px] h-[16px] w-[16px] sm:mt-[2px] sm:h-[20px] sm:w-[20px] lg:mt-0 lg:h-[28px] lg:w-[28px]"
|
|
523
|
+
/>
|
|
524
|
+
<p className="body_small2_mo sm:body_small2_tb lg:body_small2">
|
|
525
|
+
관심 분야 및 유형은 모바일 앱에서 맞춤 콘텐츠 제공에 사용됩니다. 설정해두시면 앱에서
|
|
526
|
+
더욱 편리하게 이용하실 수 있어요.
|
|
527
|
+
</p>
|
|
528
|
+
</div>
|
|
529
|
+
</div>
|
|
530
|
+
</div>
|
|
531
|
+
|
|
532
|
+
<div className="mt-[28px] flex flex-col gap-[40px] sm:mt-[61px] lg:mt-[66px] ">
|
|
533
|
+
{data1?.data?.length > 0 && (
|
|
534
|
+
<div className="sm:flex sm:flex-row sm:rounded-[16px] sm:border sm:border-solid sm:border-grayScale5 sm:p-[40px] lg:rounded-[20px]">
|
|
535
|
+
<p className="body_large1_mo sm:body_large1_tb lg:body_large1 sm:w-[150px] sm:sm:flex-shrink-0">
|
|
536
|
+
{categories.find(item => item.code === center_code)?.code_name}
|
|
537
|
+
</p>
|
|
538
|
+
<div className="my-[12px] w-full bg-grayScale5 max-sm:h-[1px] sm:mx-[44px] sm:my-0 sm:h-auto sm:w-[1px] sm:flex-shrink-0 lg:gap-[80px]" />
|
|
539
|
+
|
|
540
|
+
<div className="flex flex-row flex-wrap gap-x-[8px] gap-y-[12px] sm:gap-[20px] lg:gap-x-[24px] lg:gap-y-[24px]">
|
|
541
|
+
{data1?.data?.map(item => (
|
|
542
|
+
<Box
|
|
543
|
+
key={item.type_idx}
|
|
544
|
+
type_idx={item.type_idx}
|
|
545
|
+
tag_title={item.tag_title}
|
|
546
|
+
selected={selectedList.includes(item.type_idx)}
|
|
547
|
+
selectedList={selectedList}
|
|
548
|
+
setSelectedList={setSelectedList}
|
|
549
|
+
activeTooltipId={activeTooltipId}
|
|
550
|
+
setActiveTooltipId={setActiveTooltipId}
|
|
551
|
+
tooltipTimeoutRef={tooltipTimeoutRef}
|
|
552
|
+
/>
|
|
553
|
+
))}
|
|
554
|
+
</div>
|
|
555
|
+
</div>
|
|
556
|
+
)}
|
|
557
|
+
{data2?.data?.length > 0 && (
|
|
558
|
+
<div className="sm:flex sm:flex-row sm:rounded-[16px] sm:border sm:border-solid sm:border-grayScale5 sm:p-[40px] lg:rounded-[20px]">
|
|
559
|
+
<p className="body_large1_mo sm:body_large1_tb lg:body_large1 sm:w-[150px] sm:sm:flex-shrink-0">
|
|
560
|
+
{categories.find(item => item.code === center_code2)?.code_name}
|
|
561
|
+
</p>
|
|
562
|
+
<div className="my-[12px] w-full bg-grayScale5 max-sm:h-[1px] sm:mx-[44px] sm:my-0 sm:h-auto sm:w-[1px] sm:flex-shrink-0 lg:gap-[80px]" />
|
|
563
|
+
|
|
564
|
+
<div className="flex flex-row flex-wrap gap-x-[8px] gap-y-[12px] sm:gap-[20px] lg:gap-x-[24px] lg:gap-y-[32px]">
|
|
565
|
+
{data2?.data?.map(item => (
|
|
566
|
+
<Box
|
|
567
|
+
key={item.type_idx}
|
|
568
|
+
type_idx={item.type_idx}
|
|
569
|
+
tag_title={item.tag_title}
|
|
570
|
+
selected={selectedList.includes(item.type_idx)}
|
|
571
|
+
selectedList={selectedList}
|
|
572
|
+
setSelectedList={setSelectedList}
|
|
573
|
+
activeTooltipId={activeTooltipId}
|
|
574
|
+
setActiveTooltipId={setActiveTooltipId}
|
|
575
|
+
tooltipTimeoutRef={tooltipTimeoutRef}
|
|
576
|
+
/>
|
|
577
|
+
))}
|
|
578
|
+
</div>
|
|
579
|
+
</div>
|
|
580
|
+
)}
|
|
581
|
+
</div>
|
|
582
|
+
<div className="mb-[56px] mt-[40px] flex flex-col items-center justify-center sm:mt-[60px] lg:mt-[79px]">
|
|
583
|
+
<div className="flex w-full flex-row items-center justify-center gap-[8px]">
|
|
584
|
+
<button
|
|
585
|
+
type={'button'}
|
|
586
|
+
onClick={async () => {}}
|
|
587
|
+
className={
|
|
588
|
+
` bg-[#EDEDED] text-grayScale3` +
|
|
589
|
+
' title_small h-[72px] w-[740px] rounded-[36px] ' +
|
|
590
|
+
' max-lg:body_medium2 max-lg:h-[60px] max-lg:w-[620px] ' +
|
|
591
|
+
' max-sm:body_large2_mo max-sm:h-[48px] max-sm:w-full '
|
|
592
|
+
}
|
|
593
|
+
>
|
|
594
|
+
이전
|
|
595
|
+
</button>
|
|
596
|
+
<button
|
|
597
|
+
type={'button'}
|
|
598
|
+
onClick={async () => {}}
|
|
599
|
+
className={
|
|
600
|
+
` ${selectedList.length > 0 ? ' bg-[#AE0E36] text-white ' : ' bg-[#EDEDED] text-grayScale3 '} ` +
|
|
601
|
+
' title_small h-[72px] w-[740px] rounded-[36px] ' +
|
|
602
|
+
' max-lg:body_medium2 max-lg:h-[60px] max-lg:w-[620px] ' +
|
|
603
|
+
' max-sm:body_large2_mo max-sm:h-[48px] max-sm:w-full '
|
|
604
|
+
}
|
|
605
|
+
>
|
|
606
|
+
완료
|
|
607
|
+
</button>
|
|
608
|
+
</div>
|
|
609
|
+
</div>
|
|
610
|
+
</div>
|
|
611
|
+
</>
|
|
612
|
+
);
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
export default StepTwo;
|