@daeryun/dr_components 0.5.32 → 0.5.33

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.
@@ -7,6 +7,7 @@ interface IDetailProps {
7
7
  certiList: ILawyerCerti[];
8
8
  codeList: ICommonCode[];
9
9
  centerCode: string;
10
+ isUseWrapper?: boolean;
10
11
  }
11
- declare const Detail: ({ lawyerInfo, careerList, certiList, codeList, speciality, centerCode }: IDetailProps) => React.JSX.Element | null;
12
+ declare const Detail: ({ lawyerInfo, careerList, certiList, codeList, speciality, centerCode, isUseWrapper }: IDetailProps) => React.JSX.Element | null;
12
13
  export default Detail;
@@ -20,7 +20,8 @@ import MobileSpeciality from './component/MobileSpeciality';
20
20
  import Introduce from './component/Introduce';
21
21
  import MobileRelatedPage from './component/MobileRelatedPage';
22
22
  import { bodyFetch, lawyerCode } from '../../../lib';
23
- const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, centerCode }) => {
23
+ import { Wrapper } from '../../index';
24
+ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, centerCode, isUseWrapper }) => {
24
25
  const searchParams = useSearchParams();
25
26
  const targetRefs = {
26
27
  career: useRef(null),
@@ -106,8 +107,7 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, cente
106
107
  {/*모바일 전문분야*/}
107
108
  <MobileSpeciality speciality={speciality} codeList={codeList} maxLines={maxLines} integrateSearch={integrateSearch}/>
108
109
 
109
- <section className={'mx-auto max-w-screen-2xl '}>
110
- <div className={'relative mx-auto w-[90%]'}>
110
+ {isUseWrapper ? (<Wrapper>
111
111
  {/*모바일 업무사례, 언론보도, 후기*/}
112
112
  <MobileRelatedPage lawyerInfo={lawyerInfo} successList={successList} broadcastList={broadcastList} reviewList={reviewList} isLawyer={isLawyer}/>
113
113
 
@@ -128,8 +128,30 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, cente
128
128
  </div>
129
129
  </Link>
130
130
  </div>
131
- </div>
132
- </section>
131
+ </Wrapper>) : (<section className={'mx-auto max-w-screen-2xl '}>
132
+ <div className={'relative mx-auto w-[90%]'}>
133
+ {/*모바일 업무사례, 언론보도, 후기*/}
134
+ <MobileRelatedPage lawyerInfo={lawyerInfo} successList={successList} broadcastList={broadcastList} reviewList={reviewList} isLawyer={isLawyer}/>
135
+
136
+ {/*모바일 상단 버튼*/}
137
+ <MobileTabButton targetRefs={targetRefs}/>
138
+
139
+ {/*pc 상단 버튼*/}
140
+ <PcTabButton targetTitleRefs={targetTitleRefs} targetRefs={targetRefs} careerList={careerList}/>
141
+
142
+ {/* 경력 리스트 */}
143
+ <CareerList integrateSearch={integrateSearch} successList={successList} broadcastList={broadcastList} reviewList={reviewList} careerList={careerList} lawyerInfo={lawyerInfo} speciality={speciality} codeList={codeList} certiList={certiList} targetRefs={targetRefs} targetTitleRefs={targetTitleRefs}/>
144
+
145
+ <div className={'m-auto mb-[100px] flex w-[90%] max-w-[1400px] justify-center sm:justify-end '}>
146
+ <Link href={'/lawyer' + queryStr}>
147
+ <div className={'flex w-[10em] items-center justify-between rounded-[34px] border-[1px] border-solid border-[#ddd] bg-[#113461] px-6 py-4 text-[20px] font-bold text-[#fff] sm:w-[232px] '}>
148
+ 변호사 더보기
149
+ <Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/Arrow_Right_LG.svg'} alt={''} title={''} width={36} height={36} className={'h-[30px] w-auto'}/>
150
+ </div>
151
+ </Link>
152
+ </div>
153
+ </div>
154
+ </section>)}
133
155
  </section>) : null;
134
156
  };
135
157
  export default Detail;
@@ -13,6 +13,7 @@ import MobileSpeciality from './component/MobileSpeciality';
13
13
  import Introduce from './component/Introduce';
