@daeryun/dr_components 1.0.9 → 1.0.11

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.
Files changed (45) hide show
  1. package/dist/components/common/types/strength_new/index.d.ts +65 -0
  2. package/dist/components/common/types/strength_new/index.js +1 -0
  3. package/dist/components/common/types/strength_new/index.ts +68 -0
  4. package/dist/components/page/LawInfoNew/LawInfoNew.jsx +21 -20
  5. package/dist/components/page/LawInfoNew/LawInfoNew.tsx +37 -24
  6. package/dist/components/page/LawInfoNew/LawInfoNewTypes.d.ts +1 -1
  7. package/dist/components/page/LawInfoNew/LawInfoNewTypes.ts +1 -1
  8. package/dist/components/page/StrengthNew/StrengthNew.d.ts +8 -0
  9. package/dist/components/page/StrengthNew/StrengthNew.jsx +11 -0
  10. package/dist/components/page/StrengthNew/StrengthNew.tsx +28 -0
  11. package/dist/components/page/StrengthNew/StrengthPeople.d.ts +8 -0
  12. package/dist/components/page/StrengthNew/StrengthPeople.jsx +13 -0
  13. package/dist/components/page/StrengthNew/StrengthPeople.tsx +34 -0
  14. package/dist/components/page/StrengthNew/StrengthSystem.d.ts +8 -0
  15. package/dist/components/page/StrengthNew/StrengthSystem.jsx +13 -0
  16. package/dist/components/page/StrengthNew/StrengthSystem.tsx +35 -0
  17. package/dist/components/page/StrengthNew/components/common/BannerSection.d.ts +13 -0
  18. package/dist/components/page/StrengthNew/components/common/BannerSection.jsx +111 -0
  19. package/dist/components/page/StrengthNew/components/common/BannerSection.tsx +231 -0
  20. package/dist/components/page/StrengthNew/components/common/LawyerSection.d.ts +12 -0
  21. package/dist/components/page/StrengthNew/components/common/LawyerSection.jsx +82 -0
  22. package/dist/components/page/StrengthNew/components/common/LawyerSection.tsx +193 -0
  23. package/dist/components/page/StrengthNew/components/common/ViewMoreSection.d.ts +9 -0
  24. package/dist/components/page/StrengthNew/components/common/ViewMoreSection.jsx +141 -0
  25. package/dist/components/page/StrengthNew/components/common/ViewMoreSection.tsx +297 -0
  26. package/dist/components/page/StrengthNew/components/main/IntroSection.d.ts +6 -0
  27. package/dist/components/page/StrengthNew/components/main/IntroSection.jsx +66 -0
  28. package/dist/components/page/StrengthNew/components/main/IntroSection.tsx +115 -0
  29. package/dist/components/page/StrengthNew/components/people/PeopleSection.d.ts +10 -0
  30. package/dist/components/page/StrengthNew/components/people/PeopleSection.jsx +166 -0
  31. package/dist/components/page/StrengthNew/components/people/PeopleSection.tsx +324 -0
  32. package/dist/components/page/StrengthNew/components/system/SystemSection.d.ts +6 -0
  33. package/dist/components/page/StrengthNew/components/system/SystemSection.jsx +270 -0
  34. package/dist/components/page/StrengthNew/components/system/SystemSection.tsx +495 -0
  35. package/dist/components/page/SuccessNew/SuccessNewType.d.ts +1 -0
  36. package/dist/components/page/SuccessNew/SuccessNewType.ts +1 -0
  37. package/dist/components/page/SuccessNew/components/H2Contents.d.ts +2 -1
  38. package/dist/components/page/SuccessNew/components/H2Contents.jsx +44 -6
  39. package/dist/components/page/SuccessNew/components/H2Contents.tsx +64 -12
  40. package/dist/components/page/SuccessNew/components/H3Contents.d.ts +2 -1
  41. package/dist/components/page/SuccessNew/components/H3Contents.jsx +43 -5
  42. package/dist/components/page/SuccessNew/components/H3Contents.tsx +57 -9
  43. package/dist/styles/globals.css +1091 -0
  44. package/dist/tsconfig.tsbuildinfo +1 -1
  45. package/package.json +1 -1
