@daeryun/dr_components 0.5.33 → 0.5.34
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 +23 -41
- package/dist/components/page/LawyerDetail/LawyerDetail.tsx +61 -110
- package/dist/components/page/LawyerDetail/component/BasicInfo.d.ts +2 -1
- package/dist/components/page/LawyerDetail/component/BasicInfo.jsx +7 -4
- package/dist/components/page/LawyerDetail/component/BasicInfo.tsx +14 -3
- 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
|
@@ -96,8 +96,13 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, cente
|
|
|
96
96
|
}
|
|
97
97
|
setIntegrateSearch(integrate_search ? String(integrate_search) : '');
|
|
98
98
|
}, [searchParams]);
|
|
99
|
+
const Container = ({ isUseWrapper, children }) => {
|
|
100
|
+
return isUseWrapper ? (<Wrapper>{children}</Wrapper>) : (<section className={'mx-auto max-w-screen-2xl'}>
|
|
101
|
+
<div className={'relative mx-auto w-[90%]'}>{children}</div>
|
|
102
|
+
</section>);
|
|
103
|
+
};
|
|
99
104
|
return lawyerInfo ? (<section id={'sub_contents'} className={'pt-[200px] max-lg:pt-[180px] max-md:pt-[120px] max-sm:pt-[68px]'}>
|
|
100
|
-
<BasicInfo centerCode={centerCode} codeList={codeList} lawyerInfo={lawyerInfo} integrateSearch={integrateSearch}/>
|
|
105
|
+
<BasicInfo isUseWrapper={isUseWrapper} centerCode={centerCode} codeList={codeList} lawyerInfo={lawyerInfo} integrateSearch={integrateSearch}/>
|
|
101
106
|
|
|
102
107
|
{/*변호사 설명*/}
|
|
103
108
|
<Introduce lawyerInfo={lawyerInfo} integrateSearch={integrateSearch}/>
|
|
@@ -107,51 +112,28 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, cente
|
|
|
107
112
|
{/*모바일 전문분야*/}
|
|
108
113
|
<MobileSpeciality speciality={speciality} codeList={codeList} maxLines={maxLines} integrateSearch={integrateSearch}/>
|
|
109
114
|
|
|
110
|
-
{isUseWrapper
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
{/*모바일 상단 버튼*/}
|
|
115
|
-
<MobileTabButton targetRefs={targetRefs}/>
|
|
116
|
-
|
|
117
|
-
{/*pc 상단 버튼*/}
|
|
118
|
-
<PcTabButton targetTitleRefs={targetTitleRefs} targetRefs={targetRefs} careerList={careerList}/>
|
|
119
|
-
|
|
120
|
-
{/* 경력 리스트 */}
|
|
121
|
-
<CareerList integrateSearch={integrateSearch} successList={successList} broadcastList={broadcastList} reviewList={reviewList} careerList={careerList} lawyerInfo={lawyerInfo} speciality={speciality} codeList={codeList} certiList={certiList} targetRefs={targetRefs} targetTitleRefs={targetTitleRefs}/>
|
|
122
|
-
|
|
123
|
-
<div className={'m-auto mb-[100px] flex w-[90%] max-w-[1400px] justify-center sm:justify-end '}>
|
|
124
|
-
<Link href={'/lawyer' + queryStr}>
|
|
125
|
-
<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] '}>
|
|
126
|
-
변호사 더보기
|
|
127
|
-
<Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/Arrow_Right_LG.svg'} alt={''} title={''} width={36} height={36} className={'h-[30px] w-auto'}/>
|
|
128
|
-
</div>
|
|
129
|
-
</Link>
|
|
130
|
-
</div>
|
|
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}/>
|
|
115
|
+
<Container isUseWrapper={isUseWrapper}>
|
|
116
|
+
{/*모바일 업무사례, 언론보도, 후기*/}
|
|
117
|
+
<MobileRelatedPage lawyerInfo={lawyerInfo} successList={successList} broadcastList={broadcastList} reviewList={reviewList} isLawyer={isLawyer}/>
|
|
135
118
|
|
|
136
|
-
|
|
137
|
-
|
|
119
|
+
{/*모바일 상단 버튼*/}
|
|
120
|
+
<MobileTabButton targetRefs={targetRefs}/>
|
|
138
121
|
|
|
139
|
-
|
|
140
|
-
|
|
122
|
+
{/*pc 상단 버튼*/}
|
|
123
|
+
<PcTabButton targetTitleRefs={targetTitleRefs} targetRefs={targetRefs} careerList={careerList}/>
|
|
141
124
|
|
|
142
|
-
|
|
143
|
-
|
|
125
|
+
{/* 경력 리스트 */}
|
|
126
|
+
<CareerList integrateSearch={integrateSearch} successList={successList} broadcastList={broadcastList} reviewList={reviewList} careerList={careerList} lawyerInfo={lawyerInfo} speciality={speciality} codeList={codeList} certiList={certiList} targetRefs={targetRefs} targetTitleRefs={targetTitleRefs}/>
|
|
144
127
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
</div>
|
|
151
|
-
</Link>
|
|
128
|
+
<div className={'m-auto mb-[100px] flex w-[90%] max-w-[1400px] justify-center sm:justify-end '}>
|
|
129
|
+
<Link href={'/lawyer' + queryStr}>
|
|
130
|
+
<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] '}>
|
|
131
|
+
변호사 더보기
|
|
132
|
+
<Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/Arrow_Right_LG.svg'} alt={''} title={''} width={36} height={36} className={'h-[30px] w-auto'}/>
|
|
152
133
|
</div>
|
|
153
|
-
</
|
|
154
|
-
</
|
|
134
|
+
</Link>
|
|
135
|
+
</div>
|
|
136
|
+
</Container>
|
|
155
137
|
</section>) : null;
|
|
156
138
|
};
|
|
157
139
|
export default Detail;
|
|
@@ -120,9 +120,20 @@ const Detail = ({
|
|
|
120
120
|
setIntegrateSearch(integrate_search ? String(integrate_search) : '');
|
|
121
121
|
}, [searchParams]);
|
|
122
122
|
|
|
123
|
+
const Container = ({ isUseWrapper, children }: { isUseWrapper?: boolean; children: React.ReactNode }) => {
|
|
124
|
+
return isUseWrapper ? (
|
|
125
|
+
<Wrapper>{children}</Wrapper>
|
|
126
|
+
) : (
|
|
127
|
+
<section className={'mx-auto max-w-screen-2xl'}>
|
|
128
|
+
<div className={'relative mx-auto w-[90%]'}>{children}</div>
|
|
129
|
+
</section>
|
|
130
|
+
);
|
|
131
|
+
};
|
|
132
|
+
|
|
123
133
|
return lawyerInfo ? (
|
|
124
134
|
<section id={'sub_contents'} className={'pt-[200px] max-lg:pt-[180px] max-md:pt-[120px] max-sm:pt-[68px]'}>
|
|
125
135
|
<BasicInfo
|
|
136
|
+
isUseWrapper={isUseWrapper}
|
|
126
137
|
centerCode={centerCode}
|
|
127
138
|
codeList={codeList}
|
|
128
139
|
lawyerInfo={lawyerInfo}
|
|
@@ -142,117 +153,57 @@ const Detail = ({
|
|
|
142
153
|
integrateSearch={integrateSearch}
|
|
143
154
|
/>
|
|
144
155
|
|
|
145
|
-
{isUseWrapper
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
<
|
|
178
|
-
<
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
/>
|
|
193
|
-
</div>
|
|
194
|
-
</Link>
|
|
195
|
-
</div>
|
|
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>
|
|
156
|
+
<Container isUseWrapper={isUseWrapper}>
|
|
157
|
+
{/*모바일 업무사례, 언론보도, 후기*/}
|
|
158
|
+
<MobileRelatedPage
|
|
159
|
+
lawyerInfo={lawyerInfo}
|
|
160
|
+
successList={successList}
|
|
161
|
+
broadcastList={broadcastList}
|
|
162
|
+
reviewList={reviewList}
|
|
163
|
+
isLawyer={isLawyer}
|
|
164
|
+
/>
|
|
165
|
+
|
|
166
|
+
{/*모바일 상단 버튼*/}
|
|
167
|
+
<MobileTabButton targetRefs={targetRefs} />
|
|
168
|
+
|
|
169
|
+
{/*pc 상단 버튼*/}
|
|
170
|
+
<PcTabButton targetTitleRefs={targetTitleRefs} targetRefs={targetRefs} careerList={careerList} />
|
|
171
|
+
|
|
172
|
+
{/* 경력 리스트 */}
|
|
173
|
+
<CareerList
|
|
174
|
+
integrateSearch={integrateSearch}
|
|
175
|
+
successList={successList}
|
|
176
|
+
broadcastList={broadcastList}
|
|
177
|
+
reviewList={reviewList}
|
|
178
|
+
careerList={careerList}
|
|
179
|
+
lawyerInfo={lawyerInfo}
|
|
180
|
+
speciality={speciality}
|
|
181
|
+
codeList={codeList}
|
|
182
|
+
certiList={certiList}
|
|
183
|
+
targetRefs={targetRefs}
|
|
184
|
+
targetTitleRefs={targetTitleRefs}
|
|
185
|
+
/>
|
|
186
|
+
|
|
187
|
+
<div className={'m-auto mb-[100px] flex w-[90%] max-w-[1400px] justify-center sm:justify-end '}>
|
|
188
|
+
<Link href={'/lawyer' + queryStr}>
|
|
189
|
+
<div
|
|
190
|
+
className={
|
|
191
|
+
'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] '
|
|
192
|
+
}
|
|
193
|
+
>
|
|
194
|
+
변호사 더보기
|
|
195
|
+
<Image
|
|
196
|
+
src={'https://d1tgonli21s4df.cloudfront.net/lawyer/Arrow_Right_LG.svg'}
|
|
197
|
+
alt={''}
|
|
198
|
+
title={''}
|
|
199
|
+
width={36}
|
|
200
|
+
height={36}
|
|
201
|
+
className={'h-[30px] w-auto'}
|
|
202
|
+
/>
|
|
252
203
|
</div>
|
|
253
|
-
</
|
|
254
|
-
</
|
|
255
|
-
|
|
204
|
+
</Link>
|
|
205
|
+
</div>
|
|
206
|
+
</Container>
|
|
256
207
|
</section>
|
|
257
208
|
) : null;
|
|
258
209
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ILawyer } from '../ILawyerDetailTypes';
|
|
3
|
-
declare const BasicInfo: ({ lawyerInfo, codeList, centerCode, integrateSearch }: {
|
|
3
|
+
declare const BasicInfo: ({ lawyerInfo, codeList, centerCode, isUseWrapper, integrateSearch }: {
|
|
4
4
|
lawyerInfo: ILawyer;
|
|
5
5
|
codeList: any[];
|
|
6
6
|
integrateSearch: string;
|
|
7
|
+
isUseWrapper?: boolean;
|
|
7
8
|
centerCode: string;
|
|
8
9
|
}) => React.JSX.Element;
|
|
9
10
|
export default BasicInfo;
|
|
@@ -5,7 +5,8 @@ import { insert } from '../../../../lib/conversion';
|
|
|
5
5
|
import * as gtag from '../../../../lib/gtag';
|
|
6
6
|
import mobile from 'is-mobile';
|
|
7
7
|
import { searchColorLawyerText } from '../../../common/integrate';
|
|
8
|
-
|
|
8
|
+
import { Wrapper } from '../../../index';
|
|
9
|
+
const BasicInfo = ({ lawyerInfo, codeList, centerCode, isUseWrapper, integrateSearch }) => {
|
|
9
10
|
var _a, _b;
|
|
10
11
|
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
11
12
|
const lawyerImagePath = imagePath + '/upload/lawyer';
|
|
@@ -43,11 +44,14 @@ const BasicInfo = ({ lawyerInfo, codeList, centerCode, integrateSearch }) => {
|
|
|
43
44
|
setCssFlag(flag1 || flag2);
|
|
44
45
|
}
|
|
45
46
|
}, [lawyerInfo]);
|
|
47
|
+
const Container = ({ isUseWrapper, children }) => {
|
|
48
|
+
return isUseWrapper ? (<Wrapper>{children}</Wrapper>) : (<div className={'relative mx-auto max-w-screen-2xl'}>{children}</div>);
|
|
49
|
+
};
|
|
46
50
|
return (<div className={'relative w-full pb-[120px] max-md:pb-0'}>
|
|
47
51
|
{/*#F8F8F8 배경 768px부터 hidden*/}
|
|
48
52
|
<div className={'absolute bottom-0 h-[386px] w-full bg-[#F8F8F8] max-md:hidden'}></div>
|
|
49
53
|
|
|
50
|
-
<
|
|
54
|
+
<Container isUseWrapper={isUseWrapper}>
|
|
51
55
|
<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
56
|
<Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc.webp'} alt={'변호사 리스트 배경'} fill className={'object-cover max-sm:hidden'}/>
|
|
53
57
|
<Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc.webp'} alt={'변호사 리스트 배경'} fill className={'object-cover sm:hidden'}/>
|
|
@@ -106,8 +110,7 @@ const BasicInfo = ({ lawyerInfo, codeList, centerCode, integrateSearch }) => {
|
|
|
106
110
|
</p>
|
|
107
111
|
</div>
|
|
108
112
|
</div>
|
|
109
|
-
</
|
|
110
|
-
|
|
113
|
+
</Container>
|
|
111
114
|
{/*이름 mobile*/}
|
|
112
115
|
<p className={'mx-auto mt-4 w-[90%] md:hidden'}>
|
|
113
116
|
<span className={'text-[50px] font-[800] leading-[1.14] tracking-[-0.9px] max-md:text-[46px] max-xs:text-[40px] '}>
|
|
@@ -6,16 +6,19 @@ import * as gtag from '../../../../lib/gtag';
|
|
|
6
6
|
import mobile from 'is-mobile';
|
|
7
7
|
import { ILawyer } from '../ILawyerDetailTypes';
|
|
8
8
|
import { searchColorLawyerText } from '../../../common/integrate';
|
|
9
|
+
import { Wrapper } from '../../../index';
|
|
9
10
|
|
|
10
11
|
const BasicInfo = ({
|
|
11
12
|
lawyerInfo,
|
|
12
13
|
codeList,
|
|
13
14
|
centerCode,
|
|
15
|
+
isUseWrapper,
|
|
14
16
|
integrateSearch
|
|
15
17
|
}: {
|
|
16
18
|
lawyerInfo: ILawyer;
|
|
17
19
|
codeList: any[];
|
|
18
20
|
integrateSearch: string;
|
|
21
|
+
isUseWrapper?: boolean;
|
|
19
22
|
centerCode: string;
|
|
20
23
|
}) => {
|
|
21
24
|
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
@@ -58,12 +61,21 @@ const BasicInfo = ({
|
|
|
58
61
|
setCssFlag(flag1 || flag2);
|
|
59
62
|
}
|
|
60
63
|
}, [lawyerInfo]);
|
|
64
|
+
|
|
65
|
+
const Container = ({ isUseWrapper, children }: { isUseWrapper?: boolean; children: React.ReactNode }) => {
|
|
66
|
+
return isUseWrapper ? (
|
|
67
|
+
<Wrapper>{children}</Wrapper>
|
|
68
|
+
) : (
|
|
69
|
+
<div className={'relative mx-auto max-w-screen-2xl'}>{children}</div>
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
|
|
61
73
|
return (
|
|
62
74
|
<div className={'relative w-full pb-[120px] max-md:pb-0'}>
|
|
63
75
|
{/*#F8F8F8 배경 768px부터 hidden*/}
|
|
64
76
|
<div className={'absolute bottom-0 h-[386px] w-full bg-[#F8F8F8] max-md:hidden'}></div>
|
|
65
77
|
|
|
66
|
-
<
|
|
78
|
+
<Container isUseWrapper={isUseWrapper}>
|
|
67
79
|
<div
|
|
68
80
|
className={
|
|
69
81
|
'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]'
|
|
@@ -210,8 +222,7 @@ const BasicInfo = ({
|
|
|
210
222
|
</p>
|
|
211
223
|
</div>
|
|
212
224
|
</div>
|
|
213
|
-
</
|
|
214
|
-
|
|
225
|
+
</Container>
|
|
215
226
|
{/*이름 mobile*/}
|
|
216
227
|
<p className={'mx-auto mt-4 w-[90%] md:hidden'}>
|
|
217
228
|
<span
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ILawyer } from '../ILawyerDetailTypes';
|
|
3
|
-
declare const Introduce: ({ lawyerInfo, integrateSearch }: {
|
|
3
|
+
declare const Introduce: ({ isUseWrapper, lawyerInfo, integrateSearch }: {
|
|
4
|
+
isUseWrapper?: boolean;
|
|
4
5
|
lawyerInfo: ILawyer;
|
|
5
6
|
integrateSearch: string;
|
|
6
7
|
}) => React.JSX.Element;
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { searchColorLawyerText } from '../../../common/integrate';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import { Wrapper } from '../../../index';
|
|
4
|
+
const Introduce = ({ isUseWrapper, lawyerInfo, integrateSearch }) => {
|
|
5
|
+
const Container = ({ isUseWrapper, children }) => {
|
|
6
|
+
return isUseWrapper ? (<Wrapper className={'py-[60px] max-md:py-10'}>{children}</Wrapper>) : (<section className={'mx-auto w-full max-w-screen-2xl py-[60px] ' +
|
|
7
|
+
//768px
|
|
8
|
+
'max-md:py-[40px]'}>
|
|
9
|
+
<div className={'mx-auto w-[90%]'}>{children}</div>
|
|
10
|
+
</section>);
|
|
11
|
+
};
|
|
12
|
+
return (<Container isUseWrapper={isUseWrapper}>
|
|
13
|
+
<p className={'text-[28px] font-[700] leading-[1.2] tracking-[-0.8px] ' +
|
|
9
14
|
//1280px
|
|
10
15
|
'max-xl:text-[26px] ' +
|
|
11
16
|
//768px
|
|
12
17
|
'max-md:text-[20px] '}>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
18
|
+
{searchColorLawyerText(lawyerInfo.l_introduce_main, integrateSearch)}
|
|
19
|
+
</p>
|
|
20
|
+
<p className={'mt-6 whitespace-pre-line break-all text-[24px] font-[500] tracking-[-0.9px] text-[#767676] ' +
|
|
16
21
|
//1280px
|
|
17
22
|
'max-xl:text-[18px] ' +
|
|
18
23
|
//768px
|
|
19
24
|
'max-md:text-[16px] max-md:leading-[1.4]'}>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</section>);
|
|
25
|
+
{searchColorLawyerText(lawyerInfo.l_introduce, integrateSearch)}
|
|
26
|
+
</p>
|
|
27
|
+
</Container>);
|
|
24
28
|
};
|
|
25
29
|
export default Introduce;
|
|
@@ -1,41 +1,58 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ILawyer } from '../ILawyerDetailTypes';
|
|
3
3
|
import { searchColorLawyerText } from '../../../common/integrate';
|
|
4
|
+
import { Wrapper } from '../../../index';
|
|
5
|
+
|
|
6
|
+
const Introduce = ({
|
|
7
|
+
isUseWrapper,
|
|
8
|
+
lawyerInfo,
|
|
9
|
+
integrateSearch
|
|
10
|
+
}: {
|
|
11
|
+
isUseWrapper?: boolean;
|
|
12
|
+
lawyerInfo: ILawyer;
|
|
13
|
+
integrateSearch: string;
|
|
14
|
+
}) => {
|
|
15
|
+
const Container = ({ isUseWrapper, children }: { isUseWrapper?: boolean; children: React.ReactNode }) => {
|
|
16
|
+
return isUseWrapper ? (
|
|
17
|
+
<Wrapper className={'py-[60px] max-md:py-10'}>{children}</Wrapper>
|
|
18
|
+
) : (
|
|
19
|
+
<section
|
|
20
|
+
className={
|
|
21
|
+
'mx-auto w-full max-w-screen-2xl py-[60px] ' +
|
|
22
|
+
//768px
|
|
23
|
+
'max-md:py-[40px]'
|
|
24
|
+
}
|
|
25
|
+
>
|
|
26
|
+
<div className={'mx-auto w-[90%]'}>{children}</div>
|
|
27
|
+
</section>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
4
30
|
|
|
5
|
-
const Introduce = ({ lawyerInfo, integrateSearch }: { lawyerInfo: ILawyer; integrateSearch: string }) => {
|
|
6
31
|
return (
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
//768px
|
|
32
|
-
'max-md:text-[16px] max-md:leading-[1.4]'
|
|
33
|
-
}
|
|
34
|
-
>
|
|
35
|
-
{searchColorLawyerText(lawyerInfo.l_introduce, integrateSearch)}
|
|
36
|
-
</p>
|
|
37
|
-
</div>
|
|
38
|
-
</section>
|
|
32
|
+
<Container isUseWrapper={isUseWrapper}>
|
|
33
|
+
<p
|
|
34
|
+
className={
|
|
35
|
+
'text-[28px] font-[700] leading-[1.2] tracking-[-0.8px] ' +
|
|
36
|
+
//1280px
|
|
37
|
+
'max-xl:text-[26px] ' +
|
|
38
|
+
//768px
|
|
39
|
+
'max-md:text-[20px] '
|
|
40
|
+
}
|
|
41
|
+
>
|
|
42
|
+
{searchColorLawyerText(lawyerInfo.l_introduce_main, integrateSearch)}
|
|
43
|
+
</p>
|
|
44
|
+
<p
|
|
45
|
+
className={
|
|
46
|
+
'mt-6 whitespace-pre-line break-all text-[24px] font-[500] tracking-[-0.9px] text-[#767676] ' +
|
|
47
|
+
//1280px
|
|
48
|
+
'max-xl:text-[18px] ' +
|
|
49
|
+
//768px
|
|
50
|
+
'max-md:text-[16px] max-md:leading-[1.4]'
|
|
51
|
+
}
|
|
52
|
+
>
|
|
53
|
+
{searchColorLawyerText(lawyerInfo.l_introduce, integrateSearch)}
|
|
54
|
+
</p>
|
|
55
|
+
</Container>
|
|
39
56
|
);
|
|
40
57
|
};
|
|
41
58
|
export default Introduce;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ILawyerCareer } from '../ILawyerDetailTypes';
|
|
3
|
-
declare const MobileSpeciality: ({ speciality, codeList, maxLines, integrateSearch }: {
|
|
3
|
+
declare const MobileSpeciality: ({ speciality, codeList, maxLines, integrateSearch, isUseWrapper }: {
|
|
4
|
+
isUseWrapper?: boolean;
|
|
4
5
|
speciality: ILawyerCareer[];
|
|
5
6
|
maxLines: number;
|
|
6
7
|
codeList: any[];
|
|
@@ -2,26 +2,31 @@ import Link from 'next/link';
|
|
|
2
2
|
import Image from 'next/image';
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
4
|
import { searchColorLawyerText } from '../../../common/integrate';
|
|
5
|
-
|
|
5
|
+
import { Wrapper } from '../../../index';
|
|
6
|
+
const MobileSpeciality = ({ speciality, codeList, maxLines, integrateSearch, isUseWrapper }) => {
|
|
6
7
|
const [mobileCareerViewMore, setMobileCareerViewMore] = useState(false);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
const Container = ({ isUseWrapper, children }) => {
|
|
9
|
+
return isUseWrapper ? (<Wrapper className={'mt-20 overflow-hidden max-lg:mt-[60px] max-sm:mt-10'}>{children}</Wrapper>) : (<section className={'mx-auto mt-[80px] max-w-screen-2xl ' +
|
|
10
|
+
//1024px
|
|
11
|
+
'max-lg:mt-[60px] ' +
|
|
12
|
+
//640px
|
|
13
|
+
'overflow-hidden max-sm:mt-[40px]'}>
|
|
14
|
+
<div className={'relative mx-auto w-[90%]'}>{children}</div>
|
|
15
|
+
</section>);
|
|
16
|
+
};
|
|
17
|
+
return (<Container isUseWrapper={isUseWrapper}>
|
|
18
|
+
{/*모바일 전문분야*/}
|
|
19
|
+
<div className={'m-auto w-full sm:w-full lg:hidden'}>
|
|
20
|
+
{speciality && speciality.length > 1 ? (<div className={''}>
|
|
21
|
+
<div className={'mb-[10px] text-[20px] font-[700] tracking-[-1px]'} id="fields">
|
|
22
|
+
관련 업무분야
|
|
23
|
+
</div>
|
|
19
24
|
|
|
20
|
-
|
|
25
|
+
<div className={'mb-[10px] !max-h-fit overflow-hidden'} style={{
|
|
21
26
|
height: maxLines < 80 || mobileCareerViewMore ? maxLines + 'px' : '80px'
|
|
22
27
|
}}>
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
<ul className={'h-fit w-full'} id={'field_box'}>
|
|
29
|
+
{speciality.map((item, index) => {
|
|
25
30
|
// prettier-ignore
|
|
26
31
|
const url = codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)) && codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)).length > 0
|
|
27
32
|
? codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt))[0].etc2
|
|
@@ -30,28 +35,27 @@ const MobileSpeciality = ({ speciality, codeList, maxLines, integrateSearch }) =
|
|
|
30
35
|
? item.career_txt.replace('일반소송', '민사').replace('중재', '손해배상')
|
|
31
36
|
: '';
|
|
32
37
|
return (<li className={'mr-[5px] mt-[5px] inline-block basis-[100%] flex-wrap rounded-[20px] border-[1px] border-solid border-[#dfdfdf] px-[10px] py-[4px] text-[16px] font-[700] tracking-[-0.9px] text-[#555] '} key={`li_key_${item}_${index}`}>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
<Link href={url} target={'_blank'} key={`a_key_${item}_${index}`}>
|
|
39
|
+
<span className={'flex items-center gap-[2px]'}>
|
|
40
|
+
<Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/hover_off.webp'} alt={careerTxt + '전문변호사'} width={6} height={6}/>
|
|
41
|
+
{searchColorLawyerText(careerTxt, integrateSearch)}
|
|
42
|
+
</span>
|
|
43
|
+
</Link>
|
|
44
|
+
</li>);
|
|
40
45
|
})}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
</ul>
|
|
47
|
+
</div>
|
|
48
|
+
<span className={'mb-[10px] block w-full'}>
|
|
49
|
+
<button onClick={() => {
|
|
45
50
|
setMobileCareerViewMore(true);
|
|
46
51
|
}} className={`${mobileCareerViewMore || maxLines <= 80 ? 'hidden ' : 'block '}` +
|
|
47
52
|
'mx-auto mt-[20px] w-fit rounded-[20px] border-[1px] border-solid border-[#767676] bg-[#767676] px-[20px] py-[4px] text-[16px] font-[700] tracking-[-0.9px] text-[#fff] ' +
|
|
48
53
|
'before:absolute before:bottom-[17px] before:left-[-50px] before:-z-10 before:block before:h-[1px] before:w-[1100px] before:bg-[#ddd] before:content-[""]'}>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
+
더보기 +
|
|
55
|
+
</button>
|
|
56
|
+
</span>
|
|
57
|
+
</div>) : ('')}
|
|
54
58
|
</div>
|
|
55
|
-
</
|
|
59
|
+
</Container>);
|
|
56
60
|
};
|
|
57
61
|
export default MobileSpeciality;
|