@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.
@@ -96,62 +96,44 @@ 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
- <Introduce lawyerInfo={lawyerInfo} integrateSearch={integrateSearch}/>
108
+ <Introduce isUseWrapper={isUseWrapper} lawyerInfo={lawyerInfo} integrateSearch={integrateSearch}/>
104
109
 
105
110
  <div className={'h-[1px] w-full bg-[#ddd]'}></div>
106
111
 
107
112
  {/*모바일 전문분야*/}
108
- <MobileSpeciality speciality={speciality} codeList={codeList} maxLines={maxLines} integrateSearch={integrateSearch}/>
109
-
110
- {isUseWrapper ? (<Wrapper>
111
- {/*모바일 업무사례, 언론보도, 후기*/}
112
- <MobileRelatedPage lawyerInfo={lawyerInfo} successList={successList} broadcastList={broadcastList} reviewList={reviewList} isLawyer={isLawyer}/>
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}/>
113
+ <MobileSpeciality isUseWrapper={isUseWrapper} speciality={speciality} codeList={codeList} maxLines={maxLines} integrateSearch={integrateSearch}/>
122
114
 
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
- <MobileTabButton targetRefs={targetRefs}/>
119
+ {/*모바일 상단 버튼*/}
120
+ <MobileTabButton targetRefs={targetRefs}/>
138
121
 
139
- {/*pc 상단 버튼*/}
140
- <PcTabButton targetTitleRefs={targetTitleRefs} targetRefs={targetRefs} careerList={careerList}/>
122
+ {/*pc 상단 버튼*/}
123
+ <PcTabButton targetTitleRefs={targetTitleRefs} targetRefs={targetRefs} careerList={careerList}/>
141
124
 
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}/>
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
- <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>
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
- </div>
154
- </section>)}
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}
@@ -130,129 +141,70 @@ const Detail = ({
130
141
  />
131
142
 
132
143
  {/*변호사 설명*/}
133
- <Introduce lawyerInfo={lawyerInfo} integrateSearch={integrateSearch} />
144
+ <Introduce isUseWrapper={isUseWrapper} lawyerInfo={lawyerInfo} integrateSearch={integrateSearch} />
134
145
 
135
146
  <div className={'h-[1px] w-full bg-[#ddd]'}></div>
136
147
 
137
148
  {/*모바일 전문분야*/}
138
149
  <MobileSpeciality
150
+ isUseWrapper={isUseWrapper}
139
151
  speciality={speciality}
140
152
  codeList={codeList}
141
153
  maxLines={maxLines}
142
154
  integrateSearch={integrateSearch}
143
155
  />
144
156
 
145
- {isUseWrapper ? (
146
- <Wrapper>
147
- {/*모바일 업무사례, 언론보도, 후기*/}
148
- <MobileRelatedPage
149
- lawyerInfo={lawyerInfo}
150
- successList={successList}
151
- broadcastList={broadcastList}
152
- reviewList={reviewList}
153
- isLawyer={isLawyer}
154
- />
155
-
156
- {/*모바일 상단 버튼*/}
157
- <MobileTabButton targetRefs={targetRefs} />
158
-
159
- {/*pc 상단 버튼*/}
160
- <PcTabButton targetTitleRefs={targetTitleRefs} targetRefs={targetRefs} careerList={careerList} />
161
-
162
- {/* 경력 리스트 */}
163
- <CareerList
164
- integrateSearch={integrateSearch}
165
- successList={successList}
166
- broadcastList={broadcastList}
167
- reviewList={reviewList}
168
- careerList={careerList}
169
- lawyerInfo={lawyerInfo}
170
- speciality={speciality}
171
- codeList={codeList}
172
- certiList={certiList}
173
- targetRefs={targetRefs}
174
- targetTitleRefs={targetTitleRefs}
175
- />
176
-
177
- <div className={'m-auto mb-[100px] flex w-[90%] max-w-[1400px] justify-center sm:justify-end '}>
178
- <Link href={'/lawyer' + queryStr}>
179
- <div
180
- className={
181
- '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] '
182
- }
183
- >
184
- 변호사 더보기
185
- <Image
186
- src={'https://d1tgonli21s4df.cloudfront.net/lawyer/Arrow_Right_LG.svg'}
187
- alt={''}
188
- title={''}
189
- width={36}
190
- height={36}
191
- className={'h-[30px] w-auto'}
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>
157
+ <Container isUseWrapper={isUseWrapper}>
158
+ {/*모바일 업무사례, 언론보도, 후기*/}
159
+ <MobileRelatedPage
160
+ lawyerInfo={lawyerInfo}
161
+ successList={successList}
162
+ broadcastList={broadcastList}
163
+ reviewList={reviewList}
164
+ isLawyer={isLawyer}
165
+ />
166
+
167
+ {/*모바일 상단 버튼*/}
168
+ <MobileTabButton targetRefs={targetRefs} />
169
+
170
+ {/*pc 상단 버튼*/}
171
+ <PcTabButton targetTitleRefs={targetTitleRefs} targetRefs={targetRefs} careerList={careerList} />
172
+
173
+ {/* 경력 리스트 */}
174
+ <CareerList
175
+ integrateSearch={integrateSearch}
176
+ successList={successList}
177
+ broadcastList={broadcastList}
178
+ reviewList={reviewList}
179
+ careerList={careerList}
180
+ lawyerInfo={lawyerInfo}
181
+ speciality={speciality}
182
+ codeList={codeList}
183
+ certiList={certiList}
184
+ targetRefs={targetRefs}
185
+ targetTitleRefs={targetTitleRefs}
186
+ />
187
+
188
+ <div className={'m-auto mb-[100px] flex w-[90%] max-w-[1400px] justify-center sm:justify-end '}>
189
+ <Link href={'/lawyer' + queryStr}>
190
+ <div
191
+ className={
192
+ '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] '
193
+ }
194
+ >
195
+ 변호사 더보기
196
+ <Image
197
+ src={'https://d1tgonli21s4df.cloudfront.net/lawyer/Arrow_Right_LG.svg'}
198
+ alt={''}
199
+ title={''}
200
+ width={36}
201
+ height={36}
202
+ className={'h-[30px] w-auto'}
203
+ />
252
204
  </div>
253
- </div>
254
- </section>
255
- )}
205
+ </Link>
206
+ </div>
207
+ </Container>
256
208
  </section>
257
209
  ) : null;
258
210
  };