@@ -0,0 +1,65 @@
1
+ export interface IMainPageDataTypes {
2
+ title_1: string;
3
+ title_2: string;
4
+ p_1: string;
5
+ p_2: string;
6
+ p_3: string;
7
+ p_4: string;
8
+ p_5: string;
9
+ }
10
+ export interface ISystemPageDataTypes {
11
+ title_1: string;
12
+ title_2: string;
13
+ consult_step_1_title: string;
14
+ consult_step_1_desc: string;
15
+ consult_step_2_title: string;
16
+ consult_step_2_desc: string;
17
+ system_list: {
18
+ title: string;
19
+ desc: string;
20
+ list?: {
21
+ title: string;
22
+ list: string[];
23
+ }[] | string[];
24
+ }[];
25
+ }
26
+ export interface IPeoplePageDataTypes {
27
+ title_1: string;
28
+ title_2: string;
29
+ people_list: {
30
+ title: string;
31
+ desc: string;
32
+ }[];
33
+ }
34
+ export interface ICommonTypes {
35
+ menu: {
36
+ url: string;
37
+ text: string;
38
+ color: string;
39
+ }[];
40
+ lawyer_title_1: string;
41
+ lawyer_title_2: string;
42
+ lawyer_link_list: {
43
+ title: string;
44
+ buttonText: string;
45
+ url: string;
46
+ color: string;
47
+ }[];
48
+ view_more_section_title: string;
49
+ view_more_list: {
50
+ title: string;
51
+ subTitle: string;
52
+ description: string;
53
+ url: string;
54
+ color: string;
55
+ view_more_text: string;
56
+ }[];
57
+ }
58
+ export interface IViewMoreListTypes {
59
+ title: string;
60
+ subTitle: string;
61
+ description: string;
62
+ url: string;
63
+ color: string;
64
+ view_more_text: string;
65
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,68 @@
1
+ //db data
2
+ export interface IMainPageDataTypes {
3
+ title_1: string;
4
+ title_2: string;
5
+ p_1: string;
6
+ p_2: string;
7
+ p_3: string;
8
+ p_4: string;
9
+ p_5: string;
10
+ }
11
+
12
+ export interface ISystemPageDataTypes {
13
+ title_1: string;
14
+ title_2: string;
15
+ consult_step_1_title: string;
16
+ consult_step_1_desc: string;
17
+ consult_step_2_title: string;
18
+ consult_step_2_desc: string;
19
+ system_list: {
20
+ title: string;
21
+ desc: string;
22
+ list?: { title: string; list: string[] }[] | string[];
23
+ }[];
24
+ }
25
+
26
+ export interface IPeoplePageDataTypes {
27
+ title_1: string;
28
+ title_2: string;
29
+ people_list: {
30
+ title: string;
31
+ desc: string;
32
+ }[];
33
+ }
34
+
35
+ export interface ICommonTypes {
36
+ menu: {
37
+ url: string;
38
+ text: string;
39
+ color: string;
40
+ }[];
41
+ lawyer_title_1: string;
42
+ lawyer_title_2: string;
43
+ lawyer_link_list: {
44
+ title: string;
45
+ buttonText: string;
46
+ url: string;
47
+ color: string;
48
+ }[];
49
+ view_more_section_title: string;
50
+ view_more_list: {
51
+ title: string;
52
+ subTitle: string;
53
+ description: string;
54
+ url: string;
55
+ color: string;
56
+ view_more_text: string;
57
+ }[];
58
+ }
59
+
60
+ //페이지용
61
+ export interface IViewMoreListTypes {
62
+ title: string;
63
+ subTitle: string;
64
+ description: string;
65
+ url: string;
66
+ color: string;
67
+ view_more_text: string;
68
+ }
@@ -19,7 +19,7 @@ import Image from 'next/image';
19
19
  import Arrow from '../../../asset/images/success_new/left.webp';
20
20
  import RightArrow from '../../../asset/images/success_new/right.webp';
21
21
  const LawInfoNew = ({ data, tel }) => {
22
- const { template, contentsList, h2List, lawyerData, fieldData, successData, groupTopTenLawyerList, referenceLinkList, newsLinkList, shortsLinkList, youtubeLinkList, initialData, nextPost, prevPost, faqCount } = data;
22
+ const { template, contentsList, h2List, lawyerData, fieldData, successData, groupTopTenLawyerList, referenceLinkList, newsLinkList, shortsLinkList, youtubeLinkList, initialData, nextPost, prevPost, faqElementMaxCountInContents } = data;
23
23
  const { width } = useBrowser(true);
24
24
  const [relatedCaseLawyerList, setRelatedCaseLawyerList] = useState(lawyerData);
25
25
  const [isFaqActive, setIsFaqActive] = useState(false);
@@ -74,31 +74,29 @@ const LawInfoNew = ({ data, tel }) => {
74
74
  }
75
75
  }
76
76
  }, [template]);
