@daeryun/dr_components 0.5.32 → 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.
@@ -7,6 +7,7 @@ interface IDetailProps {
7
7
  certiList: ILawyerCerti[];
8
8
  codeList: ICommonCode[];
9
9
  centerCode: string;
10
+ isUseWrapper?: boolean;
10
11
  }
11
- declare const Detail: ({ lawyerInfo, careerList, certiList, codeList, speciality, centerCode }: IDetailProps) => React.JSX.Element | null;
12
+ declare const Detail: ({ lawyerInfo, careerList, certiList, codeList, speciality, centerCode, isUseWrapper }: IDetailProps) => React.JSX.Element | null;
12
13
  export default Detail;
@@ -20,7 +20,8 @@ import MobileSpeciality from './component/MobileSpeciality';
20
20
  import Introduce from './component/Introduce';
21
21
  import MobileRelatedPage from './component/MobileRelatedPage';
22
22
  import { bodyFetch, lawyerCode } from '../../../lib';
23
- const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, centerCode }) => {
23
+ import { Wrapper } from '../../index';
24
+ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, centerCode, isUseWrapper }) => {
24
25
  const searchParams = useSearchParams();
25
26
  const targetRefs = {
26
27
  career: useRef(null),
@@ -95,8 +96,13 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, cente
95
96
  }
96
97
  setIntegrateSearch(integrate_search ? String(integrate_search) : '');
97
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
+ };
98
104
  return lawyerInfo ? (<section id={'sub_contents'} className={'pt-[200px] max-lg:pt-[180px] max-md:pt-[120px] max-sm:pt-[68px]'}>
99
- <BasicInfo centerCode={centerCode} codeList={codeList} lawyerInfo={lawyerInfo} integrateSearch={integrateSearch}/>
105
+ <BasicInfo isUseWrapper={isUseWrapper} centerCode={centerCode} codeList={codeList} lawyerInfo={lawyerInfo} integrateSearch={integrateSearch}/>
100
106
 
101
107
  {/*변호사 설명*/}
102
108
  <Introduce lawyerInfo={lawyerInfo} integrateSearch={integrateSearch}/>
@@ -106,30 +112,28 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, cente
106
112
  {/*모바일 전문분야*/}
107
113
  <MobileSpeciality speciality={speciality} codeList={codeList} maxLines={maxLines} integrateSearch={integrateSearch}/>
108
114
 
109
- <section className={'mx-auto max-w-screen-2xl '}>
110
- <div className={'relative mx-auto w-[90%]'}>
111
- {/*모바일 업무사례, 언론보도, 후기*/}
112
- <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}/>
113
118
 
114
- {/*모바일 상단 버튼*/}
115
- <MobileTabButton targetRefs={targetRefs}/>
119
+ {/*모바일 상단 버튼*/}
120
+ <MobileTabButton targetRefs={targetRefs}/>
116
121
 
117
- {/*pc 상단 버튼*/}
118
- <PcTabButton targetTitleRefs={targetTitleRefs} targetRefs={targetRefs} careerList={careerList}/>
122
+ {/*pc 상단 버튼*/}
123
+ <PcTabButton targetTitleRefs={targetTitleRefs} targetRefs={targetRefs} careerList={careerList}/>
119
124
 
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}/>
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}/>
122
127
 
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>
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'}/>
133
+ </div>
134
+ </Link>
131
135
  </div>
132
- </section>
136
+ </Container>
133
137
  </section>) : null;
134
138
  };
135
139
  export default Detail;
@@ -13,6 +13,7 @@ import MobileSpeciality from './component/MobileSpeciality';
13
13
  import Introduce from './component/Introduce';
14
14
  import MobileRelatedPage from './component/MobileRelatedPage';
15
15
  import { bodyFetch, lawyerCode } from '../../../lib';
16
+ import { Wrapper } from '../../index';
16
17
 
