@daeryun/dr_components 1.0.78 → 1.0.80

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.
@@ -12,6 +12,7 @@ import ChatWrapper from './ChatWrapper';
12
12
  import Input1 from '../_ui/inputs/Input1';
13
13
  import { useDaeryuntalk } from '../DaeryuntalkContext';
14
14
  import Button1 from '../_ui/buttons/Button1';
15
+ import CheckBox1 from '../_ui/checkboxs/CheckBox1';
15
16
  // 채팅문의 번호 인증
16
17
  const ChatPrivacyAuth = ({ message, isOperator }) => {
17
18
  var _a;
@@ -21,6 +22,7 @@ const ChatPrivacyAuth = ({ message, isOperator }) => {
21
22
  name: '',
22
23
  cell_phone_number: ''
23
24
  });
25
+ const [isAgeCheck, setIsAgeCheck] = useState(false);
24
26
  const [isModify, setIsModify] = useState(false);
25
27
  useEffect(() => {
26
28
  var _a, _b, _c, _d;
@@ -46,7 +48,11 @@ const ChatPrivacyAuth = ({ message, isOperator }) => {
46
48
  });
47
49
  setIsModify(false);
48
50
  });
51
+ const ageCheck = (e) => {
52
+ setIsAgeCheck(e.target.checked);
53
+ };
49
54
  const goModify = () => {
55
+ setIsAgeCheck(false);
50
56
  setIsModify(true);
51
57
  };
52
58
  if (!formData) {
@@ -60,11 +66,12 @@ const ChatPrivacyAuth = ({ message, isOperator }) => {
60
66
  <Input1 onChange={handleInput} value={(_b = authObject[(_a = item.bindingKey) !== null && _a !== void 0 ? _a : '']) !== null && _b !== void 0 ? _b : ''} type={item.type} name={item.bindingKey || ''} readOnly={isModify ? false : ((_c = item.readOnly) !== null && _c !== void 0 ? _c : false)}/>
61
67
  </div>);
62
68
  })}
63
- <Button1 type="button" onClick={update}>
69
+ <CheckBox1 title={'(필수)만 14세 이상입니다.'} checked={isAgeCheck} onChange={ageCheck}/>
70
+ <Button1 type="button" onClick={update} isDisabled={!isAgeCheck}>
64
71
  저장
65
72
  </Button1>
66
73
  </div>);
67
- return (<ChatWrapper isOperator={isOperator}>
74
+ return (<ChatWrapper isOperator={isOperator} className={`!py-[16px]`}>
68
75
  {/* 최초 요청 시 */}
69
76
  {!formData.submittedAt && renderSetAuth()}
70
77
  {/* 회원 정보 보여주기 */}
@@ -84,9 +91,6 @@ const ChatPrivacyAuth = ({ message, isOperator }) => {
84
91
  <Button1 type={'button'} onClick={goModify}>
85
92
  정보수정
86
93
  </Button1>
87
- {/*<div className="w-full whitespace-normal break-all font-[400] leading-[140%] tracking-[-4%]">*/}
88
- {/* 정보가 다를 경우 <b className="font-[700] underline">회원정보 수정페이지</b>에서 변경해주세요.*/}
89
- {/*</div>*/}
90
94
  </div>)}
91
95
 
92
96
  {/* 회원 정보 수정 */}
@@ -4,6 +4,7 @@ import { Form, Message } from '../_types/message';
4
4
  import Input1 from '../_ui/inputs/Input1';
5
5
  import { useDaeryuntalk } from '../DaeryuntalkContext';
6
6
  import Button1 from '../_ui/buttons/Button1';
7
+ import CheckBox1 from '../_ui/checkboxs/CheckBox1';
7
8
 
8
9
  interface props {
9
10
  message: Message;
@@ -23,6 +24,8 @@ const ChatPrivacyAuth = ({ message, isOperator }: props) => {
23
24
  cell_phone_number: ''
24
25
  });
25
26
 
27
+ const [isAgeCheck, setIsAgeCheck] = useState<boolean>(false);
28
+
26
29
  const [isModify, setIsModify] = useState<boolean>(false);
27
30
 
28
31
  useEffect(() => {
@@ -54,7 +57,12 @@ const ChatPrivacyAuth = ({ message, isOperator }: props) => {
54
57
  setIsModify(false);
55
58
  };
56
59
 
60
+ const ageCheck = (e: React.ChangeEvent<HTMLInputElement>) => {
61
+ setIsAgeCheck(e.target.checked);
62
+ };
63
+
57
64
  const goModify = () => {
65
+ setIsAgeCheck(false);
58
66
  setIsModify(true);
59
67
  };
60
68
 
@@ -76,14 +84,15 @@ const ChatPrivacyAuth = ({ message, isOperator }: props) => {
76
84
  />
77
85
  </div>
78
86
  ))}
79
- <Button1 type="button" onClick={update}>
87
+ <CheckBox1 title={'(필수)만 14세 이상입니다.'} checked={isAgeCheck} onChange={ageCheck} />
88
+ <Button1 type="button" onClick={update} isDisabled={!isAgeCheck}>
80
89
  저장
81
90
  </Button1>
82
91
  </div>
83
92
  );
