@daeryun/dr_components 1.0.8 → 1.0.10
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/Footer/FooterV2.jsx +1 -1
- package/dist/components/Footer/FooterV2.tsx +1 -1
- package/dist/components/Footer/_backup/index.jsx +1 -1
- package/dist/components/Footer/_backup/index.tsx +1 -1
- package/dist/components/Footer/index.jsx +1 -1
- package/dist/components/Footer/index.tsx +1 -1
- package/dist/components/common/types/strength_new/index.d.ts +65 -0
- package/dist/components/common/types/strength_new/index.js +1 -0
- package/dist/components/common/types/strength_new/index.ts +68 -0
- package/dist/components/page/StrengthNew/StrengthNew.d.ts +8 -0
- package/dist/components/page/StrengthNew/StrengthNew.jsx +11 -0
- package/dist/components/page/StrengthNew/StrengthNew.tsx +28 -0
- package/dist/components/page/StrengthNew/StrengthPeople.d.ts +8 -0
- package/dist/components/page/StrengthNew/StrengthPeople.jsx +13 -0
- package/dist/components/page/StrengthNew/StrengthPeople.tsx +34 -0
- package/dist/components/page/StrengthNew/StrengthSystem.d.ts +8 -0
- package/dist/components/page/StrengthNew/StrengthSystem.jsx +13 -0
- package/dist/components/page/StrengthNew/StrengthSystem.tsx +35 -0
- package/dist/components/page/StrengthNew/components/common/BannerSection.d.ts +13 -0
- package/dist/components/page/StrengthNew/components/common/BannerSection.jsx +111 -0
- package/dist/components/page/StrengthNew/components/common/BannerSection.tsx +231 -0
- package/dist/components/page/StrengthNew/components/common/LawyerSection.d.ts +12 -0
- package/dist/components/page/StrengthNew/components/common/LawyerSection.jsx +82 -0
- package/dist/components/page/StrengthNew/components/common/LawyerSection.tsx +193 -0
- package/dist/components/page/StrengthNew/components/common/ViewMoreSection.d.ts +9 -0
- package/dist/components/page/StrengthNew/components/common/ViewMoreSection.jsx +141 -0
- package/dist/components/page/StrengthNew/components/common/ViewMoreSection.tsx +297 -0
- package/dist/components/page/StrengthNew/components/main/IntroSection.d.ts +6 -0
- package/dist/components/page/StrengthNew/components/main/IntroSection.jsx +66 -0
- package/dist/components/page/StrengthNew/components/main/IntroSection.tsx +115 -0
- package/dist/components/page/StrengthNew/components/people/PeopleSection.d.ts +10 -0
- package/dist/components/page/StrengthNew/components/people/PeopleSection.jsx +166 -0
- package/dist/components/page/StrengthNew/components/people/PeopleSection.tsx +324 -0
- package/dist/components/page/StrengthNew/components/system/SystemSection.d.ts +6 -0
- package/dist/components/page/StrengthNew/components/system/SystemSection.jsx +270 -0
- package/dist/components/page/StrengthNew/components/system/SystemSection.tsx +495 -0
- package/dist/components/page/SuccessNew/components/FieldCase.jsx +5 -2
- package/dist/components/page/SuccessNew/components/FieldCase.tsx +5 -2
- package/dist/styles/globals.css +1091 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -235,7 +235,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
|
|
|
235
235
|
</p>
|
|
236
236
|
<p className={'break-keep xs:pl-[11px] xs:text-center'}>
|
|
237
237
|
<span className="font-[800]">광고책임변호사</span>{' '}
|
|
238
|
-
<span className={'inline-block'}
|
|
238
|
+
<span className={'inline-block'}>최이선, 손수연</span>
|
|
239
239
|
</p>
|
|
240
240
|
</div>
|
|
241
241
|
<p className={'mb-[54px] flex items-center text-[#666666] max-xl:justify-center max-md:text-[14px] max-xs:mb-[33px] max-xs:justify-start max-xs:text-[16px] max-2xs:mb-[18px] max-2xs:text-[14px] '}>
|
|
@@ -385,7 +385,7 @@ const NewFooter = ({
|
|
|
385
385
|
</p>
|
|
386
386
|
<p className={'break-keep xs:pl-[11px] xs:text-center'}>
|
|
387
387
|
<span className="font-[800]">광고책임변호사</span>{' '}
|
|
388
|
-
<span className={'inline-block'}
|
|
388
|
+
<span className={'inline-block'}>최이선, 손수연</span>
|
|
389
389
|
</p>
|
|
390
390
|
</div>
|
|
391
391
|
<p
|
|
@@ -235,7 +235,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
|
|
|
235
235
|
</p>
|
|
236
236
|
<p className={'break-keep xs:pl-[11px] xs:text-center'}>
|
|
237
237
|
<span className="font-[800]">광고책임변호사</span>{' '}
|
|
238
|
-
<span className={'inline-block'}
|
|
238
|
+
<span className={'inline-block'}>최이선, 손수연</span>
|
|
239
239
|
</p>
|
|
240
240
|
</div>
|
|
241
241
|
<p className={'mb-[54px] flex items-center text-[#666666] max-xl:justify-center max-md:text-[14px] max-xs:mb-[33px] max-xs:justify-start max-xs:text-[16px] max-2xs:mb-[18px] max-2xs:text-[14px] '}>
|
|
@@ -368,7 +368,7 @@ const NewFooter = ({
|
|
|
368
368
|
</p>
|
|
369
369
|
<p className={'break-keep xs:pl-[11px] xs:text-center'}>
|
|
370
370
|
<span className="font-[800]">광고책임변호사</span>{' '}
|
|
371
|
-
<span className={'inline-block'}
|
|
371
|
+
<span className={'inline-block'}>최이선, 손수연</span>
|
|
372
372
|
</p>
|
|
373
373
|
</div>
|
|
374
374
|
<p
|
|
@@ -231,7 +231,7 @@ const NewFooter = ({ groupsData, center_code, tel, logo, aceUrl, isBrochureBtn,
|
|
|
231
231
|
</p>
|
|
232
232
|
<p className={'break-keep xs:pl-[11px] xs:text-center'}>
|
|
233
233
|
<span className="font-[800]">광고책임변호사</span>{' '}
|
|
234
|
-
<span className={'inline-block'}
|
|
234
|
+
<span className={'inline-block'}>최이선, 손수연</span>
|
|
235
235
|
</p>
|
|
236
236
|
</div>
|
|
237
237
|
<p className={'mb-[54px] flex items-center text-[#666666] max-xl:justify-center max-md:text-[14px] max-xs:mb-[33px] max-xs:justify-start max-xs:text-[16px] max-2xs:mb-[18px] max-2xs:text-[14px] '}>
|
|
@@ -351,7 +351,7 @@ const NewFooter = ({
|
|
|
351
351
|
</p>
|
|
352
352
|
<p className={'break-keep xs:pl-[11px] xs:text-center'}>
|
|
353
353
|
<span className="font-[800]">광고책임변호사</span>{' '}
|
|
354
|
-
<span className={'inline-block'}
|
|
354
|
+
<span className={'inline-block'}>최이선, 손수연</span>
|
|
355
355
|
</p>
|
|
356
356
|
</div>
|
|
357
357
|
<p
|
|
@@ -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
|
+
}
|
|
@@ -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;
|