77
- console.log('faqCount : ', faqCount);
78
77
  const handleFaqItemType = (isFaqActive, faqCount) => {
79
- let isActive = faqCount >= 2 ? true : false;
80
- if (isFaqActive || isActive) {
81
- return 'https://schema.org/FAQPage';
78
+ if (isFaqActive || faqCount >= 1) {
79
+ return undefined;
82
80
  }
83
- return undefined;
81
+ return 'https://schema.org/FAQPage';
82
+ };
83
+ const handleFaqItemScope = (isFaqActive, faqCount) => {
84
+ if (isFaqActive || faqCount >= 1) {
85
+ return undefined;
86
+ }
87
+ return true;
84
88
  };
85
89
  const convertFaqItemType = (template) => {
86
- if (faqCount >= 2) {
87
- template.description = template.description.replaceAll('itemtype="https://schema.org/FAQPage"', '');
88
- console.log('변경된 template : ', template);
90
+ console.log('faqElementMaxCountInContents : ', faqElementMaxCountInContents);
91
+ if (faqElementMaxCountInContents >= 2) {
92
+ template.description = template.description.replaceAll(/<div\s+itemscope=""\s+itemtype="https:\/\/schema\.org\/FAQPage">/gi, '<div>');
89
93
  return template;
90
94
  }
91
95
  return template;
92
96
  };
93
- const checkFaqItemScope = (isFaqActive, faqCount) => {
94
- if (isFaqActive || faqCount >= 2) {
95
- return true;
96
- }
97
- return undefined;
98
- };
99
- return (<div itemScope={checkFaqItemScope(isFaqActive, faqCount)} itemType={handleFaqItemType(isFaqActive, faqCount)} ref={printRef}>
97
+ return (<div itemScope={handleFaqItemScope(isFaqActive, faqElementMaxCountInContents)} itemType={handleFaqItemType(isFaqActive, faqElementMaxCountInContents)} ref={printRef}>
100
98
  <div id={'sub_contents'}>
101
- <div className="font-[SUIT]] relative m-auto mb-[60px] w-[90%] max-w-screen-2xl max-xs:mb-[30px]">
99
+ <div className="relative m-auto mb-[60px] w-[90%] max-w-screen-2xl font-[SUIT] max-xs:mb-[30px]">
102
100
  <div className={'m-auto mt-[100px] flex gap-[120px] lg:mt-[5em] ' +
103
101
  //1700px
104
102
  'max-5xl:gap-[80px] ' +
@@ -124,15 +122,18 @@ const LawInfoNew = ({ data, tel }) => {
124
122
  </div>
125
123
  </div>
126
124
 
127
- <article>
125
+ <article itemScope={faqElementMaxCountInContents >= 1 ? undefined : true} itemType={faqElementMaxCountInContents >= 1
126
+ ? undefined
127
+ : 'https://schema.org/FAQPage'}>
128
128
  {/*목차*/}
129
129
  <ContentList template={template} h2List={h2List ? h2List : []} onScrollToElement={handleScrollToElement}/>
130
130
 
131
131
  {/*h2*/}
132
132
  {h2List &&
133
133
  h2List.map((h2Template, index) => {
134
+ console.log('h2Template.faqCount : ', h2Template === null || h2Template === void 0 ? void 0 : h2Template.faqCount);
134
135
  return (<section className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'} key={'h2영역' + h2Template.idx}>
135
- <H2Contents h2Template={convertFaqItemType(h2Template)} index={index}/>
136
+ <H2Contents h2Template={convertFaqItemType(h2Template)} index={index} faqCount={h2Template.faqCount}/>
136
137
 
137
138
  {/*h3*/}
138
139
  {template
@@ -145,7 +146,7 @@ const LawInfoNew = ({ data, tel }) => {
145
146
  const news_length = newsLinkList.length;
146
147
  const news_content_length = newsLinkList.filter(i => i.tag_idx === h3Template.idx).length;
147
148
  return (<>
148
- <H3Contents h3Template={convertFaqItemType(h3Template)} key={'h3영역' + h3Template.idx}/>
149
+ <H3Contents h3Template={convertFaqItemType(h3Template)} key={'h3영역' + h3Template.idx} faqCount={h3Template.faqCount}/>
149
150
  {(refer_is_use &&
150
151
  refer_length > 0 &&
151
152
  refer_content_length > 0) ||
@@ -39,7 +39,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
39
39
  initialData,
40
40
  nextPost,
41
41
  prevPost,
42
- faqCount
42
+ faqElementMaxCountInContents
43
43
  } = data;
44
44
  const { width } = useBrowser(true);
45
45
  const [relatedCaseLawyerList, setRelatedCaseLawyerList] = useState<ILawyerTypes[]>(lawyerData);
@@ -102,44 +102,44 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
102
102
  }
103
103
  }, [template]);
104
104
 
105
- console.log('faqCount : ', faqCount);
106
-
107
- const handleFaqItemType = (isFaqActive: boolean, faqCount: number) => {
108
- let isActive = faqCount >= 2 ? true : false;
109
-
110
- if (isFaqActive || isActive) {
111
- return 'https://schema.org/FAQPage';
105
+ const handleFaqItemType = (isFaqActive: boolean, faqCount: number): string | undefined => {
106
+ if (isFaqActive || faqCount >= 1) {
107
+ return undefined;
112
108
  }
113
109
 
114
- return undefined;
110
+ return 'https://schema.org/FAQPage';
115
111
  };
116
112
 
117
- const convertFaqItemType = (template: ISeoTemplateTypes) => {
118
- if (faqCount as number >= 2) {
119
- template.description = template.description.replaceAll('itemtype="https://schema.org/FAQPage"', '');
120
- console.log('변경된 template : ', template);
121
- return template;
113
+ const handleFaqItemScope = (isFaqActive: boolean, faqCount: number): true | undefined => {
114
+ if (isFaqActive || faqCount >= 1) {
115
+ return undefined;
122
116
  }
123
117
 
124
- return template;
118
+ return true;
125
119
  };
126
120
 
127
- const checkFaqItemScope = (isFaqActive: boolean, faqCount: number) => {
128
- if (isFaqActive || faqCount as number >= 2) {
129
- return true;
121
+ const convertFaqItemType = (template: ISeoTemplateTypes): ISeoTemplateTypes => {
122
+ console.log('faqElementMaxCountInContents : ', faqElementMaxCountInContents);
123
+ if ((faqElementMaxCountInContents as number) >= 2) {
124
+ template.description = template.description.replaceAll(
125
+ /&lt;div\s+itemscope=""\s+itemtype="https:\/\/schema\.org\/FAQPage"&gt;/gi,
126
+ '&lt;div&gt;'
127
+ );
128
+
129
+ return template;
130
130
  }
131
131
 
132
- return undefined;
132
+ return template;
133
133
  };
134
134
 
135
135
  return (
136
136
  <div
137
- itemScope={checkFaqItemScope(isFaqActive, faqCount as number)}
138
- itemType={handleFaqItemType(isFaqActive, faqCount as number)}
137
+ itemScope={handleFaqItemScope(isFaqActive, faqElementMaxCountInContents as number)}
138
+ itemType={handleFaqItemType(isFaqActive, faqElementMaxCountInContents as number)}
139
139
  ref={printRef}
140
140
  >
141
141
  <div id={'sub_contents'}>
142
- <div className="font-[SUIT]] relative m-auto mb-[60px] w-[90%] max-w-screen-2xl max-xs:mb-[30px]">
142
+ <div className="relative m-auto mb-[60px] w-[90%] max-w-screen-2xl font-[SUIT] max-xs:mb-[30px]">
143
143
  <div
144
144
  className={
145
145
  'm-auto mt-[100px] flex gap-[120px] lg:mt-[5em] ' +
@@ -187,7 +187,14 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
187
187
  </div>
188
188
  </div>
189
189
 
190
- <article>
190
+ <article
191
+ itemScope={(faqElementMaxCountInContents as number) >= 1 ? undefined : true}
192
+ itemType={
193
+ (faqElementMaxCountInContents as number) >= 1
194
+ ? undefined
195
+ : 'https://schema.org/FAQPage'
196
+ }
197
+ >
191
198
  {/*목차*/}
192
199
  <ContentList
193
200
  template={template}
@@ -198,12 +205,17 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
198
205
  {/*h2*/}
199
206
  {h2List &&
200
207
  h2List.map((h2Template, index) => {
208
+ console.log('h2Template.faqCount : ', h2Template?.faqCount);
201
209
  return (
202
210
  <section
203
211
  className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'}
204
212
  key={'h2영역' + h2Template.idx}
205
213
  >
206
- <H2Contents h2Template={convertFaqItemType(h2Template)} index={index} />
214
+ <H2Contents
215
+ h2Template={convertFaqItemType(h2Template)}
216
+ index={index}
217
+ faqCount={h2Template.faqCount}
218
+ />
207
219
 
208
220
  {/*h3*/}
209
221
  {template
@@ -226,6 +238,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
226
238
  <H3Contents
227
239
  h3Template={convertFaqItemType(h3Template)}
228
240
  key={'h3영역' + h3Template.idx}
241
+ faqCount={h3Template.faqCount}
229
242
  />
230
243
  {(refer_is_use &&
231
244
  refer_length > 0 &&
@@ -27,5 +27,5 @@ export interface ILawInfoNewTypes {
27
27
  shortsLinkList: IAddLinkTypes[];
28
28
  youtubeLinkList: IAddLinkTypes[];
29
29
  initialData: IInitialDataTypes;
30
- faqCount?: number | null;
30
+ faqElementMaxCountInContents?: number;
31
31
  }
@@ -27,5 +27,5 @@ export interface ILawInfoNewTypes {
27
27
  shortsLinkList: IAddLinkTypes[];
28
28
  youtubeLinkList: IAddLinkTypes[];
29
29
  initialData: IInitialDataTypes;
30
- faqCount?: number | null;
30
+ faqElementMaxCountInContents?: number;
31
31
  }
@@ -0,0 +1,8 @@
1
+ import { IMainPageDataTypes, ICommonTypes } from '../../common/types/strength_new';
2
+ import { IInitialDataTypes } from '../../common';
3
+ declare const StrengthNew: ({ data, common, initialData }: {
4
+ data: IMainPageDataTypes;
5
+ common: ICommonTypes;
6
+ initialData: IInitialDataTypes;
7
+ }) => import("react").JSX.Element;
8
+ export default StrengthNew;
@@ -0,0 +1,11 @@
1
+ import BannerSection from './components/common/BannerSection';
2
+ import IntroSection from './components/main/IntroSection';
3
+ import ViewMoreSection from './components/common/ViewMoreSection';
4
+ const StrengthNew = ({ data, common, initialData }) => {
5
+ return (<div className={'font-[NotoSansKR]'}>
6
+ <BannerSection title={data.title_1} subTitle={data.title_2} menu={common.menu} initialData={initialData}/>
7
+ <IntroSection data={data}/>
8
+ <ViewMoreSection view_more_section_title={common.view_more_section_title} view_more_list={common.view_more_list} initialData={initialData}/>
9
+ </div>);
10
+ };
11
+ export default StrengthNew;
@@ -0,0 +1,28 @@
1
+ import { IMainPageDataTypes, ICommonTypes } from '../../common/types/strength_new';
2
+ import { IInitialDataTypes } from '../../common';
3
+ import BannerSection from './components/common/BannerSection';
4
+ import IntroSection from './components/main/IntroSection';
5
+ import ViewMoreSection from './components/common/ViewMoreSection';
6
+
7
+ const StrengthNew = ({
8
+ data,
9
+ common,
10
+ initialData
11
+ }: {
12
+ data: IMainPageDataTypes;
13
+ common: ICommonTypes;
14
+ initialData: IInitialDataTypes;
15
+ }) => {
16
+ return (
17
+ <div className={'font-[NotoSansKR]'}>
18
+ <BannerSection title={data.title_1} subTitle={data.title_2} menu={common.menu} initialData={initialData} />
19
+ <IntroSection data={data} />
20
+ <ViewMoreSection
21
+ view_more_section_title={common.view_more_section_title}
22
+ view_more_list={common.view_more_list}
23
+ initialData={initialData}
24
+ />
25
+ </div>
26
+ );
27
+ };
28
+ export default StrengthNew;
@@ -0,0 +1,8 @@
1
+ import { ICommonTypes, IPeoplePageDataTypes } from '../../common/types/strength_new';
2
+ import { IInitialDataTypes } from '../../common';
3
+ declare const StrengthNew: ({ data, common, initialData }: {
4
+ data: IPeoplePageDataTypes;
5
+ common: ICommonTypes;
6
+ initialData: IInitialDataTypes;
7
+ }) => import("react").JSX.Element;
8
+ export default StrengthNew;
@@ -0,0 +1,13 @@
1
+ import BannerSection from './components/common/BannerSection';
2
+ import ViewMoreSection from './components/common/ViewMoreSection';
3
+ import PeopleSection from './components/people/PeopleSection';
4
+ import LawyerSection from './components/common/LawyerSection';
5
+ const StrengthNew = ({ data, common, initialData }) => {
6
+ return (<div className={'font-[NotoSansKR]'}>
7
+ <BannerSection title={data.title_1} subTitle={data.title_2} menu={common.menu} initialData={initialData}/>
8
+ <PeopleSection people_list={data.people_list} initialData={initialData}/>
9
+ <ViewMoreSection view_more_section_title={common.view_more_section_title} view_more_list={common.view_more_list} initialData={initialData}/>
10
+ <LawyerSection lawyer_title_1={common.lawyer_title_1} lawyer_title_2={common.lawyer_title_2} lawyer_link_list={common.lawyer_link_list}/>
11
+ </div>);
12
+ };
13
+ export default StrengthNew;
@@ -0,0 +1,34 @@
1
+ import { IMainPageDataTypes, ICommonTypes, IPeoplePageDataTypes } from '../../common/types/strength_new';
2
+ import { IInitialDataTypes } from '../../common';
3
+ import BannerSection from './components/common/BannerSection';
4
+ import ViewMoreSection from './components/common/ViewMoreSection';
5
+ import PeopleSection from './components/people/PeopleSection';
6
+ import LawyerSection from './components/common/LawyerSection';
7
+
8
+ const StrengthNew = ({
9
+ data,
10
+ common,
11
+ initialData
12
+ }: {
13
+ data: IPeoplePageDataTypes;
14
+ common: ICommonTypes;
15
+ initialData: IInitialDataTypes;
16
+ }) => {
17
+ return (
18
+ <div className={'font-[NotoSansKR]'}>
19
+ <BannerSection title={data.title_1} subTitle={data.title_2} menu={common.menu} initialData={initialData} />
20
+ <PeopleSection people_list={data.people_list} initialData={initialData} />
21
+ <ViewMoreSection
22
+ view_more_section_title={common.view_more_section_title}
23
+ view_more_list={common.view_more_list}
24
+ initialData={initialData}
25
+ />
26
+ <LawyerSection
27
+ lawyer_title_1={common.lawyer_title_1}
28
+ lawyer_title_2={common.lawyer_title_2}
29
+ lawyer_link_list={common.lawyer_link_list}
30
+ />
31
+ </div>
32
+ );
33
+ };
34
+ export default StrengthNew;
@@ -0,0 +1,8 @@
1
+ import { ICommonTypes, ISystemPageDataTypes } from '../../common/types/strength_new';
2
+ import { IInitialDataTypes } from '../../common';
3
+ declare const Index: ({ data, common, initialData }: {
4
+ data: ISystemPageDataTypes;
5
+ common: ICommonTypes;
6
+ initialData: IInitialDataTypes;
7
+ }) => import("react").JSX.Element;
8
+ export default Index;
@@ -0,0 +1,13 @@
1
+ import SystemSection from './components/system/SystemSection';
2
+ import LawyerSection from './components/common/LawyerSection';
3
+ import BannerSection from './components/common/BannerSection';
4
+ import ViewMoreSection from './components/common/ViewMoreSection';
5
+ const Index = ({ data, common, initialData }) => {
6
+ return (<div className={'font-[NotoSansKR]'}>
7
+ <BannerSection title={data.title_1} subTitle={data.title_2} menu={common.menu} initialData={initialData}/>
8
+ <SystemSection data={data}/>
9
+ <ViewMoreSection view_more_section_title={common.view_more_section_title} view_more_list={common.view_more_list} initialData={initialData}/>
10
+ <LawyerSection lawyer_title_1={common.lawyer_title_1} lawyer_title_2={common.lawyer_title_2} lawyer_link_list={common.lawyer_link_list}/>
11
+ </div>);
12
+ };
13
+ export default Index;
@@ -0,0 +1,35 @@
1
+ //사건처리 시스템
2
+ import { ICommonTypes, ISystemPageDataTypes } from '../../common/types/strength_new';
3
+ import { IInitialDataTypes } from '../../common';
4
+ import SystemSection from './components/system/SystemSection';
5
+ import LawyerSection from './components/common/LawyerSection';
6
+ import BannerSection from './components/common/BannerSection';
7
+ import ViewMoreSection from './components/common/ViewMoreSection';
8
+
9
+ const Index = ({
10
+ data,
11
+ common,
12
+ initialData
13
+ }: {
14
+ data: ISystemPageDataTypes;
15
+ common: ICommonTypes;
16
+ initialData: IInitialDataTypes;
17
+ }) => {
18
+ return (
19
+ <div className={'font-[NotoSansKR]'}>
20
+ <BannerSection title={data.title_1} subTitle={data.title_2} menu={common.menu} initialData={initialData} />
21
+ <SystemSection data={data} />
22
+ <ViewMoreSection
23
+ view_more_section_title={common.view_more_section_title}
24
+ view_more_list={common.view_more_list}
25
+ initialData={initialData}
26
+ />
27
+ <LawyerSection
28
+ lawyer_title_1={common.lawyer_title_1}
29
+ lawyer_title_2={common.lawyer_title_2}
30
+ lawyer_link_list={common.lawyer_link_list}
31
+ />
32
+ </div>
33
+ );
34
+ };
35
+ export default Index;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { IInitialDataTypes } from '../../../../common';
3
+ declare const BannerSection: ({ title, subTitle, menu, initialData }: {
4
+ title: React.ReactNode;
5
+ subTitle: React.ReactNode;
6
+ menu: {
7
+ url: string;
8
+ text: string;
9
+ color: string;
10
+ }[];
11
+ initialData: IInitialDataTypes;
12
+ }) => React.JSX.Element;
13
+ export default BannerSection;
@@ -0,0 +1,111 @@
1
+ import { useTranslation } from 'next-i18next';
2
+ import Link from 'next/link';
3
+ import Image from 'next/image';
4
+ import React from 'react';
5
+ import { usePathname } from 'next/navigation';
6
+ import { useRouter } from 'next/router';
7
+ import CategoryMenuForPage from '../../../../CategoryMenu/CategoryMenuForPage';
8
+ import Wrapper from '../../../../Layout/Wrapper';
9
+ import { replaceInitialData } from '../../../../../lib';
10
+ const BannerSection = ({ title, subTitle, menu, initialData }) => {
11
+ const { t } = useTranslation('common');
12
+ const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
13
+ const pathname = usePathname();
14
+ const router = useRouter();
15
+ const isMain = pathname === '/strength';
16
+ const bannerImg = pathname.replace('/strength/', '') + '_banner';
17
+ return (<section className={'relative h-[620px] w-full overflow-hidden pt-[196px] ' +
18
+ 'max-3xl:h-[580px] ' +
19
+ 'max-lg:h-[420px] max-lg:pt-[162px] ' +
20
+ 'max-md:h-[400px] ' +
21
+ 'max-sm:pt-[108px] ' +
22
+ (isMain ? 'bg-[#D1E4F7] max-xs:h-[342px]' : 'max-xs:h-[400px]')}>
23
+ <Wrapper className={'relative z-10 w-full '}>
24
+ <CategoryMenuForPage className={'font-[SUIT]'}/>
25
+ <div className={'flex w-full flex-col tracking-[-0.04em] ' +
26
+ (isMain
27
+ ? ' mt-20 gap-20 max-lg:mt-9 '
28
+ : ' mt-[60px] gap-10 max-lg:mt-4 max-lg:gap-5 max-sm:mt-10 ')}>
29
+ {isMain ? (<h1 className={'text-center text-[40px] font-[400] leading-[1] ' +
30
+ 'max-3xl:text-[34px] ' +
31
+ 'max-xl:text-[30px] ' +
32
+ 'max-lg:text-[24px] ' +
33
+ 'max-md:text-[22px] ' +
34
+ 'max-xs:text-[20px]'}>
35
+ {title}
36
+ <span className={'mt-4 block text-[64px] font-[800] ' +
37
+ 'max-3xl:text-[54px] ' +
38
+ 'max-xl:text-[46px] ' +
39
+ 'max-lg:mt-[10px] max-lg:text-[40px] ' +
40
+ 'max-md:text-[34px] ' +
41
+ 'max-xs:text-[28px]'}>
42
+ {subTitle}
43
+ </span>
44
+ </h1>) : (<>
45
+ <h1 className={'text-center text-[52px] font-[800] leading-[1] ' +
46
+ 'max-3xl:text-[46px] ' +
47
+ 'max-xl:text-[42px] ' +
48
+ 'max-lg:text-[36px] ' +
49
+ 'max-md:text-[32px] ' +
50
+ 'max-xs:text-[28px] '}>
51
+ {title}
52
+ </h1>
53
+ <p className={'text-center text-[24px] leading-[1.4] ' +
54
+ 'max-3xl:text-[22px] ' +
55
+ 'max-lg:text-[20px] ' +
56
+ 'max-md:text-[18px] ' +
57
+ 'max-xs:text-left max-xs:text-[16px] sm:whitespace-pre-wrap'}>
58
+ {replaceInitialData(String(subTitle), initialData)}
59
+ </p>
60
+ </>)}
61
+ </div>
62
+ </Wrapper>
63
+
64
+ <div className={'!absolute bottom-0 z-20 h-[60px] w-full bg-[#5368C41A] font-[SUIT] max-lg:h-12 max-sm:h-fit max-sm:bg-[unset]'}>
65
+ <div className={'relative mx-auto h-full w-full max-w-[1920px] px-[40px] max-[2120px]:px-[140px] max-3xl:px-[80px] max-xl:w-[100%] max-lg:px-[60px] max-sm:px-0 '}>
66
+ <div className={'mx-auto grid h-full w-full max-w-[1400px] grid-cols-4 max-lg:max-w-[760px] max-sm:grid-cols-2 max-sm:gap-[2px]'}>
67
+ {menu.map(menu => {
68
+ return (<Link href={`/strength/${menu.url}`} key={menu.url} style={{ color: menu.color }} className={'flex h-full w-full items-center justify-center text-[24px] leading-none tracking-[-0.7px] ' +
69
+ 'max-3xl:text-[22px] ' +
70
+ 'max-lg:text-[20px] ' +
71
+ 'max-md:text-[18px] ' +
72
+ 'max-sm:h-10 max-sm:bg-[#5368C41A] max-sm:text-[16px] ' +
73
+ 'transition-[background-color,font-weight] duration-500 hover:bg-[#5368C433] hover:font-[800] ' +
74
+ (pathname.includes(menu.url)
75
+ ? ' bg-[#5368C433] font-[800] max-sm:bg-[#5368C433]'
76
+ : ' font-medium ')}>
77
+ {router.locale === 'en' ? (<span className={'w-full text-center text-[0.9em]'}>{menu.text}</span>) : (menu.text)}
78
+ </Link>);
79
+ })}
80
+ </div>
81
+ </div>
82
+ </div>
83
+
84
+ {!isMain ? (<>
85
+ <Image src={imagePath + `/strength_new/${bannerImg}.webp`} alt={'강점'} fill priority className={'relative z-0 object-cover max-lg:hidden'} quality={100}/>
86
+ <Image src={imagePath + `/strength_new/${bannerImg}_tab.webp`} alt={'강점'} fill priority className={'relative z-0 object-cover max-xs:hidden lg:hidden '} quality={100}/>
87
+ <Image src={imagePath + `/strength_new/${bannerImg}_mo.webp`} alt={'강점'} fill priority className={'relative z-0 object-cover xs:hidden'} quality={100}/>
88
+ </>) : (<></>)}
89
+
90
+ {isMain ? (<>
91
+ {/*상단 이미지*/}
92
+ <span className={'absolute right-0 top-[120px] z-0 block h-[500px] w-[636px] ' +
93
+ 'max-3xl:h-[400px] max-3xl:w-[500px] ' +
94
+ 'max-lg:h-[300px] max-lg:w-[380px] ' +
95
+ 'max-md:h-[240px] max-md:w-[320px] ' +
96
+ 'max-sm:top-[68px] ' +
97
+ 'max-xs:h-[157px] max-xs:w-[200px]'}>
98
+ <Image src={imagePath + '/strength_new/main_bg_right.webp'} alt={'강점'} fill sizes="(max-width: 480px) 200px, (max-width: 768px) 320px, (max-width: 1024px) 380px, (max-width: 1500px) 500px, 636px" className={'object-contain object-right-top'} quality={100}/>
99
+ </span>
100
+ {/*하단 이미지*/}
101
+ <span className={'absolute bottom-0 left-0 z-0 block h-[400px] w-[400px] ' +
102
+ 'max-3xl:h-[300px] max-3xl:w-[300px] ' +
103
+ 'max-lg:h-[180px] max-lg:w-[180px] ' +
104
+ 'max-md:h-[150px] max-md:w-[150px] ' +
105
+ 'max-xs:h-[100px] max-xs:w-[100px]'}>
106
+ <Image src={imagePath + '/strength_new/main_bg_left.webp'} alt={'강점'} fill sizes="(max-width: 480px) 100px, (max-width: 768px) 150px, (max-width: 1024px) 180px, (max-width: 1500px) 300px, 400px" className={'object-contain'} quality={100}/>
107
+ </span>
108
+ </>) : (<></>)}
109
+ </section>);
110
+ };
111
+ export default BannerSection;