14
14
  import MobileRelatedPage from './component/MobileRelatedPage';
15
15
  import { bodyFetch, lawyerCode } from '../../../lib';
16
+ import { Wrapper } from '../../index';
16
17
 
17
18
  interface IDetailProps {
18
19
  lawyerInfo: ILawyer;
@@ -21,9 +22,18 @@ interface IDetailProps {
21
22
  certiList: ILawyerCerti[];
22
23
  codeList: ICommonCode[];
23
24
  centerCode: string;
25
+ isUseWrapper?: boolean;
24
26
  }
25
27
 
26
- const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, centerCode }: IDetailProps) => {
28
+ const Detail = ({
29
+ lawyerInfo,
30
+ careerList,
31
+ certiList,
32
+ codeList,
33
+ speciality,
34
+ centerCode,
35
+ isUseWrapper
36
+ }: IDetailProps) => {
27
37
  const searchParams = useSearchParams();
28
38
  const targetRefs = {
29
39
  career: useRef(null),
@@ -132,8 +142,8 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, cente
132
142
  integrateSearch={integrateSearch}
133
143
  />
134
144
 
135
- <section className={'mx-auto max-w-screen-2xl '}>
136
- <div className={'relative mx-auto w-[90%]'}>
145
+ {isUseWrapper ? (
146
+ <Wrapper>
137
147
  {/*모바일 업무사례, 언론보도, 후기*/}
138
148
  <MobileRelatedPage
139
149
  lawyerInfo={lawyerInfo}
@@ -183,8 +193,66 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, cente
183
193
  </div>
184
194
  </Link>
185
195
  </div>
186
- </div>
187
- </section>
196
+ </Wrapper>
197
+ ) : (
198
+ <section className={'mx-auto max-w-screen-2xl '}>
199
+ <div className={'relative mx-auto w-[90%]'}>
200
+ {/*모바일 업무사례, 언론보도, 후기*/}
201
+ <MobileRelatedPage
202
+ lawyerInfo={lawyerInfo}
203
+ successList={successList}
204
+ broadcastList={broadcastList}
205
+ reviewList={reviewList}
206
+ isLawyer={isLawyer}
207
+ />
208
+
209
+ {/*모바일 상단 버튼*/}
210
+ <MobileTabButton targetRefs={targetRefs} />
211
+
212
+ {/*pc 상단 버튼*/}
213
+ <PcTabButton
214
+ targetTitleRefs={targetTitleRefs}
215
+ targetRefs={targetRefs}
216
+ careerList={careerList}
217
+ />
218
+
219
+ {/* 경력 리스트 */}
220
+ <CareerList
221
+ integrateSearch={integrateSearch}
222
+ successList={successList}
223
+ broadcastList={broadcastList}
224
+ reviewList={reviewList}
225
+ careerList={careerList}
226
+ lawyerInfo={lawyerInfo}
227
+ speciality={speciality}
228
+ codeList={codeList}
229
+ certiList={certiList}
230
+ targetRefs={targetRefs}
231
+ targetTitleRefs={targetTitleRefs}
232
+ />
233
+
234
+ <div className={'m-auto mb-[100px] flex w-[90%] max-w-[1400px] justify-center sm:justify-end '}>
235
+ <Link href={'/lawyer' + queryStr}>
236
+ <div
237
+ className={
238
+ 'flex w-[10em] items-center justify-between rounded-[34px] border-[1px] border-solid border-[#ddd] bg-[#113461] px-6 py-4 text-[20px] font-bold text-[#fff] sm:w-[232px] '
239
+ }
240
+ >
241
+ 변호사 더보기
242
+ <Image
243
+ src={'https://d1tgonli21s4df.cloudfront.net/lawyer/Arrow_Right_LG.svg'}
244
+ alt={''}
245
+ title={''}
246
+ width={36}
247
+ height={36}
248
+ className={'h-[30px] w-auto'}
249
+ />
250
+ </div>
251
+ </Link>
252
+ </div>
253
+ </div>
254
+ </section>
255
+ )}
188
256
  </section>
189
257
  ) : null;
190
258
  };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ILawyer } from '../ILawyerDetailTypes';