17
18
  interface IDetailProps {
18
19
  lawyerInfo: ILawyer;
@@ -21,9 +22,18 @@ interface IDetailProps {
21
22
  certiList: ILawyerCerti[];
22
23
  codeList: ICommonCode[];
23
24
  centerCode: string;
25
+ isUseWrapper?: boolean;
24
26
  }
25
27
 
26
- const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, centerCode }: IDetailProps) => {
28
+ const Detail = ({
29
+ lawyerInfo,
30
+ careerList,
31
+ certiList,
32
+ codeList,
33
+ speciality,
34
+ centerCode,
35
+ isUseWrapper
36
+ }: IDetailProps) => {
27
37
  const searchParams = useSearchParams();
28
38
  const targetRefs = {
29
39
  career: useRef(null),
@@ -110,9 +120,20 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, cente
110
120
  setIntegrateSearch(integrate_search ? String(integrate_search) : '');
111
121
  }, [searchParams]);
112
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
+
113
133
  return lawyerInfo ? (
114
134
  <section id={'sub_contents'} className={'pt-[200px] max-lg:pt-[180px] max-md:pt-[120px] max-sm:pt-[68px]'}>
115
135
  <BasicInfo
136
+ isUseWrapper={isUseWrapper}
116
137
  centerCode={centerCode}
117
138
  codeList={codeList}
118
139
  lawyerInfo={lawyerInfo}
@@ -132,59 +153,57 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality, cente
132
153
  integrateSearch={integrateSearch}
133
154
  />
134
155
 
135
- <section className={'mx-auto max-w-screen-2xl '}>
136
- <div className={'relative mx-auto w-[90%]'}>
137
- {/*모바일 업무사례, 언론보도, 후기*/}
138
- <MobileRelatedPage
139
- lawyerInfo={lawyerInfo}
140
- successList={successList}
141
- broadcastList={broadcastList}
142
- reviewList={reviewList}
143
- isLawyer={isLawyer}
144
- />
145
-
146
- {/*모바일 상단 버튼*/}
147
- <MobileTabButton targetRefs={targetRefs} />
148
-
149
- {/*pc 상단 버튼*/}
150
- <PcTabButton targetTitleRefs={targetTitleRefs} targetRefs={targetRefs} careerList={careerList} />
151
-
152
- {/* 경력 리스트 */}
153
- <CareerList
154
- integrateSearch={integrateSearch}
155
- successList={successList}
156
- broadcastList={broadcastList}
157
- reviewList={reviewList}
158
- careerList={careerList}
159
- lawyerInfo={lawyerInfo}
160
- speciality={speciality}
161
- codeList={codeList}
162
- certiList={certiList}
163
- targetRefs={targetRefs}
164
- targetTitleRefs={targetTitleRefs}
165
- />
166
-
167
- <div className={'m-auto mb-[100px] flex w-[90%] max-w-[1400px] justify-center sm:justify-end '}>
168
- <Link href={'/lawyer' + queryStr}>
169
- <div
170
- className={
171
- '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] '
172
- }
173
- >
174
- 변호사 더보기
175
- <Image
176
- src={'https://d1tgonli21s4df.cloudfront.net/lawyer/Arrow_Right_LG.svg'}
177
- alt={''}
178
- title={''}
179
- width={36}
180
- height={36}
181
- className={'h-[30px] w-auto'}
182
- />
183
- </div>
184
- </Link>
185
- </div>
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
+ />
203
+ </div>
204
+ </Link>
186
205
  </div>
187
- </section>
206
+ </Container>
188
207
  </section>
189
208
  ) : null;
190
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
- 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,8 +110,7 @@ const BasicInfo = ({ lawyerInfo, codeList, centerCode, integrateSearch }) => {
106
110
  </p>
107
111
  </div>
108
112
  </div>
109
- </div>
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
- <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,8 +222,7 @@ const BasicInfo = ({
210
222
  </p>
211
223
  </div>
212
224
  </div>
213
- </div>
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
- 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[];
@@ -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
- const MobileSpeciality = ({ speciality, codeList, maxLines, integrateSearch }) => {
5
+ import { Wrapper } from '../../../index';
6
+ const MobileSpeciality = ({ speciality, codeList, maxLines, integrateSearch, isUseWrapper }) => {
6
7
  const [mobileCareerViewMore, setMobileCareerViewMore] = useState(false);
7
- return (<section className={'mx-auto mt-[80px] max-w-screen-2xl ' +
8
- //1024px
9
- 'max-lg:mt-[60px] ' +
10
- //640px
11
- 'overflow-hidden max-sm:mt-[40px]'}>
12
- <div className={'relative mx-auto w-[90%]'}>
13
- {/*모바일 전문분야*/}
14
- <div className={'m-auto w-full sm:w-full lg:hidden'}>
15
- {speciality && speciality.length > 1 ? (<div className={''}>
16
- <div className={'mb-[10px] text-[20px] font-[700] tracking-[-1px]'} id="fields">
17
- 관련 업무분야
18
- </div>
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
- <div className={'mb-[10px] !max-h-fit overflow-hidden'} style={{
25
+ <div className={'mb-[10px] !max-h-fit overflow-hidden'} style={{
21
26
  height: maxLines < 80 || mobileCareerViewMore ? maxLines + 'px' : '80px'
22
27
  }}>
23
- <ul className={'h-fit w-full'} id={'field_box'}>
24
- {speciality.map((item, index) => {
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
- <Link href={url} target={'_blank'} key={`a_key_${item}_${index}`}>
34
- <span className={'flex items-center gap-[2px]'}>
35
- <Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/hover_off.webp'} alt={careerTxt + '전문변호사'} width={6} height={6}/>
36
- {searchColorLawyerText(careerTxt, integrateSearch)}
37
- </span>
38
- </Link>
39
- </li>);
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
- </ul>
42
- </div>
43
- <span className={'mb-[10px] block w-full'}>
44
- <button onClick={() => {
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
- </button>
51
- </span>
52
- </div>) : ('')}
53
- </div>
54
+ 더보기 +
55
+ </button>
56
+ </span>
57
+ </div>) : ('')}
54
58
  </div>
55
- </section>);
59
+ </Container>);
56
60
  };
57
61
  export default MobileSpeciality;