@daeryun/dr_components 0.4.39 → 0.4.41

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.
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { IListPagesType, IListTypes } from './integrateType';
3
+ export interface LawyerData {
4
+ id: string;
5
+ name: string;
6
+ image: string;
7
+ code: string;
8
+ array_to_string: string;
9
+ careers_summary?: string;
10
+ ability: string;
11
+ mark: string;
12
+ tel: string | null;
13
+ l_sort_center: string[] | null;
14
+ exist_l_sort_center: string[] | null;
15
+ l_position: string | null;
16
+ email: string | null;
17
+ group_career: string | null;
18
+ }
19
+ declare const Lawyer: (props: {
20
+ tab: string;
21
+ onMoreViewText: (str: string) => void;
22
+ onMoreView: () => void;
23
+ list: IListTypes;
24
+ pages: IListPagesType;
25
+ center_code: string;
26
+ listCount: {
27
+ lawyer: number;
28
+ field: number;
29
+ success: number;
30
+ info: number;
31
+ broadcast: number;
32
+ reply: number;
33
+ map: number;
34
+ };
35
+ }) => React.JSX.Element | null;
36
+ export default Lawyer;
@@ -0,0 +1,175 @@
1
+ import React, { useEffect, useRef, useState } from 'react';
2
+ import { NoResult } from './NoResult';
3
+ import { Title } from './Title';
4
+ import { ViewMore } from './ViewMore';
5
+ import * as gtag from '../../../lib/gtag';
6
+ import mobile from 'is-mobile';
7
+ import { useRouter } from 'next/router';
8
+ import Link from 'next/link';
9
+ import Image from 'next/image';
10
+ import style from './index.module.css';
11
+ import Mark from '../../Mark/Mark';
12
+ const Lawyer = (props) => {
13
+ const { tab, onMoreViewText, list, pages, listCount } = props;
14
+ const [loading, setLoading] = useState(false);
15
+ const [isMobile, setIsMobile] = useState(false);
16
+ const lawyerImagePath = 'https://d1tgonli21s4df.cloudfront.net/upload/lawyer';
17
+ const firstAddRef = useRef(null);
18
+ useEffect(() => {
19
+ const is_mobile = mobile();
20
+ setIsMobile(is_mobile);
21
+ }, []);
22
+ return props.tab === '전체' || props.tab === 'lawyer' ? (
23
+ //구성원 탭에서는 결과 없음
24
+ tab === 'lawyer' && listCount.lawyer < 1 ? (<NoResult />) : (<>
25
+ {/*전체 탭에서는 없게*/}
26
+ {listCount.lawyer > 0 ? (<div className={'mb-[180px] max-sm:mb-[100px] max-xs:mb-[50px]'}>
27
+ <Title title={'구성원'} tab={tab} type={'lawyer'} onClick={str => onMoreViewText(str)} count={listCount.lawyer}/>
28
+
29
+ <div className={'mx-auto my-16 grid w-full grid-cols-2 gap-y-5 max-md:gap-y-2 md:grid-cols-3 xl:grid-cols-4'}>
30
+ {(tab === '전체' ? list.lawyerList.slice(0, 8) : list.lawyerList).map((item, index) => {
31
+ var _a;
32
+ const newItem = {
33
+ id: item.id,
34
+ name: item.name,
35
+ image: (_a = item.nukki) !== null && _a !== void 0 ? _a : '',
36
+ code: item.code,
37
+ group_career: item.group_career,
38
+ array_to_string: item.careers,
39
+ careers_summary: item.careers_summary,
40
+ ability: item.ability,
41
+ mark: item.mark,
42
+ tel: item.tel,
43
+ l_position: item.position,
44
+ email: item.email,
45
+ l_sort_center: item.l_sort_center,
46
+ exist_l_sort_center: item.exist_l_sort_center,
47
+ thumbnail: item.image
48
+ };
49
+ return (<LawyerContainer key={item.id} center_code={props.center_code} item={newItem} lawyerImagePath={lawyerImagePath} specialtyArr={item.l_sort_center ? item.l_sort_center : []} firstAddRef={index === 0 || (index > 12 && index === list.lawyerList.length - 12)
50
+ ? firstAddRef
51
+ : null}/>);
52
+ })}
53
+ </div>
54
+ {tab != '전체' && (<ViewMore flag={list.lawyerList.length != listCount.lawyer} func={() => {
55
+ setLoading(true);
56
+ props.onMoreView();
57
+ setLoading(false);
58
+ }} loading={loading} totalPage={Math.ceil(listCount.lawyer / 12)} nowPage={pages.lawyerList}/>)}
59
+ </div>) : (<></>)}
60
+ </>)) : null;
61
+ };
62
+ export default Lawyer;
63
+ const LawyerContainer = (props) => {
64
+ var _a;
65
+ const { item, lawyerImagePath, selectedFilter = '', specialtyArr = [], onClickTel, isPro = false, firstAddRef = null } = props;
66
+ const router = useRouter();
67
+ const MailClick = () => {
68
+ gtag.event({
69
+ action: 'mail_complete',
70
+ category: 'mail',
71
+ label: '변호사이메일버튼',
72
+ value: '1'
73
+ });
74
+ };
75
+ if (!isPro) {
76
+ return (<span className={'relative flex justify-center'}>
77
+ <div className={'flex w-[95%] flex-col sm:w-[80%]'}>
78
+ <Link href={{
79
+ pathname: '/lawyer/' + item.id
80
+ }} tabIndex={-1}>
81
+ <div className={'relative flex items-center justify-center bg-[#F8F8F8]'}>
82
+ <Image loading={'lazy'} src={lawyerImagePath + '/' + item.image} alt={item.array_to_string &&
83
+ item.array_to_string.indexOf(selectedFilter) > -1 &&
84
+ selectedFilter !== '전체'
85
+ ? `${selectedFilter}전문변호사 ${item.name} ${item.code}`
86
+ : `${item.name} ${item.code}`} title={item.array_to_string &&
87
+ item.array_to_string.indexOf(selectedFilter) > -1 &&
88
+ selectedFilter !== '전체'
89
+ ? `${selectedFilter}전문변호사 ${item.name} ${item.code}`
90
+ : `${item.name} ${item.code}`} width={210} height={280} className={'mt-6 h-auto w-[90%]'} quality={100}/>
91
+ {item.mark ? (<Mark type={item.mark} color={'#e8bb71'} className={'absolute bottom-[15px] right-[15px] h-auto w-[25%]'}/>) : (<></>)}
92
+ </div>
93
+ </Link>
94
+ <div className={'m-3 flex h-full flex-col justify-between'}>
95
+ <Link href={{
96
+ pathname: '/lawyer/' + item.id,
97
+ query: Object.assign({}, router.query)
98
+ }} ref={firstAddRef}>
99
+ <span>
100
+ <div className={'flex items-center justify-between'}>
101
+ <p className={'my-2 text-[20px] font-[700] tracking-[-1.6px] sm:text-[25px] lg:text-[32px]'}>
102
+ {item.name}
103
+ </p>
104
+ <Image draggable={'false'} alt="" src={`/images/lawyer/arr_bl.webp`} className={'h-auto w-[15px] sm:h-auto sm:w-[20px]'} width={34} height={40}/>
105
+ </div>
106
+
107
+ <p className={'text-[16px] font-[600] tracking-[-1px] text-[#454545] lg:text-[22px]'}>
108
+ {item.code}
109
+ </p>
110
+
111
+ {item.l_position ? (<p className={' bg-[#F7FBFF] py-1 text-[14px] font-[600] tracking-[-1px] text-[#454545] lg:text-[18px]'}>
112
+ {item.l_position}
113
+ </p>) : (<div className={'h-[35px] max-lg:hidden'}></div>)}
114
+ </span>
115
+ </Link>
116
+ {item.group_career &&
117
+ item.group_career != '' &&
118
+ ((_a = item.exist_l_sort_center) === null || _a === void 0 ? void 0 : _a.includes(props.center_code)) ? (<p className={'mt-[11px] whitespace-pre-wrap text-[14px] font-[800] leading-tight tracking-[-1px] text-[#285FA7] lg:text-[18px] ' +
119
+ (item.group_career.length > 32 ? 'break-all' : '')}>
120
+ {item.group_career.length > 32
121
+ ? item.group_career.replace(',', ', ')
122
+ : item.group_career.replace(',', '\n')}
123
+ </p>) : (<p className={`
124
+ ${item.ability.length > 29 ? '' : 'break-keep '}
125
+ ${item.ability.length > 29
126
+ ? 'text-[13px] lg:text-[16px] '
127
+ : 'text-[14px] lg:text-[18px] '}whitespace-pre-wrap mt-[11px] font-medium leading-tight tracking-[-1px] text-[#143F79] max-lg:mb-[5px]`}>
128
+ <span className="font-[800] max-sm:hidden">{item.ability}</span>
129
+ <span className="font-[800] sm:hidden">
130
+ {item.ability.length > 29 ? item.ability.split('\n').join(', ') : item.ability}
131
+ </span>
132
+ </p>)}
133
+ <span className={'relative mb-[10px] mt-[5px] max-lg:my-[2px] '}>
134
+ {item.tel ? (<Link onClick={onClickTel} href={'tel:' + item.tel} className={'block w-fit'} aria-label={item.name + '변호사에게 전화하기 ' + item.tel}>
135
+ <p className={'text-[14px] font-[600] max-xs:text-[12px] lg:text-[18px]'}>
136
+ T. <span className={'font-[800] text-[#6e6e6e] underline'}>{item.tel}</span>
137
+ </p>
138
+ </Link>) : (<div className={'h-[21px] lg:h-[27px]'}></div>)}
139
+ {/*이메일*/}
140
+ {item.email ? (<Link href={'https://www.daeryunlaw.com/mail?lawyer=' + item.name} rel={'nofollow'} className={'absolute -bottom-[2px] right-0 block h-fit w-fit '} aria-label={item.name + '변호사에게 메일보내기'}>
141
+ <Image src={'/images/lawyer/email_icon.webp'} alt={'이메일'} width={64} height={64} className={'w-[32px] max-lg:w-[28px] max-xs:w-[25px]'}/>
142
+ </Link>) : (<></>)}
143
+ </span>
144
+ {specialtyArr.length > 1 ? (<div className={'relative mt-2 border-t border-solid border-[#D0D0D0]'}>
145
+ <p className={'mt-3 line-clamp-1 text-ellipsis text-[14px] font-medium text-[#6e6e6e] lg:text-[18px]'}>
146
+ {specialtyArr.join('·')} 전문
147
+ </p>
148
+ </div>) : (<></>)}
149
+ </div>
150
+ </div>
151
+ </span>);
152
+ }
153
+ else {
154
+ return (<Link href={{
155
+ pathname: '/lawyer/' + item.id
156
+ }} ref={firstAddRef} key={item.id} className={'flex justify-center'} aria-label={`${item.name} ${item.code}`}>
157
+ <div className={'w-[90%] sm:w-[80%]'}>
158
+ <div className={'relative flex items-center justify-center bg-[#F8F8F8]'}>
159
+ <Image src={lawyerImagePath + '/' + (item.image ? item.image : item.thumbnail)} alt={item.name} title={item.name} width={210} height={280} className={'mt-6 h-auto w-[90%]'}/>
160
+ </div>
161
+ <div className={style.textbox}>
162
+ <div className={'m-3'}>
163
+ <div className={'flex items-center justify-between'}>
164
+ <p className={'my-2 text-[20px] font-[800] tracking-[-1.6px] sm:text-[28px]'}>
165
+ {item.name}
166
+ </p>
167
+ <Image draggable={'false'} alt="" src={`/images/profile.webp`} className={'h-[16px] w-[13px] sm:h-[20px] sm:w-[16px]'} width={34} height={40}/>
168
+ </div>
169
+ <p className={'text-lg font-[600] tracking-[-1.1px] text-[#454545]'}>{item.code}</p>
170
+ </div>
171
+ </div>
172
+ </div>
173
+ </Link>);
174
+ }
175
+ };
@@ -0,0 +1,394 @@
1
+ import React, { RefObject, useEffect, useRef, useState } from 'react';
2
+ import { NoResult } from './NoResult';
3
+ import { Title } from './Title';
4
+ import { IListPagesType, IListTypes } from './integrateType';
5
+ import { ViewMore } from './ViewMore';
6
+
7
+ import * as gtag from '../../../lib/gtag';
8
+ import mobile from 'is-mobile';
9
+ import { useRouter } from 'next/router';
10
+ import Link from 'next/link';
11
+ import Image from 'next/image';
12
+ import style from './index.module.css';
13
+ import Mark from '../../Mark/Mark';
14
+
15
+ export interface LawyerData {
16
+ id: string;
17
+ name: string;
18
+ image: string;
19
+ code: string;
20
+ array_to_string: string;
21
+ careers_summary?: string;
22
+ ability: string;
23
+ mark: string;
24
+ tel: string | null;
25
+ l_sort_center: string[] | null;
26
+ exist_l_sort_center: string[] | null;
27
+ l_position: string | null;
28
+ email: string | null;
29
+ group_career: string | null;
30
+ }
31
+
32
+ const Lawyer = (props: {
33
+ tab: string;
34
+ onMoreViewText: (str: string) => void;
35
+ onMoreView: () => void;
36
+ list: IListTypes;
37
+ pages: IListPagesType;
38
+ center_code: string;
39
+ listCount: {
40
+ lawyer: number;
41
+ field: number;
42
+ success: number;
43
+ info: number;
44
+ broadcast: number;
45
+ reply: number;
46
+ map: number;
47
+ };
48
+ }) => {
49
+ const { tab, onMoreViewText, list, pages, listCount } = props;
50
+
51
+ const [loading, setLoading] = useState<boolean>(false);
52
+ const [isMobile, setIsMobile] = useState<boolean>(false);
53
+ const lawyerImagePath: string = 'https://d1tgonli21s4df.cloudfront.net/upload/lawyer';
54
+
55
+ const firstAddRef = useRef<HTMLAnchorElement>(null);
56
+
57
+ useEffect(() => {
58
+ const is_mobile = mobile();
59
+ setIsMobile(is_mobile);
60
+ }, []);
61
+
62
+ return props.tab === '전체' || props.tab === 'lawyer' ? (
63
+ //구성원 탭에서는 결과 없음
64
+ tab === 'lawyer' && listCount.lawyer < 1 ? (
65
+ <NoResult />
66
+ ) : (
67
+ <>
68
+ {/*전체 탭에서는 없게*/}
69
+ {listCount.lawyer > 0 ? (
70
+ <div className={'mb-[180px] max-sm:mb-[100px] max-xs:mb-[50px]'}>
71
+ <Title
72
+ title={'구성원'}
73
+ tab={tab}
74
+ type={'lawyer'}
75
+ onClick={str => onMoreViewText(str)}
76
+ count={listCount.lawyer}
77
+ />
78
+
79
+ <div
80
+ className={
81
+ 'mx-auto my-16 grid w-full grid-cols-2 gap-y-5 max-md:gap-y-2 md:grid-cols-3 xl:grid-cols-4'
82
+ }
83
+ >
84
+ {(tab === '전체' ? list.lawyerList.slice(0, 8) : list.lawyerList).map(
85
+ (item, index: number) => {
86
+ const newItem: ILawyerProData = {
87
+ id: item.id,
88
+ name: item.name,
89
+ image: item.nukki ?? '',
90
+ code: item.code,
91
+ group_career: item.group_career,
92
+ array_to_string: item.careers,
93
+ careers_summary: item.careers_summary,
94
+ ability: item.ability,
95
+ mark: item.mark,
96
+ tel: item.tel,
97
+ l_position: item.position,
98
+ email: item.email,
99
+ l_sort_center: item.l_sort_center,
100
+ exist_l_sort_center: item.exist_l_sort_center,
101
+ thumbnail: item.image
102
+ };
103
+
104
+ return (
105
+ <LawyerContainer
106
+ key={item.id}
107
+ center_code={props.center_code}
108
+ item={newItem}
109
+ lawyerImagePath={lawyerImagePath}
110
+ specialtyArr={item.l_sort_center ? item.l_sort_center : []}
111
+ firstAddRef={
112
+ index === 0 || (index > 12 && index === list.lawyerList.length - 12)
113
+ ? firstAddRef
114
+ : null
115
+ }
116
+ />
117
+ );
118
+ }
119
+ )}
120
+ </div>
121
+ {tab != '전체' && (
122
+ <ViewMore
123
+ flag={list.lawyerList.length != listCount.lawyer}
124
+ func={() => {
125
+ setLoading(true);
126
+ props.onMoreView();
127
+ setLoading(false);
128
+ }}
129
+ loading={loading}
130
+ totalPage={Math.ceil(listCount.lawyer / 12)}
131
+ nowPage={pages.lawyerList}
132
+ />
133
+ )}
134
+ </div>
135
+ ) : (
136
+ <></>
137
+ )}
138
+ </>
139
+ )
140
+ ) : null;
141
+ };
142
+
143
+ export default Lawyer;
144
+
145
+ interface ILawyerProData extends LawyerData {
146
+ thumbnail?: string;
147
+ }
148
+
149
+ const LawyerContainer = (props: {
150
+ item: ILawyerProData;
151
+ lawyerImagePath: string;
152
+ center_code: string;
153
+ selectedFilter?: string; // 이미지 alt 용
154
+ specialtyArr?: string[]; // 업무 분야
155
+ onClickTel?: () => void; // 전화번호 클릭 이벤트
156
+ isPro?: boolean; // true 일 시 특수분야 전문가
157
+ firstAddRef?: RefObject<HTMLAnchorElement> | null; //통합검색용 접근성
158
+ }) => {
159
+ const {
160
+ item,
161
+ lawyerImagePath,
162
+ selectedFilter = '',
163
+ specialtyArr = [],
164
+ onClickTel,
165
+ isPro = false,
166
+ firstAddRef = null
167
+ } = props;
168
+ const router = useRouter();
169
+
170
+ const MailClick = () => {
171
+ gtag.event({
172
+ action: 'mail_complete',
173
+ category: 'mail',
174
+ label: '변호사이메일버튼',
175
+ value: '1'
176
+ });
177
+ };
178
+
179
+ if (!isPro) {
180
+ return (
181
+ <span className={'relative flex justify-center'}>
182
+ <div className={'flex w-[95%] flex-col sm:w-[80%]'}>
183
+ <Link
184
+ href={{
185
+ pathname: '/lawyer/' + item.id
186
+ }}
187
+ tabIndex={-1}
188
+ >
189
+ <div className={'relative flex items-center justify-center bg-[#F8F8F8]'}>
190
+ <Image
191
+ loading={'lazy'}
192
+ src={lawyerImagePath + '/' + item.image}
193
+ alt={
194
+ item.array_to_string &&
195
+ item.array_to_string.indexOf(selectedFilter) > -1 &&
196
+ selectedFilter !== '전체'
197
+ ? `${selectedFilter}전문변호사 ${item.name} ${item.code}`
198
+ : `${item.name} ${item.code}`
199
+ }
200
+ title={
201
+ item.array_to_string &&
202
+ item.array_to_string.indexOf(selectedFilter) > -1 &&
203
+ selectedFilter !== '전체'
204
+ ? `${selectedFilter}전문변호사 ${item.name} ${item.code}`
205
+ : `${item.name} ${item.code}`
206
+ }
207
+ width={210}
208
+ height={280}
209
+ className={'mt-6 h-auto w-[90%]'}
210
+ quality={100}
211
+ />
212
+ {item.mark ? (
213
+ <Mark
214
+ type={item.mark}
215
+ color={'#e8bb71'}
216
+ className={'absolute bottom-[15px] right-[15px] h-auto w-[25%]'}
217
+ />
218
+ ) : (
219
+ <></>
220
+ )}
221
+ </div>
222
+ </Link>
223
+ <div className={'m-3 flex h-full flex-col justify-between'}>
224
+ <Link
225
+ href={{
226
+ pathname: '/lawyer/' + item.id,
227
+ query: {
228
+ ...router.query
229
+ }
230
+ }}
231
+ ref={firstAddRef}
232
+ >
233
+ <span>
234
+ <div className={'flex items-center justify-between'}>
235
+ <p
236
+ className={
237
+ 'my-2 text-[20px] font-[700] tracking-[-1.6px] sm:text-[25px] lg:text-[32px]'
238
+ }
239
+ >
240
+ {item.name}
241
+ </p>
242
+ <Image
243
+ draggable={'false'}
244
+ alt=""
245
+ src={`/images/lawyer/arr_bl.webp`}
246
+ className={'h-auto w-[15px] sm:h-auto sm:w-[20px]'}
247
+ width={34}
248
+ height={40}
249
+ />
250
+ </div>
251
+
252
+ <p className={'text-[16px] font-[600] tracking-[-1px] text-[#454545] lg:text-[22px]'}>
253
+ {item.code}
254
+ </p>
255
+
256
+ {item.l_position ? (
257
+ <p
258
+ className={
259
+ ' bg-[#F7FBFF] py-1 text-[14px] font-[600] tracking-[-1px] text-[#454545] lg:text-[18px]'
260
+ }
261
+ >
262
+ {item.l_position}
263
+ </p>
264
+ ) : (
265
+ <div className={'h-[35px] max-lg:hidden'}></div>
266
+ )}
267
+ </span>
268
+ </Link>
269
+ {item.group_career &&
270
+ item.group_career != '' &&
271
+ item.exist_l_sort_center?.includes(props.center_code) ? (
272
+ <p
273
+ className={
274
+ 'mt-[11px] whitespace-pre-wrap text-[14px] font-[800] leading-tight tracking-[-1px] text-[#285FA7] lg:text-[18px] ' +
275
+ (item.group_career.length > 32 ? 'break-all' : '')
276
+ }
277
+ >
278
+ {item.group_career.length > 32
279
+ ? item.group_career.replace(',', ', ')
280
+ : item.group_career.replace(',', '\n')}
281
+ </p>
282
+ ) : (
283
+ <p
284
+ className={`
285
+ ${item.ability.length > 29 ? '' : 'break-keep '}
286
+ ${
287
+ item.ability.length > 29
288
+ ? 'text-[13px] lg:text-[16px] '
289
+ : 'text-[14px] lg:text-[18px] '
290
+ }whitespace-pre-wrap mt-[11px] font-medium leading-tight tracking-[-1px] text-[#143F79] max-lg:mb-[5px]`}
291
+ >
292
+ <span className="font-[800] max-sm:hidden">{item.ability}</span>
293
+ <span className="font-[800] sm:hidden">
294
+ {item.ability.length > 29 ? item.ability.split('\n').join(', ') : item.ability}
295
+ </span>
296
+ </p>
297
+ )}
298
+ <span className={'relative mb-[10px] mt-[5px] max-lg:my-[2px] '}>
299
+ {item.tel ? (
300
+ <Link
301
+ onClick={onClickTel}
302
+ href={'tel:' + item.tel}
303
+ className={'block w-fit'}
304
+ aria-label={item.name + '변호사에게 전화하기 ' + item.tel}
305
+ >
306
+ <p className={'text-[14px] font-[600] max-xs:text-[12px] lg:text-[18px]'}>
307
+ T. <span className={'font-[800] text-[#6e6e6e] underline'}>{item.tel}</span>
308
+ </p>
309
+ </Link>
310
+ ) : (
311
+ <div className={'h-[21px] lg:h-[27px]'}></div>
312
+ )}
313
+ {/*이메일*/}
314
+ {item.email ? (
315
+ <Link
316
+ href={'https://www.daeryunlaw.com/mail?lawyer=' + item.name}
317
+ rel={'nofollow'}
318
+ className={'absolute -bottom-[2px] right-0 block h-fit w-fit '}
319
+ aria-label={item.name + '변호사에게 메일보내기'}
320
+ >
321
+ <Image
322
+ src={'/images/lawyer/email_icon.webp'}
323
+ alt={'이메일'}
324
+ width={64}
325
+ height={64}
326
+ className={'w-[32px] max-lg:w-[28px] max-xs:w-[25px]'}
327
+ />
328
+ </Link>
329
+ ) : (
330
+ <></>
331
+ )}
332
+ </span>
333
+ {specialtyArr.length > 1 ? (
334
+ <div className={'relative mt-2 border-t border-solid border-[#D0D0D0]'}>
335
+ <p
336
+ className={
337
+ 'mt-3 line-clamp-1 text-ellipsis text-[14px] font-medium text-[#6e6e6e] lg:text-[18px]'
338
+ }
339
+ >
340
+ {specialtyArr.join('·')} 전문
341
+ </p>
342
+ </div>
343
+ ) : (
344
+ <></>
345
+ )}
346
+ </div>
347
+ </div>
348
+ </span>
349
+ );
350
+ } else {
351
+ return (
352
+ <Link
353
+ href={{
354
+ pathname: '/lawyer/' + item.id
355
+ }}
356
+ ref={firstAddRef}
357
+ key={item.id}
358
+ className={'flex justify-center'}
359
+ aria-label={`${item.name} ${item.code}`}
360
+ >
361
+ <div className={'w-[90%] sm:w-[80%]'}>
362
+ <div className={'relative flex items-center justify-center bg-[#F8F8F8]'}>
363
+ <Image
364
+ src={lawyerImagePath + '/' + (item.image ? item.image : item.thumbnail)}
365
+ alt={item.name}
366
+ title={item.name}
367
+ width={210}
368
+ height={280}
369
+ className={'mt-6 h-auto w-[90%]'}
370
+ />
371
+ </div>
372
+ <div className={style.textbox}>
373
+ <div className={'m-3'}>
374
+ <div className={'flex items-center justify-between'}>
375
+ <p className={'my-2 text-[20px] font-[800] tracking-[-1.6px] sm:text-[28px]'}>
376
+ {item.name}
377
+ </p>
378
+ <Image
379
+ draggable={'false'}
380
+ alt=""
381
+ src={`/images/profile.webp`}
382
+ className={'h-[16px] w-[13px] sm:h-[20px] sm:w-[16px]'}
383
+ width={34}
384
+ height={40}
385
+ />
386
+ </div>
387
+ <p className={'text-lg font-[600] tracking-[-1.1px] text-[#454545]'}>{item.code}</p>
388
+ </div>
389
+ </div>
390
+ </div>
391
+ </Link>
392
+ );
393
+ }
394
+ };
@@ -5,7 +5,6 @@ import { useRouter } from 'next/navigation';
5
5
  import { useSearchParams } from 'next/navigation';
6
6
  import Link from 'next/link';
7
7
  import { tabTypes } from '../../common/integrate';
8
- import Strength from '../Strength/Strength';
9
8
 
10
9
  interface TabProps {
11
10
  search: string | null;