3
+ declare const BasicInfoWrapper: ({ lawyerInfo, codeList, centerCode, integrateSearch }: {
4
+ lawyerInfo: ILawyer;
5
+ codeList: any[];
6
+ integrateSearch: string;
7
+ centerCode: string;
8
+ }) => React.JSX.Element;
9
+ export default BasicInfoWrapper;
@@ -0,0 +1,146 @@
1
+ import Image from 'next/image';
2
+ import Link from 'next/link';
3
+ import React, { useEffect, useState } from 'react';
4
+ import { insert } from '../../../../lib/conversion';
5
+ import * as gtag from '../../../../lib/gtag';
6
+ import mobile from 'is-mobile';
7
+ import { searchColorLawyerText } from '../../../common/integrate';
8
+ const BasicInfoWrapper = ({ lawyerInfo, codeList, centerCode, integrateSearch }) => {
9
+ var _a, _b;
10
+ const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
11
+ const lawyerImagePath = imagePath + '/upload/lawyer';
12
+ const [isMobile, setIsMobile] = useState(false);
13
+ //lawyerInfo l_ablilty 길이가 너무 긴경우
14
+ const [cssFlag, setCssFlag] = useState(false);
15
+ const handleOnClickLawyerTel = () => {
16
+ if (isMobile) {
17
+ insert('lawyer_tel', isMobile);
18
+ gtag.event({
19
+ action: 'lawyer_tel',
20
+ category: 'tel',
21
+ label: '변호사 전화버튼',
22
+ value: '1'
23
+ });
24
+ try {
25
+ // @ts-ignore
26
+ AM_PL('/lawyer_tel');
27
+ }
28
+ catch (e) { }
29
+ }
30
+ };
31
+ useEffect(() => {
32
+ const is_mobile = mobile();
33
+ setIsMobile(is_mobile);
34
+ }, []);
35
+ useEffect(() => {
36
+ var _a;
37
+ const data = ((_a = lawyerInfo.l_sort_center) === null || _a === void 0 ? void 0 : _a.includes(centerCode)) && lawyerInfo.careers_summary
38
+ ? lawyerInfo.careers_summary
39
+ : lawyerInfo.l_ability;
40
+ if (data) {
41
+ const flag1 = data.length > 30;
42
+ const flag2 = (data === null || data === void 0 ? void 0 : data.split('\n').length) > 1 && (data === null || data === void 0 ? void 0 : data.split('\n')[0].length) > 14;
43
+ setCssFlag(flag1 || flag2);
44
+ }
45
+ }, [lawyerInfo]);
46
+ return (<div className={'relative w-full pb-[120px] max-md:pb-0'}>
47
+ {/*#F8F8F8 배경 768px부터 hidden*/}
48
+ <div className={'absolute bottom-0 h-[386px] w-full bg-[#F8F8F8] max-md:hidden'}></div>
49
+
50
+ <div className={'relative mx-auto max-w-screen-2xl'}>
51
+ <div className={'relative mx-auto h-[630px] w-[90%] max-xl:h-[580px] max-lg:h-[500px] max-md2:h-[450px] max-md:w-full max-xs:h-[360px]'}>
52
+ <Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc.webp'} alt={'변호사 리스트 배경'} fill className={'object-cover max-sm:hidden'}/>
53
+ <Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc.webp'} alt={'변호사 리스트 배경'} fill className={'object-cover sm:hidden'}/>
54
+ {/*변호사 이미지*/}
55
+ <div className={'absolute bottom-0 left-[50px] h-[569px] w-[515px] overflow-hidden max-xl:h-[510px] max-lg:h-[450px] max-md:left-1/2 max-md:h-[400px] max-md:-translate-x-1/2 max-xs:h-[317px] max-xs:w-[286px]'}>
56
+ <Image src={`${lawyerImagePath}/${lawyerInfo.nukki}`} alt={lawyerInfo.l_name + ' 변호사'} title={lawyerInfo.l_name + ' 변호사'} unoptimized={true} priority={true} sizes="(max-width: 700px)" fill className={'translate-y-7 scale-110 object-contain max-xl:translate-y-5 max-md:object-center max-xs:translate-y-3'}/>
57
+ </div>
58
+ {/*h1 sr_only*/}
59
+ <h1 className={'sr-only'}>
60
+ {lawyerInfo.l_name}{' '}
61
+ {codeList.filter((item) => item.code === lawyerInfo.lawyer_code)[0].code_name}
62
+ </h1>
63
+ {/*이름 pc*/}
64
+ <p className={'absolute bottom-[128px] right-[100px] z-10 text-right max-xl:bottom-[100px] max-lg:bottom-20 max-lg:right-20 max-md2:bottom-[60px] max-md2:right-[60px] max-md:hidden'}>
65
+ <span className={'mb-1 block text-[70px] font-[800] leading-[1.14] tracking-[-0.9px] max-xl:text-[64px] max-lg:text-[60px] max-md2:mb-0 max-md2:text-[54px] max-xs:text-[40px] '}>
66
+ {searchColorLawyerText(lawyerInfo.l_name, integrateSearch)}
67
+ </span>
68
+ {lawyerInfo.l_position ? (<span className={'text-[28px] font-[500] leading-[1.42] tracking-[-0.7px] ' +
69
+ 'max-xl:text-[26px] ' +
70
+ 'max-lg:text-[24px] ' +
71
+ 'max-md2:text-[22px] '}>
72
+ &nbsp;
73
+ {searchColorLawyerText(lawyerInfo.l_position, integrateSearch)}
74
+ </span>) : (<></>)}
75
+ </p>
76
+ {/*lawyer_code, l_ability, tel pc*/}
77
+ <div className={'absolute bottom-[-50px] right-10 z-10 grid w-full grid-cols-3 place-items-center bg-[#1E395C] text-center text-[24px] leading-[1.25] tracking-[-0.9px] text-white ' +
78
+ 'tracking-[-0.9px] ' +
79
+ (cssFlag
80
+ ? 'h-[100px] max-w-[1050px] max-xl:h-[110px] max-xl:max-w-[820px] max-lg:h-[100px] max-lg:max-w-[700px] max-md2:h-[90px] max-md2:max-w-[640px] '
81
+ : 'h-[100px] max-w-[900px] max-xl:h-[90px] max-xl:max-w-[800px] max-lg:h-[80px] max-lg:max-w-[700px] max-md2:h-[75px] max-md2:max-w-[640px] ') +
82
+ 'max-xl:text-[22px] ' +
83
+ ' max-lg:text-[20px] ' +
84
+ 'max-md2:right-5 max-md2:text-[18px] ' +
85
+ 'max-md:hidden'}>
86
+ <p className={'relative w-full font-[800]'}>
87
+ &nbsp;
88
+ {searchColorLawyerText(codeList.filter((item) => item.code === lawyerInfo.lawyer_code)[0].code_name, integrateSearch)}
89
+ <span className={'absolute right-0 top-1/2 block h-[50px] w-[2px] -translate-y-1/2 bg-white bg-opacity-20'}></span>
90
+ </p>
91
+ <h2 className={(cssFlag ? 'break-keep px-1 ' : 'whitespace-pre-wrap break-keep px-3 ') +
92
+ 'relative w-full font-[500]'}>
93
+ {searchColorLawyerText(((_a = lawyerInfo.l_sort_center) === null || _a === void 0 ? void 0 : _a.includes(centerCode)) && lawyerInfo.careers_summary
94
+ ? lawyerInfo.careers_summary
95
+ : lawyerInfo.l_ability, integrateSearch)}
96
+
97
+ <span className={'absolute right-0 top-1/2 block h-[50px] w-[2px] -translate-y-1/2 bg-white bg-opacity-20'}></span>
98
+ </h2>
99
+ <p className={'flex w-full items-center justify-center gap-2 font-[700]'}>
100
+ {lawyerInfo.l_tel && (<Link href={'tel:' + lawyerInfo.l_tel} onClick={handleOnClickLawyerTel} aria-label={lawyerInfo.l_name + '변호사에게 전화하기 ' + lawyerInfo.l_tel}>
101
+ T. {searchColorLawyerText(lawyerInfo.l_tel, integrateSearch)}
102
+ </Link>)}
103
+ {lawyerInfo.l_email ? (<Link href={'/mail?lawyer=' + lawyerInfo.l_name} rel={'nofollow'} className={'block w-fit'} aria-label={lawyerInfo.l_name + '변호사에게 메일보내기 ' + lawyerInfo.l_email}>
104
+ <Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/email_icon.webp'} alt={'이메일'} width={64} height={64} className={'w-[38px] max-xl:w-[32px] max-lg:w-[30px] max-xs:w-[26px]'}/>
105
+ </Link>) : (<></>)}
106
+ </p>
107
+ </div>
108
+ </div>
109
+ </div>
110
+
111
+ {/*이름 mobile*/}
112
+ <p className={'mx-auto mt-4 w-[90%] md:hidden'}>
113
+ <span className={'text-[50px] font-[800] leading-[1.14] tracking-[-0.9px] max-md:text-[46px] max-xs:text-[40px] '}>
114
+ {searchColorLawyerText(lawyerInfo.l_name, integrateSearch)}
115
+ </span>
116
+ {lawyerInfo.l_position ? (<span className={'text-[22px] font-[600] leading-[1.42] tracking-[-0.7px] max-xs:text-[20px] '}>
117
+ &nbsp;
118
+ {searchColorLawyerText(lawyerInfo.l_position, integrateSearch)}
119
+ </span>) : (<></>)}
120
+ </p>
121
+
122
+ {/*lawyer_code, l_ability, tel mobile*/}
123
+ <div className={'mt-[18px] flex h-[150px] w-[70%] min-w-[340px] flex-col justify-between bg-[#1E395C] px-5 py-[22px] text-[18px] leading-[1.25] tracking-[-0.9px] text-white md:hidden'}>
124
+ <p className={'font-[800]'}>
125
+ {searchColorLawyerText(codeList.filter((item) => item.code === lawyerInfo.lawyer_code)[0].code_name, integrateSearch)}
126
+ </p>
127
+ <p className={'font-[500] max-2sm:whitespace-pre-wrap'}>
128
+ {searchColorLawyerText(((_b = lawyerInfo.l_sort_center) === null || _b === void 0 ? void 0 : _b.includes(centerCode)) && lawyerInfo.careers_summary
129
+ ? lawyerInfo.careers_summary
130
+ : lawyerInfo.l_ability, integrateSearch)}
131
+ </p>
132
+ <p className={'flex items-center gap-2'}>
133
+ {lawyerInfo.l_tel && (<Link href={'tel:' + lawyerInfo.l_tel} onClick={handleOnClickLawyerTel} className={'text-[16px] '} aria-label={lawyerInfo.l_name + '변호사에게 전화하기 ' + lawyerInfo.l_tel}>
134
+ T.{' '}
135
+ <span className={'font-[600] underline underline-offset-[6px]'}>
136
+ {searchColorLawyerText(lawyerInfo.l_tel, integrateSearch)}
137
+ </span>
138
+ </Link>)}
139
+ {lawyerInfo.l_email ? (<Link href={'/mail?lawyer=' + lawyerInfo.l_name} rel={'nofollow'} className={'block w-fit'} aria-label={lawyerInfo.l_name + '변호사에게 메일보내기 ' + lawyerInfo.l_email}>
140
+ <Image src={'/images/lawyer/email_icon.webp'} alt={'이메일'} width={64} height={64} className={'w-[38px] max-xl:w-[32px] max-lg:w-[30px] max-xs:w-[26px]'}/>
141
+ </Link>) : (<></>)}
142
+ </p>
143
+ </div>
144
+ </div>);
145
+ };
146
+ export default BasicInfoWrapper;
@@ -0,0 +1,291 @@
1
+ import Image from 'next/image';
2
+ import Link from 'next/link';
3
+ import React, { useEffect, useState } from 'react';
4
+ import { insert } from '../../../../lib/conversion';
5
+ import * as gtag from '../../../../lib/gtag';
6
+ import mobile from 'is-mobile';
7
+ import { ILawyer } from '../ILawyerDetailTypes';
8
+ import { searchColorLawyerText } from '../../../common/integrate';
9
+
10
+ const BasicInfoWrapper = ({
11
+ lawyerInfo,
12
+ codeList,
13
+ centerCode,
14
+ integrateSearch
15
+ }: {
16
+ lawyerInfo: ILawyer;
17
+ codeList: any[];
18
+ integrateSearch: string;
19
+ centerCode: string;
20
+ }) => {
21
+ const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
22
+ const lawyerImagePath: string = imagePath + '/upload/lawyer';
23
+ const [isMobile, setIsMobile] = useState<boolean>(false);
24
+ //lawyerInfo l_ablilty 길이가 너무 긴경우
25
+ const [cssFlag, setCssFlag] = useState<boolean>(false);
26
+
27
+ const handleOnClickLawyerTel = () => {
28
+ if (isMobile) {
29
+ insert('lawyer_tel', isMobile);
30
+
31
+ gtag.event({
32
+ action: 'lawyer_tel',
33
+ category: 'tel',
34
+ label: '변호사 전화버튼',
35
+ value: '1'
36
+ });
37
+
38
+ try {
39
+ // @ts-ignore
40
+ AM_PL('/lawyer_tel');
41
+ } catch (e) {}
42
+ }
43
+ };
44
+
45
+ useEffect(() => {
46
+ const is_mobile = mobile();
47
+ setIsMobile(is_mobile);
48
+ }, []);
49
+
50
+ useEffect(() => {
51
+ const data =
52
+ lawyerInfo.l_sort_center?.includes(centerCode) && lawyerInfo.careers_summary
53
+ ? lawyerInfo.careers_summary
54
+ : lawyerInfo.l_ability;
55
+ if (data) {
56
+ const flag1: boolean = data.length > 30;
57
+ const flag2: boolean = data?.split('\n').length > 1 && data?.split('\n')[0].length > 14;
58
+ setCssFlag(flag1 || flag2);
59
+ }
60
+ }, [lawyerInfo]);
61
+ return (
62
+ <div className={'relative w-full pb-[120px] max-md:pb-0'}>
63
+ {/*#F8F8F8 배경 768px부터 hidden*/}
64
+ <div className={'absolute bottom-0 h-[386px] w-full bg-[#F8F8F8] max-md:hidden'}></div>
65
+
66
+ <div className={'relative mx-auto max-w-screen-2xl'}>
67
+ <div
68
+ className={
69
+ 'relative mx-auto h-[630px] w-[90%] max-xl:h-[580px] max-lg:h-[500px] max-md2:h-[450px] max-md:w-full max-xs:h-[360px]'
70
+ }
71
+ >
72
+ <Image
73
+ src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc.webp'}
74
+ alt={'변호사 리스트 배경'}
75
+ fill
76
+ className={'object-cover max-sm:hidden'}
77
+ />
78
+ <Image
79
+ src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc.webp'}
80
+ alt={'변호사 리스트 배경'}
81
+ fill
82
+ className={'object-cover sm:hidden'}
83
+ />
84
+ {/*변호사 이미지*/}
85
+ <div
86
+ className={
87
+ 'absolute bottom-0 left-[50px] h-[569px] w-[515px] overflow-hidden max-xl:h-[510px] max-lg:h-[450px] max-md:left-1/2 max-md:h-[400px] max-md:-translate-x-1/2 max-xs:h-[317px] max-xs:w-[286px]'
88
+ }
89
+ >
90
+ <Image
91
+ src={`${lawyerImagePath}/${lawyerInfo.nukki}`}
92
+ alt={lawyerInfo.l_name + ' 변호사'}
93
+ title={lawyerInfo.l_name + ' 변호사'}
94
+ unoptimized={true}
95
+ priority={true}
96
+ sizes="(max-width: 700px)"
97
+ fill
98
+ className={
99
+ 'translate-y-7 scale-110 object-contain max-xl:translate-y-5 max-md:object-center max-xs:translate-y-3'
100
+ }
101
+ />
102
+ </div>
103
+ {/*h1 sr_only*/}
104
+ <h1 className={'sr-only'}>
105
+ {lawyerInfo.l_name}{' '}
106
+ {codeList.filter((item: any) => item.code === lawyerInfo.lawyer_code)[0].code_name}
107
+ </h1>
108
+ {/*이름 pc*/}
109
+ <p
110
+ className={
111
+ 'absolute bottom-[128px] right-[100px] z-10 text-right max-xl:bottom-[100px] max-lg:bottom-20 max-lg:right-20 max-md2:bottom-[60px] max-md2:right-[60px] max-md:hidden'
112
+ }
113
+ >
114
+ <span
115
+ className={
116
+ 'mb-1 block text-[70px] font-[800] leading-[1.14] tracking-[-0.9px] max-xl:text-[64px] max-lg:text-[60px] max-md2:mb-0 max-md2:text-[54px] max-xs:text-[40px] '
117
+ }
118
+ >
119
+ {searchColorLawyerText(lawyerInfo.l_name, integrateSearch)}
120
+ </span>
121
+ {lawyerInfo.l_position ? (
122
+ <span
123
+ className={
124
+ 'text-[28px] font-[500] leading-[1.42] tracking-[-0.7px] ' +
125
+ 'max-xl:text-[26px] ' +
126
+ 'max-lg:text-[24px] ' +
127
+ 'max-md2:text-[22px] '
128
+ }
129
+ >
130
+ &nbsp;
131
+ {searchColorLawyerText(lawyerInfo.l_position, integrateSearch)}
132
+ </span>
133
+ ) : (
134
+ <></>
135
+ )}
136
+ </p>
137
+ {/*lawyer_code, l_ability, tel pc*/}
138
+ <div
139
+ className={
140
+ 'absolute bottom-[-50px] right-10 z-10 grid w-full grid-cols-3 place-items-center bg-[#1E395C] text-center text-[24px] leading-[1.25] tracking-[-0.9px] text-white ' +
141
+ 'tracking-[-0.9px] ' +
142
+ (cssFlag
143
+ ? 'h-[100px] max-w-[1050px] max-xl:h-[110px] max-xl:max-w-[820px] max-lg:h-[100px] max-lg:max-w-[700px] max-md2:h-[90px] max-md2:max-w-[640px] '
144
+ : 'h-[100px] max-w-[900px] max-xl:h-[90px] max-xl:max-w-[800px] max-lg:h-[80px] max-lg:max-w-[700px] max-md2:h-[75px] max-md2:max-w-[640px] ') +
145
+ 'max-xl:text-[22px] ' +
146
+ ' max-lg:text-[20px] ' +
147
+ 'max-md2:right-5 max-md2:text-[18px] ' +
148
+ 'max-md:hidden'
149
+ }
150
+ >
151
+ <p className={'relative w-full font-[800]'}>
152
+ &nbsp;
153
+ {searchColorLawyerText(
154
+ codeList.filter((item: any) => item.code === lawyerInfo.lawyer_code)[0].code_name,
155
+ integrateSearch
156
+ )}
157
+ <span
158
+ className={
159
+ 'absolute right-0 top-1/2 block h-[50px] w-[2px] -translate-y-1/2 bg-white bg-opacity-20'
160
+ }
161
+ ></span>
162
+ </p>
163
+ <h2
164
+ className={
165
+ (cssFlag ? 'break-keep px-1 ' : 'whitespace-pre-wrap break-keep px-3 ') +
166
+ 'relative w-full font-[500]'
167
+ }
168
+ >
169
+ {searchColorLawyerText(
170
+ lawyerInfo.l_sort_center?.includes(centerCode) && lawyerInfo.careers_summary
171
+ ? lawyerInfo.careers_summary
172
+ : lawyerInfo.l_ability,
173
+ integrateSearch
174
+ )}
175
+
176
+ <span
177
+ className={
178
+ 'absolute right-0 top-1/2 block h-[50px] w-[2px] -translate-y-1/2 bg-white bg-opacity-20'
179
+ }
180
+ ></span>
181
+ </h2>
182
+ <p className={'flex w-full items-center justify-center gap-2 font-[700]'}>
183
+ {lawyerInfo.l_tel && (
184
+ <Link
185
+ href={'tel:' + lawyerInfo.l_tel}
186
+ onClick={handleOnClickLawyerTel}
187
+ aria-label={lawyerInfo.l_name + '변호사에게 전화하기 ' + lawyerInfo.l_tel}
188
+ >
189
+ T. {searchColorLawyerText(lawyerInfo.l_tel, integrateSearch)}
190
+ </Link>
191
+ )}
192
+ {lawyerInfo.l_email ? (
193
+ <Link
194
+ href={'/mail?lawyer=' + lawyerInfo.l_name}
195
+ rel={'nofollow'}
196
+ className={'block w-fit'}
197
+ aria-label={lawyerInfo.l_name + '변호사에게 메일보내기 ' + lawyerInfo.l_email}
198
+ >
199
+ <Image
200
+ src={'https://d1tgonli21s4df.cloudfront.net/lawyer/email_icon.webp'}
201
+ alt={'이메일'}
202
+ width={64}
203
+ height={64}
204
+ className={'w-[38px] max-xl:w-[32px] max-lg:w-[30px] max-xs:w-[26px]'}
205
+ />
206
+ </Link>
207
+ ) : (
208
+ <></>
209
+ )}
210
+ </p>
211
+ </div>
212
+ </div>
213
+ </div>
214
+
215
+ {/*이름 mobile*/}
216
+ <p className={'mx-auto mt-4 w-[90%] md:hidden'}>
217
+ <span
218
+ className={
219
+ 'text-[50px] font-[800] leading-[1.14] tracking-[-0.9px] max-md:text-[46px] max-xs:text-[40px] '
220
+ }
221
+ >
222
+ {searchColorLawyerText(lawyerInfo.l_name, integrateSearch)}
223
+ </span>
224
+ {lawyerInfo.l_position ? (
225
+ <span className={'text-[22px] font-[600] leading-[1.42] tracking-[-0.7px] max-xs:text-[20px] '}>
226
+ &nbsp;
227
+ {searchColorLawyerText(lawyerInfo.l_position, integrateSearch)}
228
+ </span>
229
+ ) : (
230
+ <></>
231
+ )}
232
+ </p>
233
+
234
+ {/*lawyer_code, l_ability, tel mobile*/}
235
+ <div
236
+ className={
237
+ 'mt-[18px] flex h-[150px] w-[70%] min-w-[340px] flex-col justify-between bg-[#1E395C] px-5 py-[22px] text-[18px] leading-[1.25] tracking-[-0.9px] text-white md:hidden'
238
+ }
239
+ >
240
+ <p className={'font-[800]'}>
241
+ {searchColorLawyerText(
242
+ codeList.filter((item: any) => item.code === lawyerInfo.lawyer_code)[0].code_name,
243
+ integrateSearch
244
+ )}
245
+ </p>
246
+ <p className={'font-[500] max-2sm:whitespace-pre-wrap'}>
247
+ {searchColorLawyerText(
248
+ lawyerInfo.l_sort_center?.includes(centerCode) && lawyerInfo.careers_summary
249
+ ? lawyerInfo.careers_summary
250
+ : lawyerInfo.l_ability,
251
+ integrateSearch
252
+ )}
253
+ </p>
254
+ <p className={'flex items-center gap-2'}>
255
+ {lawyerInfo.l_tel && (
256
+ <Link
257
+ href={'tel:' + lawyerInfo.l_tel}
258
+ onClick={handleOnClickLawyerTel}
259
+ className={'text-[16px] '}
260
+ aria-label={lawyerInfo.l_name + '변호사에게 전화하기 ' + lawyerInfo.l_tel}
261
+ >
262
+ T.{' '}
263
+ <span className={'font-[600] underline underline-offset-[6px]'}>
264
+ {searchColorLawyerText(lawyerInfo.l_tel, integrateSearch)}
265
+ </span>
266
+ </Link>
267
+ )}
268
+ {lawyerInfo.l_email ? (
269
+ <Link
270
+ href={'/mail?lawyer=' + lawyerInfo.l_name}
271
+ rel={'nofollow'}
272
+ className={'block w-fit'}
273
+ aria-label={lawyerInfo.l_name + '변호사에게 메일보내기 ' + lawyerInfo.l_email}
274
+ >
275
+ <Image
276
+ src={'/images/lawyer/email_icon.webp'}
277
+ alt={'이메일'}
278
+ width={64}
279
+ height={64}
280
+ className={'w-[38px] max-xl:w-[32px] max-lg:w-[30px] max-xs:w-[26px]'}
281
+ />
282
+ </Link>
283
+ ) : (
284
+ <></>
285
+ )}
286
+ </p>
287
+ </div>
288
+ </div>
289
+ );
290
+ };
291
+ export default BasicInfoWrapper;