@daeryun/dr_components 0.7.63 → 0.7.68
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/Model/YoutubeLawyerModal.d.ts +6 -0
- package/dist/components/Model/YoutubeLawyerModal.jsx +35 -0
- package/dist/components/Model/YoutubeLawyerModal.tsx +64 -0
- package/dist/components/common/integrate/index.d.ts +1 -1
- package/dist/components/page/LawyerDetail/ILawyerDetailTypes.d.ts +1 -0
- package/dist/components/page/LawyerDetail/ILawyerDetailTypes.tsx +1 -0
- package/dist/components/page/LawyerDetail/LawyerDetail.stories.jsx +4 -2
- package/dist/components/page/LawyerDetail/LawyerDetail.stories.tsx +4 -2
- package/dist/components/page/LawyerDetail/component/BasicInfo.jsx +102 -76
- package/dist/components/page/LawyerDetail/component/BasicInfo.tsx +265 -197
- package/dist/styles/globals.css +306 -294
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -1
|
@@ -7,7 +7,7 @@ import mobile from 'is-mobile';
|
|
|
7
7
|
import { ILawyer } from '../ILawyerDetailTypes';
|
|
8
8
|
import { searchColorLawyerText } from '../../../common/integrate';
|
|
9
9
|
import { Wrapper } from '../../../index';
|
|
10
|
-
|
|
10
|
+
import YoutubeLawyerModal from '../../../../components/Model/YoutubeLawyerModal';
|
|
11
11
|
const BasicInfo = ({
|
|
12
12
|
lawyerInfo,
|
|
13
13
|
codeList,
|
|
@@ -26,6 +26,8 @@ const BasicInfo = ({
|
|
|
26
26
|
const [isMobile, setIsMobile] = useState<boolean>(false);
|
|
27
27
|
//lawyerInfo l_ablilty 길이가 너무 긴경우
|
|
28
28
|
const [cssFlag, setCssFlag] = useState<boolean>(false);
|
|
29
|
+
const [modalOn, setModalOn] = useState<boolean>(false);
|
|
30
|
+
|
|
29
31
|
const isEven = useMemo(() => {
|
|
30
32
|
return Number(lawyerInfo.l_id.replace('tmp_', '')) % 2 === 0;
|
|
31
33
|
}, [lawyerInfo]);
|
|
@@ -77,235 +79,301 @@ const BasicInfo = ({
|
|
|
77
79
|
};
|
|
78
80
|
|
|
79
81
|
return (
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
82
|
+
<>
|
|
83
|
+
<YoutubeLawyerModal
|
|
84
|
+
onClick={() => {
|
|
85
|
+
setModalOn(false);
|
|
86
|
+
}}
|
|
87
|
+
isYoutubeOn={modalOn}
|
|
88
|
+
youtubeId={lawyerInfo.l_introduce_shorts}
|
|
89
|
+
/>
|
|
83
90
|
|
|
84
|
-
<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
>
|
|
91
|
-
<Image
|
|
92
|
-
src={`https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc${fixBg ? '3' : isEven ? '' : '2'}.webp`}
|
|
93
|
-
alt={'변호사 리스트 배경'}
|
|
94
|
-
fill
|
|
95
|
-
quality={100}
|
|
96
|
-
className={'object-cover max-sm:hidden'}
|
|
97
|
-
/>
|
|
98
|
-
<Image
|
|
99
|
-
src={`https://d1tgonli21s4df.cloudfront.net/lawyer/bg_mo${fixBg ? '3' : isEven ? '' : '2'}.webp`}
|
|
100
|
-
alt={'변호사 리스트 배경'}
|
|
101
|
-
fill
|
|
102
|
-
quality={100}
|
|
103
|
-
className={'object-cover sm:hidden'}
|
|
104
|
-
/>
|
|
105
|
-
{/*변호사 이미지*/}
|
|
91
|
+
<div className={'relative w-full pb-[120px] max-md:pb-0'}>
|
|
92
|
+
{/*#F8F8F8 배경 768px부터 hidden*/}
|
|
93
|
+
<div className={'absolute bottom-0 h-[386px] w-full bg-[#F8F8F8] max-md:hidden'}></div>
|
|
94
|
+
|
|
95
|
+
<Container isUseWrapper={isUseWrapper}>
|
|
106
96
|
<div
|
|
107
97
|
className={
|
|
108
|
-
'
|
|
98
|
+
'relative mx-auto h-[630px] max-xl:h-[580px] max-lg:h-[500px] max-md2:h-[450px] max-md:w-full max-xs:h-[360px] ' +
|
|
99
|
+
(isUseWrapper ? '' : ' w-[90%] ')
|
|
109
100
|
}
|
|
110
101
|
>
|
|
111
102
|
<Image
|
|
112
|
-
src={
|
|
113
|
-
alt={
|
|
114
|
-
title={lawyerInfo.l_name + ' 변호사'}
|
|
115
|
-
unoptimized={true}
|
|
116
|
-
priority={true}
|
|
117
|
-
sizes="(max-width: 700px)"
|
|
103
|
+
src={`https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc${fixBg ? '3' : isEven ? '' : '2'}.webp`}
|
|
104
|
+
alt={'변호사 리스트 배경'}
|
|
118
105
|
fill
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
106
|
+
quality={100}
|
|
107
|
+
className={'object-cover max-sm:hidden'}
|
|
122
108
|
/>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
'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'
|
|
133
|
-
}
|
|
134
|
-
>
|
|
135
|
-
<span
|
|
109
|
+
<Image
|
|
110
|
+
src={`https://d1tgonli21s4df.cloudfront.net/lawyer/bg_mo${fixBg ? '3' : isEven ? '' : '2'}.webp`}
|
|
111
|
+
alt={'변호사 리스트 배경'}
|
|
112
|
+
fill
|
|
113
|
+
quality={100}
|
|
114
|
+
className={'object-cover sm:hidden'}
|
|
115
|
+
/>
|
|
116
|
+
{/*변호사 이미지*/}
|
|
117
|
+
<div
|
|
136
118
|
className={
|
|
137
|
-
'
|
|
119
|
+
'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]'
|
|
138
120
|
}
|
|
139
121
|
>
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
'max-md2:text-[22px] '
|
|
149
|
-
}
|
|
150
|
-
>
|
|
151
|
-
|
|
152
|
-
{searchColorLawyerText(lawyerInfo.l_position, integrateSearch)}
|
|
153
|
-
</span>
|
|
154
|
-
) : (
|
|
155
|
-
<></>
|
|
156
|
-
)}
|
|
157
|
-
</p>
|
|
158
|
-
{/*lawyer_code, l_ability, tel pc*/}
|
|
159
|
-
<div
|
|
160
|
-
className={
|
|
161
|
-
'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 ' +
|
|
162
|
-
'tracking-[-0.9px] ' +
|
|
163
|
-
(cssFlag
|
|
164
|
-
? 'h-[100px] max-w-[1050px] max-xl:h-[110px] max-xl:max-w-[800px] max-lg:h-[100px] max-lg:max-w-[700px] max-md2:h-[90px] max-md2:max-w-[640px] '
|
|
165
|
-
: '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] ') +
|
|
166
|
-
'max-xl:text-[22px] ' +
|
|
167
|
-
' max-lg:text-[20px] ' +
|
|
168
|
-
'max-md2:right-5 max-md2:text-[18px] ' +
|
|
169
|
-
'max-md:hidden'
|
|
170
|
-
}
|
|
171
|
-
>
|
|
172
|
-
<p className={'relative w-full font-[800]'}>
|
|
173
|
-
|
|
174
|
-
{searchColorLawyerText(
|
|
175
|
-
codeList.filter((item: any) => item.code === lawyerInfo.lawyer_code)[0].code_name,
|
|
176
|
-
integrateSearch
|
|
177
|
-
)}
|
|
178
|
-
<span
|
|
122
|
+
<Image
|
|
123
|
+
src={`${lawyerImagePath}/${lawyerInfo.nukki}`}
|
|
124
|
+
alt={lawyerInfo.l_name + ' 변호사'}
|
|
125
|
+
title={lawyerInfo.l_name + ' 변호사'}
|
|
126
|
+
unoptimized={true}
|
|
127
|
+
priority={true}
|
|
128
|
+
sizes="(max-width: 700px)"
|
|
129
|
+
fill
|
|
179
130
|
className={
|
|
180
|
-
'
|
|
131
|
+
'translate-y-7 scale-110 object-contain max-xl:translate-y-5 max-md:object-center max-xs:translate-y-3'
|
|
181
132
|
}
|
|
182
|
-
|
|
183
|
-
</
|
|
184
|
-
|
|
133
|
+
/>
|
|
134
|
+
</div>
|
|
135
|
+
{/*h1 sr_only*/}
|
|
136
|
+
<h1 className={'sr-only'}>
|
|
137
|
+
{lawyerInfo.l_name}{' '}
|
|
138
|
+
{codeList.filter((item: any) => item.code === lawyerInfo.lawyer_code)[0].code_name}
|
|
139
|
+
</h1>
|
|
140
|
+
{/*이름 pc*/}
|
|
141
|
+
<div
|
|
185
142
|
className={
|
|
186
|
-
|
|
187
|
-
'relative w-full font-[500]'
|
|
143
|
+
'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'
|
|
188
144
|
}
|
|
189
145
|
>
|
|
190
|
-
{searchColorLawyerText(
|
|
191
|
-
lawyerInfo.l_sort_center?.includes(centerCode) && lawyerInfo.careers_summary
|
|
192
|
-
? lawyerInfo.careers_summary
|
|
193
|
-
: lawyerInfo.l_ability,
|
|
194
|
-
integrateSearch
|
|
195
|
-
)}
|
|
196
|
-
|
|
197
146
|
<span
|
|
198
147
|
className={
|
|
199
|
-
'
|
|
148
|
+
'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] '
|
|
200
149
|
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
{lawyerInfo.
|
|
205
|
-
<
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
150
|
+
>
|
|
151
|
+
{searchColorLawyerText(lawyerInfo.l_name, integrateSearch)}
|
|
152
|
+
</span>
|
|
153
|
+
{lawyerInfo.l_position ? (
|
|
154
|
+
<span
|
|
155
|
+
className={
|
|
156
|
+
'text-[28px] font-[500] leading-[1.42] tracking-[-0.7px] ' +
|
|
157
|
+
'max-xl:text-[26px] ' +
|
|
158
|
+
'max-lg:text-[24px] ' +
|
|
159
|
+
'max-md2:text-[22px] '
|
|
160
|
+
}
|
|
209
161
|
>
|
|
210
|
-
|
|
211
|
-
|
|
162
|
+
|
|
163
|
+
{searchColorLawyerText(lawyerInfo.l_position, integrateSearch)}
|
|
164
|
+
</span>
|
|
165
|
+
) : (
|
|
166
|
+
<></>
|
|
212
167
|
)}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
168
|
+
|
|
169
|
+
{lawyerInfo.l_introduce_shorts && (
|
|
170
|
+
<div
|
|
171
|
+
className={
|
|
172
|
+
'flex h-[49px] w-[189px] items-center justify-center gap-[4px] rounded-[24.5px] bg-[#fff] text-[22px] font-[600]'
|
|
173
|
+
}
|
|
174
|
+
onClick={() => {
|
|
175
|
+
setModalOn(true);
|
|
176
|
+
}}
|
|
219
177
|
>
|
|
178
|
+
{' '}
|
|
220
179
|
<Image
|
|
221
|
-
src={'
|
|
222
|
-
alt={'
|
|
223
|
-
width={
|
|
224
|
-
height={
|
|
225
|
-
className={'
|
|
180
|
+
src={'/images/youtube_logo.png'}
|
|
181
|
+
alt={'유튜브'}
|
|
182
|
+
width={50}
|
|
183
|
+
height={20}
|
|
184
|
+
className={'shrink-0ㄴ'}
|
|
226
185
|
/>
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
186
|
+
소개영상
|
|
187
|
+
<Image
|
|
188
|
+
src={'/images/youtube_arrow.png'}
|
|
189
|
+
alt={'유튜브'}
|
|
190
|
+
width={13}
|
|
191
|
+
height={14}
|
|
192
|
+
className={'h-[14px]'}
|
|
193
|
+
/>
|
|
194
|
+
</div>
|
|
230
195
|
)}
|
|
231
|
-
</
|
|
196
|
+
</div>
|
|
197
|
+
{/*lawyer_code, l_ability, tel pc*/}
|
|
198
|
+
<div
|
|
199
|
+
className={
|
|
200
|
+
'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 ' +
|
|
201
|
+
'tracking-[-0.9px] ' +
|
|
202
|
+
(cssFlag
|
|
203
|
+
? 'h-[100px] max-w-[1050px] max-xl:h-[110px] max-xl:max-w-[800px] max-lg:h-[100px] max-lg:max-w-[700px] max-md2:h-[90px] max-md2:max-w-[640px] '
|
|
204
|
+
: '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] ') +
|
|
205
|
+
'max-xl:text-[22px] ' +
|
|
206
|
+
' max-lg:text-[20px] ' +
|
|
207
|
+
'max-md2:right-5 max-md2:text-[18px] ' +
|
|
208
|
+
'max-md:hidden'
|
|
209
|
+
}
|
|
210
|
+
>
|
|
211
|
+
<p className={'relative w-full font-[800]'}>
|
|
212
|
+
|
|
213
|
+
{searchColorLawyerText(
|
|
214
|
+
codeList.filter((item: any) => item.code === lawyerInfo.lawyer_code)[0].code_name,
|
|
215
|
+
integrateSearch
|
|
216
|
+
)}
|
|
217
|
+
<span
|
|
218
|
+
className={
|
|
219
|
+
'absolute right-0 top-1/2 block h-[50px] w-[2px] -translate-y-1/2 bg-white bg-opacity-20'
|
|
220
|
+
}
|
|
221
|
+
></span>
|
|
222
|
+
</p>
|
|
223
|
+
<h2
|
|
224
|
+
className={
|
|
225
|
+
(cssFlag ? 'break-keep px-1 ' : 'whitespace-pre-wrap break-keep px-3 ') +
|
|
226
|
+
'relative w-full font-[500]'
|
|
227
|
+
}
|
|
228
|
+
>
|
|
229
|
+
{searchColorLawyerText(
|
|
230
|
+
lawyerInfo.l_sort_center?.includes(centerCode) && lawyerInfo.careers_summary
|
|
231
|
+
? lawyerInfo.careers_summary
|
|
232
|
+
: lawyerInfo.l_ability,
|
|
233
|
+
integrateSearch
|
|
234
|
+
)}
|
|
235
|
+
|
|
236
|
+
<span
|
|
237
|
+
className={
|
|
238
|
+
'absolute right-0 top-1/2 block h-[50px] w-[2px] -translate-y-1/2 bg-white bg-opacity-20'
|
|
239
|
+
}
|
|
240
|
+
></span>
|
|
241
|
+
</h2>
|
|
242
|
+
<p className={'flex w-full items-center justify-center gap-2 font-[700]'}>
|
|
243
|
+
{lawyerInfo.l_tel && (
|
|
244
|
+
<Link
|
|
245
|
+
href={'tel:' + lawyerInfo.l_tel}
|
|
246
|
+
onClick={handleOnClickLawyerTel}
|
|
247
|
+
aria-label={lawyerInfo.l_name + '변호사에게 전화하기 ' + lawyerInfo.l_tel}
|
|
248
|
+
>
|
|
249
|
+
T. {searchColorLawyerText(lawyerInfo.l_tel, integrateSearch)}
|
|
250
|
+
</Link>
|
|
251
|
+
)}
|
|
252
|
+
{lawyerInfo.l_email ? (
|
|
253
|
+
<Link
|
|
254
|
+
href={`${process.env.NEXT_PUBLIC_MAIN_DOMAIN}/mail?lawyer=${lawyerInfo.l_name}`}
|
|
255
|
+
rel={'nofollow'}
|
|
256
|
+
className={'block w-fit'}
|
|
257
|
+
aria-label={lawyerInfo.l_name + '변호사에게 메일보내기 ' + lawyerInfo.l_email}
|
|
258
|
+
>
|
|
259
|
+
<Image
|
|
260
|
+
src={'https://d1tgonli21s4df.cloudfront.net/lawyer/email_icon.webp'}
|
|
261
|
+
alt={'이메일'}
|
|
262
|
+
width={64}
|
|
263
|
+
height={64}
|
|
264
|
+
className={'w-[38px] max-xl:w-[32px] max-lg:w-[30px] max-xs:w-[26px]'}
|
|
265
|
+
/>
|
|
266
|
+
</Link>
|
|
267
|
+
) : (
|
|
268
|
+
<></>
|
|
269
|
+
)}
|
|
270
|
+
</p>
|
|
271
|
+
</div>
|
|
232
272
|
</div>
|
|
233
|
-
</
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
{searchColorLawyerText(lawyerInfo.l_name, integrateSearch)}
|
|
243
|
-
</span>
|
|
244
|
-
{lawyerInfo.l_position ? (
|
|
245
|
-
<span className={'text-[22px] font-[600] leading-[1.42] tracking-[-0.7px] max-xs:text-[20px] '}>
|
|
246
|
-
|
|
247
|
-
{searchColorLawyerText(lawyerInfo.l_position, integrateSearch)}
|
|
273
|
+
</Container>
|
|
274
|
+
{/*이름 mobile*/}
|
|
275
|
+
<div className={'mx-auto mt-4 md:hidden ' + (isUseWrapper ? 'max-md:px-10 max-2sm:px-5' : ' w-[90%] ')}>
|
|
276
|
+
<span
|
|
277
|
+
className={
|
|
278
|
+
'text-[50px] font-[800] leading-[1.14] tracking-[-0.9px] max-md:text-[46px] max-xs:text-[40px] '
|
|
279
|
+
}
|
|
280
|
+
>
|
|
281
|
+
{searchColorLawyerText(lawyerInfo.l_name, integrateSearch)}
|
|
248
282
|
</span>
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
className={
|
|
257
|
-
'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'
|
|
258
|
-
}
|
|
259
|
-
>
|
|
260
|
-
<p className={'font-[800]'}>
|
|
261
|
-
{searchColorLawyerText(
|
|
262
|
-
codeList.filter((item: any) => item.code === lawyerInfo.lawyer_code)[0].code_name,
|
|
263
|
-
integrateSearch
|
|
264
|
-
)}
|
|
265
|
-
</p>
|
|
266
|
-
<p className={'font-[500] max-2sm:whitespace-pre-wrap'}>
|
|
267
|
-
{searchColorLawyerText(
|
|
268
|
-
lawyerInfo.l_sort_center?.includes(centerCode) && lawyerInfo.careers_summary
|
|
269
|
-
? lawyerInfo.careers_summary
|
|
270
|
-
: lawyerInfo.l_ability,
|
|
271
|
-
integrateSearch
|
|
272
|
-
)}
|
|
273
|
-
</p>
|
|
274
|
-
<p className={'flex items-center gap-2'}>
|
|
275
|
-
{lawyerInfo.l_tel && (
|
|
276
|
-
<Link
|
|
277
|
-
href={'tel:' + lawyerInfo.l_tel}
|
|
278
|
-
onClick={handleOnClickLawyerTel}
|
|
279
|
-
className={'text-[16px] '}
|
|
280
|
-
aria-label={lawyerInfo.l_name + '변호사에게 전화하기 ' + lawyerInfo.l_tel}
|
|
281
|
-
>
|
|
282
|
-
T.{' '}
|
|
283
|
-
<span className={'font-[600] underline underline-offset-[6px]'}>
|
|
284
|
-
{searchColorLawyerText(lawyerInfo.l_tel, integrateSearch)}
|
|
285
|
-
</span>
|
|
286
|
-
</Link>
|
|
283
|
+
{lawyerInfo.l_position ? (
|
|
284
|
+
<span className={'text-[22px] font-[600] leading-[1.42] tracking-[-0.7px] max-xs:text-[20px] '}>
|
|
285
|
+
|
|
286
|
+
{searchColorLawyerText(lawyerInfo.l_position, integrateSearch)}
|
|
287
|
+
</span>
|
|
288
|
+
) : (
|
|
289
|
+
<></>
|
|
287
290
|
)}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
291
|
+
|
|
292
|
+
{lawyerInfo.l_introduce_shorts && (
|
|
293
|
+
<div
|
|
294
|
+
className={
|
|
295
|
+
'flex h-[49px] w-[189px] items-center justify-center gap-[4px] rounded-[24.5px] bg-[#fff] text-[22px] font-[600]'
|
|
296
|
+
}
|
|
297
|
+
onClick={() => {
|
|
298
|
+
setModalOn(true);
|
|
299
|
+
}}
|
|
294
300
|
>
|
|
301
|
+
{' '}
|
|
295
302
|
<Image
|
|
296
|
-
src={'/images/
|
|
297
|
-
alt={'
|
|
298
|
-
width={
|
|
299
|
-
height={
|
|
300
|
-
className={'
|
|
303
|
+
src={'/images/youtube_logo.png'}
|
|
304
|
+
alt={'유튜브'}
|
|
305
|
+
width={50}
|
|
306
|
+
height={20}
|
|
307
|
+
className={'shrink-0'}
|
|
301
308
|
/>
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
309
|
+
소개영상
|
|
310
|
+
<Image
|
|
311
|
+
src={'/images/youtube_arrow.png'}
|
|
312
|
+
alt={'유튜브'}
|
|
313
|
+
width={13}
|
|
314
|
+
height={14}
|
|
315
|
+
className={'h-[14px]'}
|
|
316
|
+
/>
|
|
317
|
+
</div>
|
|
305
318
|
)}
|
|
306
|
-
</
|
|
319
|
+
</div>
|
|
320
|
+
|
|
321
|
+
{/*lawyer_code, l_ability, tel mobile*/}
|
|
322
|
+
<div
|
|
323
|
+
className={
|
|
324
|
+
'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'
|
|
325
|
+
}
|
|
326
|
+
>
|
|
327
|
+
<p className={'font-[800]'}>
|
|
328
|
+
{searchColorLawyerText(
|
|
329
|
+
codeList.filter((item: any) => item.code === lawyerInfo.lawyer_code)[0].code_name,
|
|
330
|
+
integrateSearch
|
|
331
|
+
)}
|
|
332
|
+
</p>
|
|
333
|
+
<p className={'font-[500] max-2sm:whitespace-pre-wrap'}>
|
|
334
|
+
{searchColorLawyerText(
|
|
335
|
+
lawyerInfo.l_sort_center?.includes(centerCode) && lawyerInfo.careers_summary
|
|
336
|
+
? lawyerInfo.careers_summary
|
|
337
|
+
: lawyerInfo.l_ability,
|
|
338
|
+
integrateSearch
|
|
339
|
+
)}
|
|
340
|
+
</p>
|
|
341
|
+
<p className={'flex items-center gap-2'}>
|
|
342
|
+
{lawyerInfo.l_tel && (
|
|
343
|
+
<Link
|
|
344
|
+
href={'tel:' + lawyerInfo.l_tel}
|
|
345
|
+
onClick={handleOnClickLawyerTel}
|
|
346
|
+
className={'text-[16px] '}
|
|
347
|
+
aria-label={lawyerInfo.l_name + '변호사에게 전화하기 ' + lawyerInfo.l_tel}
|
|
348
|
+
>
|
|
349
|
+
T.{' '}
|
|
350
|
+
<span className={'font-[600] underline underline-offset-[6px]'}>
|
|
351
|
+
{searchColorLawyerText(lawyerInfo.l_tel, integrateSearch)}
|
|
352
|
+
</span>
|
|
353
|
+
</Link>
|
|
354
|
+
)}
|
|
355
|
+
{lawyerInfo.l_email ? (
|
|
356
|
+
<Link
|
|
357
|
+
href={`${process.env.NEXT_PUBLIC_MAIN_DOMAIN}/mail?lawyer=${lawyerInfo.l_name}`}
|
|
358
|
+
rel={'nofollow'}
|
|
359
|
+
className={'block w-fit'}
|
|
360
|
+
aria-label={lawyerInfo.l_name + '변호사에게 메일보내기 ' + lawyerInfo.l_email}
|
|
361
|
+
>
|
|
362
|
+
<Image
|
|
363
|
+
src={'/images/lawyer/email_icon.webp'}
|
|
364
|
+
alt={'이메일'}
|
|
365
|
+
width={64}
|
|
366
|
+
height={64}
|
|
367
|
+
className={'w-[38px] max-xl:w-[32px] max-lg:w-[30px] max-xs:w-[26px]'}
|
|
368
|
+
/>
|
|
369
|
+
</Link>
|
|
370
|
+
) : (
|
|
371
|
+
<></>
|
|
372
|
+
)}
|
|
373
|
+
</p>
|
|
374
|
+
</div>
|
|
307
375
|
</div>
|
|
308
|
-
|
|
376
|
+
</>
|
|
309
377
|
);
|
|
310
378
|
};
|
|
311
379
|
export default BasicInfo;
|