@daeryun/dr_components 0.5.33 → 0.5.35
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/components/page/LawyerDetail/LawyerDetail.jsx +25 -43
- package/dist/components/page/LawyerDetail/LawyerDetail.tsx +63 -111
- package/dist/components/page/LawyerDetail/component/BasicInfo.d.ts +2 -1
- package/dist/components/page/LawyerDetail/component/BasicInfo.jsx +8 -5
- package/dist/components/page/LawyerDetail/component/BasicInfo.tsx +15 -4
- package/dist/components/page/LawyerDetail/component/Introduce.d.ts +2 -1
- package/dist/components/page/LawyerDetail/component/Introduce.jsx +17 -13
- package/dist/components/page/LawyerDetail/component/Introduce.tsx +50 -33
- package/dist/components/page/LawyerDetail/component/MobileSpeciality.d.ts +2 -1
- package/dist/components/page/LawyerDetail/component/MobileSpeciality.jsx +37 -33
- package/dist/components/page/LawyerDetail/component/MobileSpeciality.tsx +93 -81
- package/dist/styles/globals.css +9 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/components/page/LawyerDetail/component/BasicInfoWrapper.d.ts +0 -9
- package/dist/components/page/LawyerDetail/component/BasicInfoWrapper.jsx +0 -146
- package/dist/components/page/LawyerDetail/component/BasicInfoWrapper.tsx +0 -291
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,146 +0,0 @@
|
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -1,291 +0,0 @@
|
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|