84
93
 
85
94
  return (
86
- <ChatWrapper isOperator={isOperator}>
95
+ <ChatWrapper isOperator={isOperator} className={`!py-[16px]`}>
87
96
  {/* 최초 요청 시 */}
88
97
  {!formData.submittedAt && renderSetAuth()}
89
98
  {/* 회원 정보 보여주기 */}
@@ -113,9 +122,6 @@ const ChatPrivacyAuth = ({ message, isOperator }: props) => {
113
122
  <Button1 type={'button'} onClick={goModify}>
114
123
  정보수정
115
124
  </Button1>
116
- {/*<div className="w-full whitespace-normal break-all font-[400] leading-[140%] tracking-[-4%]">*/}
117
- {/* 정보가 다를 경우 <b className="font-[700] underline">회원정보 수정페이지</b>에서 변경해주세요.*/}
118
- {/*</div>*/}
119
125
  </div>
120
126
  )}
121
127
 
@@ -3,6 +3,7 @@ const Button1 = ({ onClick, type = 'button', className = '', children, isDisable
3
3
  return (<button disabled={isDisabled} type={type} onClick={onClick} className={`
4
4
  h-[38px] rounded-[10px] bg-[#2E385B] text-center text-[14px]
5
5
  font-[700] leading-[100%] tracking-[-4%] text-white
6
+ disabled:bg-drTalkDisabled
6
7
  ${className}
7
8
  `}>
8
9
  {children}
@@ -17,6 +17,7 @@ const Button1 = ({ onClick, type = 'button', className = '', children, isDisable
17
17
  className={`
18
18
  h-[38px] rounded-[10px] bg-[#2E385B] text-center text-[14px]
19
19
  font-[700] leading-[100%] tracking-[-4%] text-white
20
+ disabled:bg-drTalkDisabled
20
21
  ${className}
21
22
  `}
22
23
  >
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface CheckBox1Props {
3
+ title: string;
4
+ checked: boolean;
5
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
6
+ }
7
+ declare const CheckBox1: React.FC<CheckBox1Props>;
8
+ export default CheckBox1;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ const CheckBox1 = ({ title, checked, onChange }) => {
3
+ return (<label className="flex cursor-pointer flex-row items-center gap-[4px]">
4
+ {/* 실제 체크박스는 숨김 */}
5
+ <input type="checkbox" checked={checked} onChange={onChange} className="hidden"/>
6
+ {/* 커스텀 체크박스 */}
7
+ {checked ? (<svg width="13.5" height="13.5" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
8
+ <path d="M0.75 0.25H12.75C12.9489 0.25 13.1397 0.329018 13.2803 0.46967C13.421 0.610322 13.5 0.801088 13.5 1V13C13.5 13.1989 13.421 13.3897 13.2803 13.5303C13.1397 13.671 12.9489 13.75 12.75 13.75H0.75C0.551088 13.75 0.360322 13.671 0.21967 13.5303C0.0790176 13.3897 0 13.1989 0 13V1C0 0.801088 0.0790176 0.610322 0.21967 0.46967C0.360322 0.329018 0.551088 0.25 0.75 0.25ZM6.00225 10L11.3048 4.69675L10.245 3.63625L6.00225 7.879L3.8805 5.75725L2.82 6.81775L6.00225 10Z" fill="#2E385B"/>
9
+ </svg>) : (<svg width="13.5" height="13.5" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
10
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M13.75 0.25V13.75H0.25V0.25H13.75ZM12.25 1.75001H1.75001V12.25H12.25V1.75001Z" fill="#2E385B" fill-opacity="0.3"/>
11
+ </svg>)}
12
+ <span className="dr_talk_body_medium2">{title}</span>
13
+ </label>);
14
+ };
15
+ export default CheckBox1;
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+
3
+ interface CheckBox1Props {
4
+ title: string;
5
+ checked: boolean;
6
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
7
+ }
8
+
9
+ const CheckBox1: React.FC<CheckBox1Props> = ({ title, checked, onChange }) => {
10
+ return (
11
+ <label className="flex cursor-pointer flex-row items-center gap-[4px]">
12
+ {/* 실제 체크박스는 숨김 */}
13
+ <input type="checkbox" checked={checked} onChange={onChange} className="hidden" />
14
+ {/* 커스텀 체크박스 */}
15
+ {checked ? (
16
+ <svg width="13.5" height="13.5" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
17
+ <path
18
+ d="M0.75 0.25H12.75C12.9489 0.25 13.1397 0.329018 13.2803 0.46967C13.421 0.610322 13.5 0.801088 13.5 1V13C13.5 13.1989 13.421 13.3897 13.2803 13.5303C13.1397 13.671 12.9489 13.75 12.75 13.75H0.75C0.551088 13.75 0.360322 13.671 0.21967 13.5303C0.0790176 13.3897 0 13.1989 0 13V1C0 0.801088 0.0790176 0.610322 0.21967 0.46967C0.360322 0.329018 0.551088 0.25 0.75 0.25ZM6.00225 10L11.3048 4.69675L10.245 3.63625L6.00225 7.879L3.8805 5.75725L2.82 6.81775L6.00225 10Z"
19
+ fill="#2E385B"
20
+ />
21
+ </svg>
22
+ ) : (
23
+ <svg width="13.5" height="13.5" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
24
+ <path
25
+ fill-rule="evenodd"
26
+ clip-rule="evenodd"
27
+ d="M13.75 0.25V13.75H0.25V0.25H13.75ZM12.25 1.75001H1.75001V12.25H12.25V1.75001Z"
28
+ fill="#2E385B"
29
+ fill-opacity="0.3"
30
+ />
31
+ </svg>
32
+ )}
33
+ <span className="dr_talk_body_medium2">{title}</span>
34
+ </label>
35
+ );
36
+ };
37
+
38
+ export default CheckBox1;
@@ -84,7 +84,7 @@ export interface ICommonTypes {
84
84
  view_more_list: {
85
85
  title: string;
86
86
  subTitle: string;
87
- description: string;
87
+ description: string[];
88
88
  url: string;
89
89
  color: string;
90
90
  view_more_text: string;
@@ -93,7 +93,7 @@ export interface ICommonTypes {
93
93
  export interface IViewMoreListTypes {
94
94
  title: string;
95
95
  subTitle: string;
96
- description: string;
96
+ description: string[];
97
97
  url: string;
98
98
  color: string;
99
99
  view_more_text: string;
@@ -87,7 +87,7 @@ export interface ICommonTypes {
87
87
  view_more_list: {
88
88
  title: string;
89
89
  subTitle: string;
90
- description: string;
90
+ description: string[];
91
91
  url: string;
92
92
  color: string;
93
93
  view_more_text: string;
@@ -98,7 +98,7 @@ export interface ICommonTypes {
98
98
  export interface IViewMoreListTypes {
99
99
  title: string;
100
100
  subTitle: string;
101
- description: string;
101
+ description: string[];
102
102
  url: string;
103
103
  color: string;
104
104
  view_more_text: string;
@@ -24,8 +24,8 @@ const DetailInfo = ({ detailList, isLoading }) => {
24
24
  <Line title="법원명" content={detailList === null || detailList === void 0 ? void 0 : detailList.agency_name}/>
25
25
  <Line title="사건명" content={detailList === null || detailList === void 0 ? void 0 : detailList.title}/>
26
26
  <Line title="진행단계" content={detailList === null || detailList === void 0 ? void 0 : detailList.state}/>
27
- <Line title="사건 시작일" content={dateFomat(detailList === null || detailList === void 0 ? void 0 : detailList.accept_date, 'YYYY-MM-DD')}/>
28
- <Line title="사건 종료일" content={dateFomat(detailList === null || detailList === void 0 ? void 0 : detailList.end_date, 'YYYY-MM-DD')}/>
27
+ <Line title="사건 시작일" content={(detailList === null || detailList === void 0 ? void 0 : detailList.accept_date) ? dateFomat(detailList === null || detailList === void 0 ? void 0 : detailList.accept_date, 'YYYY-MM-DD') : '-'}/>
28
+ <Line title="사건 종료일" content={(detailList === null || detailList === void 0 ? void 0 : detailList.end_date) ? dateFomat(detailList === null || detailList === void 0 ? void 0 : detailList.end_date, 'YYYY-MM-DD') : '-'}/>
29
29
  {/* <Line title="담당 변호사" content={detailList?.lawyer} /> */}
30
30
  {/* <Line title="담당 전문가" content={detailList?.specialists?.map(item => item).join(', ')} /> */}
31
31
  {/* <Line title="담당 비서" content={detailList?.assistants?.map(item => item).join(', ')} /> */}
@@ -49,8 +49,8 @@ const DetailInfo = ({ detailList, isLoading }: { detailList: DetailList; isLoadi
49
49
  <Line title="법원명" content={detailList?.agency_name} />
50
50
  <Line title="사건명" content={detailList?.title} />
51
51
  <Line title="진행단계" content={detailList?.state} />
52
- <Line title="사건 시작일" content={dateFomat(detailList?.accept_date, 'YYYY-MM-DD')} />
53
- <Line title="사건 종료일" content={dateFomat(detailList?.end_date, 'YYYY-MM-DD')} />
52
+ <Line title="사건 시작일" content={detailList?.accept_date ? dateFomat(detailList?.accept_date, 'YYYY-MM-DD') :'-'} />
53
+ <Line title="사건 종료일" content={detailList?.end_date ? dateFomat(detailList?.end_date, 'YYYY-MM-DD'):'-'} />
54
54
  {/* <Line title="담당 변호사" content={detailList?.lawyer} /> */}
55
55
  {/* <Line title="담당 전문가" content={detailList?.specialists?.map(item => item).join(', ')} /> */}
56
56
  {/* <Line title="담당 비서" content={detailList?.assistants?.map(item => item).join(', ')} /> */}
@@ -9,7 +9,7 @@ const ViewMoreSection = ({ view_more_section_title, view_more_list, initialData
9
9
  const pathname = usePathname();
10
10
  const isMain = pathname === '/strength';
11
11
  const { width } = useBrowser(false); // 디바운스 적용
12
- const isPC = width >= 1280;
12
+ const isPC = width >= 1400;
13
13
  return (<section className={'relative w-full pb-[180px] tracking-[-0.04em] ' +
14
14
  (isMain
15
15
  ? 'pt-[100px] max-xl:py-20 max-[700px]:py-[60px]'
@@ -22,9 +22,9 @@ const ViewMoreSection = ({ view_more_section_title, view_more_list, initialData
22
22
  'max-xl:text-[28px]'}>
23
23
  {view_more_section_title}
24
24
  </h2>
25
- {isPC ? (<div className={(isMain ? 'grid-cols-4' : 'grid-cols-3 ') + ' mt-10 grid gap-5'}>
25
+ {isPC ? (<div className={(isMain ? 'grid-cols-4' : 'grid-cols-3 ') + ' mt-10 grid gap-5 max-3xl:gap-3'}>
26
26
  {view_more_list.map((item, index) => (<ViewMorePCItem key={index} item={item} index={index} initialData={initialData}/>))}
27
- </div>) : (<div className={'mt-[20px] grid max-xl:grid-cols-1 max-[700px]:mt-0'}>
27
+ </div>) : (<div className={'mx-auto mt-[20px] grid w-[90%] max-xl:w-full max-xl:grid-cols-1 max-[700px]:mt-0'}>
28
28
  {view_more_list.map((item, index) => (<ViewMoreTabItem key={index} item={item} index={index} initialData={initialData}/>))}
29
29
  </div>)}
30
30
  </Wrapper>
@@ -36,7 +36,7 @@ const ViewMorePCItem = ({ item, index, initialData }) => {
36
36
  const pathname = usePathname();
37
37
  const router = useRouter();
38
38
  const hidden = pathname.includes(item.url); //이미지 순서 밀림때문에 히든으로 처리
39
- return (<Link href={`/strength/${item.url}`} className={`view_more_${index} group flex h-[530px] w-full flex-col border-b border-solid border-black pb-10 tracking-[-0.04em] max-xl:hidden ` +
39
+ return (<Link href={`/strength/${item.url}`} className={`view_more_${index} group flex h-[530px] w-full flex-col border-b border-solid border-black pb-10 tracking-[-0.04em] max-5xl:h-[510px] max-3xl:h-[510px] max-xxl:hidden ` +
40
40
  (hidden ? '!hidden' : '')}>
41
41
  <style>
42
42
  {`
@@ -65,7 +65,6 @@ const ViewMorePCItem = ({ item, index, initialData }) => {
65
65
  }
66
66
  `}
67
67
  </style>
68
-
69
68
  <span className={'group relative h-fit w-full'}>
70
69
  <span className={'absolute left-0 top-0 z-[1] block h-full w-full bg-[#57000F] opacity-0 mix-blend-color transition-opacity duration-500 group-hover:opacity-100'}/>
71
70
  <span className={'absolute left-[50%] top-[50%] z-[1] block h-[60px] w-[94px] -translate-x-1/2 -translate-y-1/2 opacity-0 ' +
@@ -78,56 +77,70 @@ const ViewMorePCItem = ({ item, index, initialData }) => {
78
77
  <Image src={`${imagePath}/strength_new/viewmore_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 700px) 95vw, (max-width: 1280px) 260px, 33vw" className={'object-cover transition-transform duration-500 group-hover:scale-[120%]'}/>
79
78
  </div>
80
79
  </span>
81
- {hidden ? (<p className={'mt-8 text-[30px] font-[800] leading-none transition-colors duration-500 '}>
80
+ {hidden ? (<p className={'mt-8 text-[30px] font-[800] leading-none transition-colors duration-500 max-5xl:text-[28px] max-3xl:mt-7 '}>
82
81
  {item.title}
83
- </p>) : (<h3 className={'mt-8 text-[30px] font-[800] leading-none transition-colors duration-500 '}>
82
+ </p>) : (<h3 className={'mt-8 text-[30px] font-[800] leading-none transition-colors duration-500 max-5xl:text-[28px] max-3xl:mt-7 '}>
84
83
  {item.title}
85
84
  </h3>)}
86
- <p className={'mt-4 line-clamp-2 min-h-[62px] text-[22px] font-[600] leading-[1.3]'}>{item.subTitle}</p>
87
- <p className={'mt-4 line-clamp-4 text-[18px] font-[400] leading-[1.4] '} dangerouslySetInnerHTML={{
88
- __html: replaceInitialData(item.description.replace('*consult_date*', `<span class='text-[16px]'>*consult_date*</span>`), initialData)
89
- }}></p>
90
- <div className={'mt-auto flex justify-end'}>
91
- <span className={'view_more_text flex items-center gap-[10px] text-[18px] leading-[1] transition-[color,font-weight] duration-500'}>
92
- {item.view_more_text}
93
- <span className={'circle flex h-7 w-7 items-center justify-center rounded-full transition-[background-color] duration-500'}>
94
- <span className={'relative block h-[12px] w-[15px] opacity-0 transition-opacity duration-500 group-hover:opacity-100'}>
95
- <Image src={imagePath + `/strength_new/arrow.webp`} alt={'강점'} fill sizes={'(max-width: 1500px) 15px, 17px'} className={'object-contain'} quality={100}/>
85
+ <p className={'mt-4 line-clamp-2 min-h-[62px] text-[24px] font-[600] leading-[1.3] max-5xl:text-[22px]'}>
86
+ {item.subTitle}
87
+ </p>
88
+
89
+ <span className={'flex justify-between'}>
90
+ <ul className={'mt-5 pl-3 max-5xl:mt-4 max-5xl:pl-2'}>
91
+ {item.description.map((desc, index) => {
92
+ return (<li key={index} className={'relative flex gap-[10px] break-all pb-[1px] text-[18px] leading-[1.4] tracking-[-0.04em] max-5xl:text-[16px]'}>
93
+ <span className={'mt-[10px] block h-[5px] w-[5px] !rounded-full bg-black max-5xl:h-1 max-5xl:w-1'}></span>
94
+
95
+ {replaceInitialData(desc.replace('*consult_date*', ''), initialData)}
96
+
97
+ {desc.includes('*consult_date*') ? (<span className={'absolute bottom-[-15px] left-3 text-[12px] text-[#A3A3A3]'}>
98
+ * {initialData.consult_date}
99
+ </span>) : (<></>)}
100
+ </li>);
101
+ })}
102
+ </ul>
103
+ <div className={'mt-auto flex shrink-0 justify-end'}>
104
+ <span className={'view_more_text flex items-center gap-[10px] text-[18px] leading-[1] transition-[color,font-weight] duration-500 max-5xl:gap-2 max-5xl:text-[16px]'}>
105
+ {item.view_more_text}
106
+ <span className={'circle flex h-7 w-7 items-center justify-center rounded-full transition-[background-color] duration-500 max-5xl:h-6 max-5xl:w-6'}>
107
+ <span className={'relative block h-[12px] w-[15px] opacity-0 transition-opacity duration-500 group-hover:opacity-100 max-5xl:h-[10px] max-5xl:w-[13px]'}>
108
+ <Image src={imagePath + `/strength_new/arrow.webp`} alt={'강점'} fill sizes={'(max-width: 1500px) 15px, 17px'} className={'object-contain'} quality={100}/>
109
+ </span>
96
110
  </span>
97
111
  </span>
98
- </span>
99
- </div>
112
+ </div>
113
+ </span>
100
114
  </Link>);
101
115
  };
102
116
  const ViewMoreTabItem = ({ item, index, initialData }) => {
103
117
  const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
104
118
  const pathname = usePathname();
105
119
  const hidden = pathname.includes(item.url); //이미지 순서 밀림때문에 히든으로 처리
106
- return (<Link href={`/strength/${item.url}`} className={'group flex w-full items-center gap-10 border-b border-solid border-black py-10 tracking-[-0.04em] ' +
120
+ return (<Link href={`/strength/${item.url}`} className={'group flex w-full gap-10 border-b border-solid border-black py-10 tracking-[-0.04em] ' +
107
121
  'max-md:gap-8 ' +
108
122
  'max-[700px]:flex-col max-[700px]:gap-6 max-[700px]:pb-5 ' +
109
- 'xl:hidden ' +
123
+ 'xxl:hidden ' +
110
124
  (hidden ? '!hidden' : '')}>
111
- <div className={'relative h-full w-fit max-[700px]:w-full'}>
125
+ <div className={'relative h-[150px] w-[260px] max-[700px]:h-[100px] max-[700px]:w-full'}>
112
126
  <div className={'absolute right-1/2 top-1/2 z-20 h-[40px] w-[62px] -translate-y-1/2 translate-x-1/2 opacity-70 mix-blend-overlay '}>
113
127
  <Image src={`${imagePath}/strength_new/logo_white.webp`} alt={'강점'} fill sizes="62px" className={'object-cover'}/>
114
128
  </div>
115
129
  <div className={'relative h-[150px] w-[260px] shrink-0 ' +
116
- 'max-xl:h-full ' +
117
130
  'max-md:w-[220px] ' +
118
131
  'max-[700px]:h-[100px] max-[700px]:w-full'}>
119
132
  <Image src={`${imagePath}/strength_new/viewmore_tab_${index + 1}.webp`} alt={'강점'} fill quality={100} sizes="(max-width: 700px) 95vw, (max-width: 1280px) 260px, 33vw" className={'object-cover max-[700px]:hidden '}/>
120
133
  <Image src={`${imagePath}/strength_new/viewmore_mo_${index + 1}.webp`} alt={'강점'} fill quality={100} sizes="(max-width: 700px) 95vw, (max-width: 1280px) 260px, 33vw" className={'[700px]:hidden object-cover'}/>
121
134
  </div>
122
135
  </div>
123
- <div className={'flex flex-col gap-4 max-[700px]:gap-[10px]'}>
136
+ <div className={'flex w-full flex-col gap-4 max-[700px]:gap-[10px]'}>
124
137
  <div className={'flex justify-between'}>
125
- {hidden ? (<p className={'text-[24px] font-[800] leading-none max-md:text-[22px] max-[700px]:text-[20px]'} style={{ color: item.color }}>
138
+ {hidden ? (<p className={'text-[28px] font-[800] leading-none max-xl:text-[24px] max-md:text-[22px] max-[700px]:text-[20px]'} style={{ color: item.color }}>
126
139
  {item.title}
127
- </p>) : (<h3 className={'text-[24px] font-[800] leading-none max-md:text-[22px] max-[700px]:text-[20px]'} style={{ color: item.color }}>
140
+ </p>) : (<h3 className={'text-[28px] font-[800] leading-none max-xl:text-[24px] max-md:text-[22px] max-[700px]:text-[20px]'} style={{ color: item.color }}>
128
141
  {item.title}
129
142
  </h3>)}
130
- <div className={'mt-auto flex justify-end'}>
143
+ <div className={'mt-auto hidden justify-end max-[700px]:flex'}>
131
144
  <span className={'flex items-center gap-[10px] text-[16px] leading-[1] '}>
132
145
  {item.view_more_text}
133
146
  <span style={{ backgroundColor: item.color }} className={'flex h-6 w-6 items-center justify-center rounded-full '}>
@@ -138,10 +151,32 @@ const ViewMoreTabItem = ({ item, index, initialData }) => {
138
151
  </span>
139
152
  </div>
140
153
  </div>
141
- <p className={'text-[20px] font-[600] leading-[1.3] max-[700px]:mt-[10px]'}>{item.subTitle}</p>
142
- <p className={'text-[16px] font-[400] leading-[1.4] '} dangerouslySetInnerHTML={{
143
- __html: replaceInitialData(item.description.replace('*consult_date*', `<span class='text-[14px]'>*consult_date*</span>`), initialData)
144
- }}></p>
154
+ <p className={'text-[22px] font-[600] leading-[1.3] max-xl:text-[20px] max-[700px]:mt-[10px]'}>
155
+ {item.subTitle}
156
+ </p>
157
+ <span className={'flex w-full justify-between'}>
158
+ <ul className={'pl-[10px]'}>
159
+ {item.description.map((desc, index) => {
160
+ return (<li key={index} className={'relative flex gap-2 text-[16px] leading-[1.4] tracking-[-0.04em] max-[700px]:items-center '}>
161
+ <span className={'mt-[10px] block h-[5px] w-[5px] !rounded-full bg-black max-3xl:h-1 max-3xl:w-1 max-[700px]:mt-0'}></span>
162
+ {replaceInitialData(desc.replace('*consult_date*', ''), initialData)}
163
+ {desc.includes('*consult_date*') ? (<span className={'absolute bottom-[-15px] left-3 text-[12px] text-[#A3A3A3] max-[700px]:relative max-[700px]:bottom-0 max-[700px]:left-0'}>
164
+ * {initialData.consult_date}
165
+ </span>) : (<></>)}
166
+ </li>);
167
+ })}
168
+ </ul>
169
+ <div className={'mt-auto flex shrink-0 justify-end max-[700px]:hidden'}>
170
+ <span className={'flex items-center gap-[10px] text-[16px] leading-[1] '}>
171
+ {item.view_more_text}
172
+ <span style={{ backgroundColor: item.color }} className={'flex h-6 w-6 items-center justify-center rounded-full '}>
173
+ <span className={'relative block h-[12px] w-[16px]'}>
174
+ <Image src={imagePath + `/strength_new/arrow.webp`} alt={'강점'} fill sizes="16px" className={'object-contain'} quality={100}/>
175
+ </span>
176
+ </span>
177
+ </span>
178
+ </div>
179
+ </span>
145
180
  </div>
146
181
  </Link>);
147
182
  };