@@ -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
- const BasicInfo = ({ lawyerInfo, codeList, centerCode, integrateSearch }) => {
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
- <div className={'relative mx-auto max-w-screen-2xl'}>
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,10 +110,9 @@ const BasicInfo = ({ lawyerInfo, codeList, centerCode, integrateSearch }) => {
106
110
  </p>
107
111
  </div>
108
112
  </div>
109
- </div>
110
-
113
+ </Container>
111
114
  {/*이름 mobile*/}
112
- <p className={'mx-auto mt-4 w-[90%] md:hidden'}>
115
+ <p className={'mx-auto mt-4 md:hidden ' + (isUseWrapper ? '' : ' w-[90%] ')}>
113
116
  <span className={'text-[50px] font-[800] leading-[1.14] tracking-[-0.9px] max-md:text-[46px] max-xs:text-[40px] '}>
114
117
  {searchColorLawyerText(lawyerInfo.l_name, integrateSearch)}
115
118
  </span>
@@ -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
- <div className={'relative mx-auto max-w-screen-2xl'}>
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,10 +222,9 @@ const BasicInfo = ({
210
222
  </p>
211
223
  </div>
212
224
  </div>
213
- </div>
214
-
225
+ </Container>
215
226
  {/*이름 mobile*/}
216
- <p className={'mx-auto mt-4 w-[90%] md:hidden'}>
227
+ <p className={'mx-auto mt-4 md:hidden ' + (isUseWrapper ? '' : ' w-[90%] ')}>
217
228
  <span
218
229
  className={
219
230
  'text-[50px] font-[800] leading-[1.14] tracking-[-0.9px] max-md:text-[46px] max-xs:text-[40px] '
@@ -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
- const Introduce = ({ lawyerInfo, integrateSearch }) => {
4
- return (<section className={'mx-auto w-full max-w-screen-2xl py-[60px] ' +
5
- //768px
6
- 'max-md:py-[40px]'}>
7
- <div className={'mx-auto w-[90%]'}>
8
- <p className={'text-[28px] font-[700] leading-[1.2] tracking-[-0.8px] ' +
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
- {searchColorLawyerText(lawyerInfo.l_introduce_main, integrateSearch)}
14
- </p>
15
- <p className={'mt-6 whitespace-pre-line break-all text-[24px] font-[500] tracking-[-0.9px] text-[#767676] ' +
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
- {searchColorLawyerText(lawyerInfo.l_introduce, integrateSearch)}
21
- </p>
22
- </div>
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
- <section
8
- className={
9
- 'mx-auto w-full max-w-screen-2xl py-[60px] ' +
10
- //768px
11
- 'max-md:py-[40px]'
12
- }
13
- >
14
- <div className={'mx-auto w-[90%]'}>
15
- <p
16
- className={
17
- 'text-[28px] font-[700] leading-[1.2] tracking-[-0.8px] ' +
18
- //1280px
19
- 'max-xl:text-[26px] ' +
20
- //768px
21
- 'max-md:text-[20px] '
22
- }
23
- >
24
- {searchColorLawyerText(lawyerInfo.l_introduce_main, integrateSearch)}
25
- </p>
26
- <p
27
- className={
28
- 'mt-6 whitespace-pre-line break-all text-[24px] font-[500] tracking-[-0.9px] text-[#767676] ' +
29
- //1280px
30
- 'max-xl:text-[18px] ' +
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[];