@daeryun/dr_components 0.5.42 → 0.5.44
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/asset/images/PageTitleBox/archive.webp +0 -0
- package/dist/asset/images/PageTitleBox/broadcast.webp +0 -0
- package/dist/asset/images/PageTitleBox/field.webp +0 -0
- package/dist/asset/images/PageTitleBox/info.webp +0 -0
- package/dist/asset/images/PageTitleBox/notice.webp +0 -0
- package/dist/asset/images/PageTitleBox/reply.webp +0 -0
- package/dist/asset/images/PageTitleBox/success.webp +0 -0
- package/dist/asset/images/PageTitleBox/trend.webp +0 -0
- package/dist/asset/images/categoryMenu/House.svg +3 -0
- package/dist/asset/images/categoryMenu/right_arrow.svg +3 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/CategoryMenu/CategoryMenuForPage.d.ts +7 -0
- package/dist/components/CategoryMenu/CategoryMenuForPage.jsx +41 -0
- package/dist/components/CategoryMenu/CategoryMenuForPage.tsx +80 -0
- package/dist/components/PageTitleBox/PageTitleBox.d.ts +20 -0
- package/dist/components/PageTitleBox/PageTitleBox.jsx +50 -0
- package/dist/components/PageTitleBox/PageTitleBox.stories.d.ts +6 -0
- package/dist/components/PageTitleBox/PageTitleBox.stories.jsx +19 -0
- package/dist/components/PageTitleBox/PageTitleBox.stories.tsx +26 -0
- package/dist/components/PageTitleBox/PageTitleBox.tsx +78 -0
- package/dist/components/Seo/SeoStrength.jsx +1 -1
- package/dist/components/Seo/SeoStrength.tsx +1 -1
- package/dist/components/SubPage/SubPageTitle.d.ts +12 -0
- package/dist/components/SubPage/SubPageTitle.jsx +67 -0
- package/dist/components/SubPage/SubPageTitle.tsx +124 -0
- package/dist/components/common/strength/index.js +2 -2
- package/dist/components/common/strength/index.ts +2 -2
- package/dist/lib/{catagoryMenuName.d.ts → categoryMenuName.d.ts} +1 -2
- package/dist/lib/categoryMenuName.js +152 -0
- package/dist/lib/categoryMenuName.ts +123 -0
- package/dist/lib/index.js +1 -1
- package/dist/lib/index.ts +5 -5
- package/dist/lib/utils.js +2 -1
- package/dist/lib/utils.ts +2 -1
- package/dist/styles/globals.css +183 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/lib/catagoryMenuName.js +0 -8
- package/dist/lib/catagoryMenuName.ts +0 -12
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import Image from 'next/image';
|
|
5
|
+
import PageWrapper from '../Layout/PageWrapper';
|
|
6
|
+
import CategoryMenuForPage from '../CategoryMenu/CategoryMenuForPage';
|
|
7
|
+
import SubPageTitle from '../SubPage/SubPageTitle';
|
|
8
|
+
|
|
9
|
+
import archiveImg from '../../asset/images/PageTitleBox/archive.webp';
|
|
10
|
+
import broadcastImg from '../../asset/images/PageTitleBox/broadcast.webp';
|
|
11
|
+
import fieldImg from '../../asset/images/PageTitleBox/field.webp';
|
|
12
|
+
import infoImg from '../../asset/images/PageTitleBox/info.webp';
|
|
13
|
+
import noticeImg from '../../asset/images/PageTitleBox/notice.webp';
|
|
14
|
+
import replyImg from '../../asset/images/PageTitleBox/reply.webp';
|
|
15
|
+
import successImg from '../../asset/images/PageTitleBox/success.webp';
|
|
16
|
+
import trendImg from '../../asset/images/PageTitleBox/trend.webp';
|
|
17
|
+
|
|
18
|
+
export const ImgTypes = {
|
|
19
|
+
ARCHIVE: 'archive',
|
|
20
|
+
BROADCAST: 'broadcast',
|
|
21
|
+
FIELD: 'field',
|
|
22
|
+
INFO: 'info',
|
|
23
|
+
NOTICE: 'notice',
|
|
24
|
+
REPLY: 'reply',
|
|
25
|
+
SUCCESS: 'success',
|
|
26
|
+
TREND: 'trend'
|
|
27
|
+
} as const;
|
|
28
|
+
type ImgType = (typeof ImgTypes)[keyof typeof ImgTypes];
|
|
29
|
+
|
|
30
|
+
const imageMap: Record<ImgType, string> = {
|
|
31
|
+
[ImgTypes.ARCHIVE]: archiveImg,
|
|
32
|
+
[ImgTypes.BROADCAST]: broadcastImg,
|
|
33
|
+
[ImgTypes.FIELD]: fieldImg,
|
|
34
|
+
[ImgTypes.INFO]: infoImg,
|
|
35
|
+
[ImgTypes.NOTICE]: noticeImg,
|
|
36
|
+
[ImgTypes.REPLY]: replyImg,
|
|
37
|
+
[ImgTypes.SUCCESS]: successImg,
|
|
38
|
+
[ImgTypes.TREND]: trendImg
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
interface PageTitleBoxProps {
|
|
42
|
+
titleTxt: React.ReactNode;
|
|
43
|
+
subTxt?: React.ReactNode;
|
|
44
|
+
imgType: ImgType;
|
|
45
|
+
url: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const PageTitleBox = ({ titleTxt, subTxt, imgType, url }: PageTitleBoxProps) => {
|
|
49
|
+
return (
|
|
50
|
+
<div
|
|
51
|
+
className={
|
|
52
|
+
'relative mt-[120px] flex h-[300px] w-full flex-col items-start justify-center bg-gray-200 ' +
|
|
53
|
+
//768px
|
|
54
|
+
'max-md:h-[250px] ' +
|
|
55
|
+
//640px
|
|
56
|
+
'max-sm:mt-[68px] ' +
|
|
57
|
+
//480px
|
|
58
|
+
'max-xs:h-[200px] '
|
|
59
|
+
}
|
|
60
|
+
>
|
|
61
|
+
<Image
|
|
62
|
+
src={imageMap[imgType]}
|
|
63
|
+
alt={''}
|
|
64
|
+
fill
|
|
65
|
+
sizes={'100vw'}
|
|
66
|
+
className={'h-full w-full object-cover'}
|
|
67
|
+
unoptimized
|
|
68
|
+
draggable={false}
|
|
69
|
+
/>
|
|
70
|
+
<PageWrapper className={'relative'}>
|
|
71
|
+
<CategoryMenuForPage className={'mb-[26px] max-md:mb-[20px] max-xs:mb-[12px] '} url={''} />
|
|
72
|
+
<SubPageTitle titleTxt={titleTxt} subTxt={subTxt} />
|
|
73
|
+
</PageWrapper>
|
|
74
|
+
</div>
|
|
75
|
+
);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export default PageTitleBox;
|
|
@@ -11,7 +11,7 @@ const SeoStrength = ({ initialData }) => {
|
|
|
11
11
|
const data = [
|
|
12
12
|
'대륜 로펌만의\n<b>AI 빅데이터 판결 분석</b> 변론',
|
|
13
13
|
`<b>${initialData.pro_count}명 이상</b>의\n다양한 분야의 전문가들`,
|
|
14
|
-
`지난 4년간 기준\n<b>${initialData.
|
|
14
|
+
`지난 4년간 기준\n<b>${initialData.mandate_cnt.toLocaleString()}건의 수임건수</b>` // Use template literal to inject initialData
|
|
15
15
|
];
|
|
16
16
|
const iconComponents = {
|
|
17
17
|
0: Icon1,
|
|
@@ -15,7 +15,7 @@ const SeoStrength = ({ initialData }: { initialData: IInitialDataTypes }) => {
|
|
|
15
15
|
const data = [
|
|
16
16
|
'대륜 로펌만의\n<b>AI 빅데이터 판결 분석</b> 변론',
|
|
17
17
|
`<b>${initialData.pro_count}명 이상</b>의\n다양한 분야의 전문가들`,
|
|
18
|
-
`지난 4년간 기준\n<b>${initialData.
|
|
18
|
+
`지난 4년간 기준\n<b>${initialData.mandate_cnt.toLocaleString()}건의 수임건수</b>` // Use template literal to inject initialData
|
|
19
19
|
];
|
|
20
20
|
|
|
21
21
|
const iconComponents: any = {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const SubPageTitle: (props: {
|
|
3
|
+
titleTxt: React.ReactNode;
|
|
4
|
+
subTxt?: React.ReactNode;
|
|
5
|
+
minTitle?: React.ReactNode;
|
|
6
|
+
minTxt?: React.ReactNode;
|
|
7
|
+
tailwindStyle?: string;
|
|
8
|
+
marginBottom?: number;
|
|
9
|
+
isViewP?: boolean;
|
|
10
|
+
isRed?: boolean;
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
|
+
export default SubPageTitle;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
const SubPageTitle = (props) => {
|
|
3
|
+
return (<div className={props.tailwindStyle ? props.tailwindStyle : ''}>
|
|
4
|
+
<section className={'relative mx-auto flex w-full flex-row items-center justify-between '}>
|
|
5
|
+
{props.isViewP ? (<p className={'relative block font-[SUIT] text-6xl font-[800] tracking-[-1.5px] ' +
|
|
6
|
+
(props.isRed ? ' after:bg-mainRed ' : ' after:bg-[#285FA7] ') +
|
|
7
|
+
//1500px
|
|
8
|
+
'max-3xl:text-5xl max-3xl:after:right-[-20px] max-3xl:after:top-[-15px] max-3xl:after:h-[15px] max-3xl:after:w-[15px] ' +
|
|
9
|
+
//768px
|
|
10
|
+
'max-md:text-4xl max-md:after:right-[-18px] max-md:after:top-[-10px] max-md:after:h-[12px] max-md:after:w-[12px] ' +
|
|
11
|
+
//325px
|
|
12
|
+
'max-3xs:text-[28px] max-3xs:after:right-[-15px] max-3xs:after:top-[-3px] max-3xs:after:h-[10px] max-3xs:after:w-[10px]'}>
|
|
13
|
+
{props.titleTxt}
|
|
14
|
+
</p>) : (<h1 className={'relative block font-[SUIT] text-6xl font-[800] tracking-[-1.5px] ' +
|
|
15
|
+
(props.isRed ? ' after:bg-mainRed ' : ' after:bg-[#285FA7] ') +
|
|
16
|
+
//1500px
|
|
17
|
+
'max-3xl:text-5xl max-3xl:after:right-[-20px] max-3xl:after:top-[-15px] max-3xl:after:h-[15px] max-3xl:after:w-[15px] ' +
|
|
18
|
+
//768px
|
|
19
|
+
'max-md:text-4xl max-md:after:right-[-18px] max-md:after:top-[-10px] max-md:after:h-[12px] max-md:after:w-[12px] ' +
|
|
20
|
+
'max-xs:text-[32px] ' +
|
|
21
|
+
//325px
|
|
22
|
+
'max-3xs:text-[28px] max-3xs:after:right-[-15px] max-3xs:after:top-[-3px] max-3xs:after:h-[10px] max-3xs:after:w-[10px]'}>
|
|
23
|
+
{props.titleTxt}
|
|
24
|
+
</h1>)}
|
|
25
|
+
</section>
|
|
26
|
+
{props.subTxt ? (<div className={'mt-[17px] break-keep text-[26px] leading-[1.35] tracking-[-0.7px] text-[#58595B] ' +
|
|
27
|
+
//1500px
|
|
28
|
+
'max-3xl:text-[24px] ' +
|
|
29
|
+
//768px
|
|
30
|
+
'max-md:mt-[10px] max-md:text-[16px] ' +
|
|
31
|
+
//325px
|
|
32
|
+
'max-3xs:mt-[8px] max-3xs:text-[15px] '}>
|
|
33
|
+
{props.subTxt}
|
|
34
|
+
</div>) : ('')}
|
|
35
|
+
{props.minTitle ? (<p className={'mt-[20px] text-3xl font-normal uppercase tracking-normal text-[#285FA7] ' +
|
|
36
|
+
(props.isRed ? ' text-mainRed ' : ' text-[#285FA7] ') +
|
|
37
|
+
//1500px
|
|
38
|
+
'mt-[10px] max-3xl:text-2xl ' +
|
|
39
|
+
//768px
|
|
40
|
+
'max-md:mt-[5px] max-md:text-xl ' +
|
|
41
|
+
//325px
|
|
42
|
+
'max-3xs:mt-0 max-3xs:text-[14px]'}>
|
|
43
|
+
{props.minTitle}
|
|
44
|
+
</p>) : ('')}
|
|
45
|
+
|
|
46
|
+
{props.minTxt ? (<div className={' mt-[10px] break-keep text-[18px] tracking-[-0.4px] ' +
|
|
47
|
+
//1500px
|
|
48
|
+
'max-3xl:text-[16px] ' +
|
|
49
|
+
//768px
|
|
50
|
+
'max-md:mt-[12px] max-md:text-[12px] ' +
|
|
51
|
+
//325px
|
|
52
|
+
'max-md:mt-[12px] max-3xs:text-[12px] '}>
|
|
53
|
+
{props.minTxt}
|
|
54
|
+
</div>) : ('')}
|
|
55
|
+
|
|
56
|
+
{/*하단공백(margin bottom)*/}
|
|
57
|
+
{props.marginBottom ? <div style={{ width: '100%', height: `${props.marginBottom}px` }}></div> : ''}
|
|
58
|
+
|
|
59
|
+
{/*뷰페이지 하단 공백*/}
|
|
60
|
+
{props.isViewP ? (<div className={'h-[30px] w-full ' +
|
|
61
|
+
//768px
|
|
62
|
+
'max-md:h-[20px] ' +
|
|
63
|
+
//325px
|
|
64
|
+
'max-3xs:h-[10px] '}></div>) : ('')}
|
|
65
|
+
</div>);
|
|
66
|
+
};
|
|
67
|
+
export default SubPageTitle;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
const SubPageTitle = (props: {
|
|
4
|
+
titleTxt: React.ReactNode;
|
|
5
|
+
subTxt?: React.ReactNode;
|
|
6
|
+
minTitle?: React.ReactNode;
|
|
7
|
+
minTxt?: React.ReactNode;
|
|
8
|
+
tailwindStyle?: string;
|
|
9
|
+
marginBottom?: number;
|
|
10
|
+
isViewP?: boolean;
|
|
11
|
+
isRed?: boolean;
|
|
12
|
+
}) => {
|
|
13
|
+
return (
|
|
14
|
+
<div className={props.tailwindStyle ? props.tailwindStyle : ''}>
|
|
15
|
+
<section className={'relative mx-auto flex w-full flex-row items-center justify-between '}>
|
|
16
|
+
{props.isViewP ? (
|
|
17
|
+
<p
|
|
18
|
+
className={
|
|
19
|
+
'relative block font-[SUIT] text-6xl font-[800] tracking-[-1.5px] ' +
|
|
20
|
+
(props.isRed ? ' after:bg-mainRed ' : ' after:bg-[#285FA7] ') +
|
|
21
|
+
//1500px
|
|
22
|
+
'max-3xl:text-5xl max-3xl:after:right-[-20px] max-3xl:after:top-[-15px] max-3xl:after:h-[15px] max-3xl:after:w-[15px] ' +
|
|
23
|
+
//768px
|
|
24
|
+
'max-md:text-4xl max-md:after:right-[-18px] max-md:after:top-[-10px] max-md:after:h-[12px] max-md:after:w-[12px] ' +
|
|
25
|
+
//325px
|
|
26
|
+
'max-3xs:text-[28px] max-3xs:after:right-[-15px] max-3xs:after:top-[-3px] max-3xs:after:h-[10px] max-3xs:after:w-[10px]'
|
|
27
|
+
}
|
|
28
|
+
>
|
|
29
|
+
{props.titleTxt}
|
|
30
|
+
</p>
|
|
31
|
+
) : (
|
|
32
|
+
<h1
|
|
33
|
+
className={
|
|
34
|
+
'relative block font-[SUIT] text-6xl font-[800] tracking-[-1.5px] ' +
|
|
35
|
+
(props.isRed ? ' after:bg-mainRed ' : ' after:bg-[#285FA7] ') +
|
|
36
|
+
//1500px
|
|
37
|
+
'max-3xl:text-5xl max-3xl:after:right-[-20px] max-3xl:after:top-[-15px] max-3xl:after:h-[15px] max-3xl:after:w-[15px] ' +
|
|
38
|
+
//768px
|
|
39
|
+
'max-md:text-4xl max-md:after:right-[-18px] max-md:after:top-[-10px] max-md:after:h-[12px] max-md:after:w-[12px] ' +
|
|
40
|
+
'max-xs:text-[32px] ' +
|
|
41
|
+
//325px
|
|
42
|
+
'max-3xs:text-[28px] max-3xs:after:right-[-15px] max-3xs:after:top-[-3px] max-3xs:after:h-[10px] max-3xs:after:w-[10px]'
|
|
43
|
+
}
|
|
44
|
+
>
|
|
45
|
+
{props.titleTxt}
|
|
46
|
+
</h1>
|
|
47
|
+
)}
|
|
48
|
+
</section>
|
|
49
|
+
{props.subTxt ? (
|
|
50
|
+
<div
|
|
51
|
+
className={
|
|
52
|
+
'mt-[17px] break-keep text-[26px] leading-[1.35] tracking-[-0.7px] text-[#58595B] ' +
|
|
53
|
+
//1500px
|
|
54
|
+
'max-3xl:text-[24px] ' +
|
|
55
|
+
//768px
|
|
56
|
+
'max-md:mt-[10px] max-md:text-[16px] ' +
|
|
57
|
+
//325px
|
|
58
|
+
'max-3xs:mt-[8px] max-3xs:text-[15px] '
|
|
59
|
+
}
|
|
60
|
+
>
|
|
61
|
+
{props.subTxt}
|
|
62
|
+
</div>
|
|
63
|
+
) : (
|
|
64
|
+
''
|
|
65
|
+
)}
|
|
66
|
+
{props.minTitle ? (
|
|
67
|
+
<p
|
|
68
|
+
className={
|
|
69
|
+
'mt-[20px] text-3xl font-normal uppercase tracking-normal text-[#285FA7] ' +
|
|
70
|
+
(props.isRed ? ' text-mainRed ' : ' text-[#285FA7] ') +
|
|
71
|
+
//1500px
|
|
72
|
+
'mt-[10px] max-3xl:text-2xl ' +
|
|
73
|
+
//768px
|
|
74
|
+
'max-md:mt-[5px] max-md:text-xl ' +
|
|
75
|
+
//325px
|
|
76
|
+
'max-3xs:mt-0 max-3xs:text-[14px]'
|
|
77
|
+
}
|
|
78
|
+
>
|
|
79
|
+
{props.minTitle}
|
|
80
|
+
</p>
|
|
81
|
+
) : (
|
|
82
|
+
''
|
|
83
|
+
)}
|
|
84
|
+
|
|
85
|
+
{props.minTxt ? (
|
|
86
|
+
<div
|
|
87
|
+
className={
|
|
88
|
+
' mt-[10px] break-keep text-[18px] tracking-[-0.4px] ' +
|
|
89
|
+
//1500px
|
|
90
|
+
'max-3xl:text-[16px] ' +
|
|
91
|
+
//768px
|
|
92
|
+
'max-md:mt-[12px] max-md:text-[12px] ' +
|
|
93
|
+
//325px
|
|
94
|
+
'max-md:mt-[12px] max-3xs:text-[12px] '
|
|
95
|
+
}
|
|
96
|
+
>
|
|
97
|
+
{props.minTxt}
|
|
98
|
+
</div>
|
|
99
|
+
) : (
|
|
100
|
+
''
|
|
101
|
+
)}
|
|
102
|
+
|
|
103
|
+
{/*하단공백(margin bottom)*/}
|
|
104
|
+
{props.marginBottom ? <div style={{ width: '100%', height: `${props.marginBottom}px` }}></div> : ''}
|
|
105
|
+
|
|
106
|
+
{/*뷰페이지 하단 공백*/}
|
|
107
|
+
{props.isViewP ? (
|
|
108
|
+
<div
|
|
109
|
+
className={
|
|
110
|
+
'h-[30px] w-full ' +
|
|
111
|
+
//768px
|
|
112
|
+
'max-md:h-[20px] ' +
|
|
113
|
+
//325px
|
|
114
|
+
'max-3xs:h-[10px] '
|
|
115
|
+
}
|
|
116
|
+
></div>
|
|
117
|
+
) : (
|
|
118
|
+
''
|
|
119
|
+
)}
|
|
120
|
+
</div>
|
|
121
|
+
);
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export default SubPageTitle;
|
|
@@ -83,13 +83,13 @@ export const strengthList = [
|
|
|
83
83
|
]
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
|
-
subTitle: '*consult_date* *
|
|
86
|
+
subTitle: '*consult_date* *mandate_cnt*건의 수임건수',
|
|
87
87
|
title: '철저히 분석한 소송 데이터베이스를 기반으로 맞춤형 솔루션을 마련합니다',
|
|
88
88
|
list: [
|
|
89
89
|
{
|
|
90
90
|
liTitle: '',
|
|
91
91
|
li: [
|
|
92
|
-
'*consult_date*
|
|
92
|
+
'*consult_date* 수임 총합 *mandate_cnt*건으로 쌓은 소송 데이터베이스',
|
|
93
93
|
'소송 DB 분석하여 고객 상황에 적합한 대응 방식을 빠르게 도출'
|
|
94
94
|
]
|
|
95
95
|
}
|
|
@@ -83,13 +83,13 @@ export const strengthList: { subTitle: string; title: string; list: { liTitle: s
|
|
|
83
83
|
]
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
|
-
subTitle: '*consult_date* *
|
|
86
|
+
subTitle: '*consult_date* *mandate_cnt*건의 수임건수',
|
|
87
87
|
title: '철저히 분석한 소송 데이터베이스를 기반으로 맞춤형 솔루션을 마련합니다',
|
|
88
88
|
list: [
|
|
89
89
|
{
|
|
90
90
|
liTitle: '',
|
|
91
91
|
li: [
|
|
92
|
-
'*consult_date*
|
|
92
|
+
'*consult_date* 수임 총합 *mandate_cnt*건으로 쌓은 소송 데이터베이스',
|
|
93
93
|
'소송 DB 분석하여 고객 상황에 적합한 대응 방식을 빠르게 도출'
|
|
94
94
|
]
|
|
95
95
|
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
export function categoryMenuName({ url }) {
|
|
2
|
+
const NEXT_PUBLIC_KEYWORD = process.env.NEXT_PUBLIC_KEYWORD;
|
|
3
|
+
const NEXT_PUBLIC_GROUPNAME = process.env.NEXT_PUBLIC_GROUPNAME;
|
|
4
|
+
const CENTER_CODE = process.env.CENTER_CODE;
|
|
5
|
+
if (url.includes('/broadcast')) {
|
|
6
|
+
return {
|
|
7
|
+
title: '소식/자료',
|
|
8
|
+
subTitle: '언론보도',
|
|
9
|
+
address: 'broadcast'
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
else if (url.includes('/greeting')) {
|
|
13
|
+
return {
|
|
14
|
+
title: CENTER_CODE === 'CT0028'
|
|
15
|
+
? '대륜소개'
|
|
16
|
+
: CENTER_CODE === 'CT0023' || CENTER_CODE === 'CT0022'
|
|
17
|
+
? '센터소개'
|
|
18
|
+
: '그룹소개',
|
|
19
|
+
subTitle: '비전',
|
|
20
|
+
address: 'greeting'
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
else if (url.includes('/strength')) {
|
|
24
|
+
return { title: '대륜소개', subTitle: '대륜의 강점', address: 'strength' };
|
|
25
|
+
}
|
|
26
|
+
else if (url.includes('/partners')) {
|
|
27
|
+
return { title: '대륜소개', subTitle: '고객사/협력기업', address: 'partners' };
|
|
28
|
+
}
|
|
29
|
+
else if (url.includes('/map')) {
|
|
30
|
+
return { title: '대륜소개', subTitle: '오시는 길', address: 'map' };
|
|
31
|
+
}
|
|
32
|
+
else if (url.includes('/media')) {
|
|
33
|
+
return { title: '대륜소개', subTitle: '취재문의', address: 'media' };
|
|
34
|
+
}
|
|
35
|
+
else if (url.includes('/notice')) {
|
|
36
|
+
return { title: '소식/자료', subTitle: '공지사항', address: 'notice' };
|
|
37
|
+
}
|
|
38
|
+
else if (url.includes('/success')) {
|
|
39
|
+
return {
|
|
40
|
+
title: '업무사례',
|
|
41
|
+
subTitle: (CENTER_CODE === 'CT0005' && '이혼변호사 ') + '업무사례',
|
|
42
|
+
address: 'success'
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
else if (url.includes('/archive')) {
|
|
46
|
+
return { title: '소식/자료', subTitle: '법률서식', address: 'archive' };
|
|
47
|
+
}
|
|
48
|
+
else if (url.includes('/reply')) {
|
|
49
|
+
return {
|
|
50
|
+
title: '업무사례',
|
|
51
|
+
subTitle: CENTER_CODE === 'CT0005' ? '이혼소송·상담후기' : '고객후기',
|
|
52
|
+
address: 'reply'
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
else if (url.includes('/kin')) {
|
|
56
|
+
return { title: 'SNS', subTitle: '법률지식인', address: 'kin' };
|
|
57
|
+
}
|
|
58
|
+
else if (url.includes('/youtube')) {
|
|
59
|
+
return { title: 'SNS', subTitle: (CENTER_CODE === 'CT0005' && '이혼변호사 ') + '유튜브', address: 'youtube' };
|
|
60
|
+
}
|
|
61
|
+
else if (url.includes('/lawyer')) {
|
|
62
|
+
return { title: '구성원 소개', subTitle: `${NEXT_PUBLIC_KEYWORD}전문변호사`, address: 'lawyer' };
|
|
63
|
+
}
|
|
64
|
+
else if (url.includes('/choice')) {
|
|
65
|
+
return {
|
|
66
|
+
title: '대륜법률상담예약',
|
|
67
|
+
subTitle: (CENTER_CODE === 'CT0005' && '이혼전문 ') + '법률상담접수',
|
|
68
|
+
address: 'choice'
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
else if (url.includes('/consulting')) {
|
|
72
|
+
return { title: '대륜법률상담예약', subTitle: '기업고객', address: 'consulting' };
|
|
73
|
+
}
|
|
74
|
+
else if (url.includes('/consult')) {
|
|
75
|
+
return { title: '대륜법률상담예약', subTitle: '개인고객', address: 'consult' };
|
|
76
|
+
}
|
|
77
|
+
else if (url.includes('/instagram')) {
|
|
78
|
+
return { title: 'SNS', subTitle: '인스타그램', address: 'instagram' };
|
|
79
|
+
}
|
|
80
|
+
else if (url.includes('/blog')) {
|
|
81
|
+
return { title: 'SNS', subTitle: '블로그', address: 'blog' };
|
|
82
|
+
}
|
|
83
|
+
else if (url.includes('/common/disclaimer')) {
|
|
84
|
+
return { title: '면책공고', subTitle: '면책공고', address: 'common/disclaimer' };
|
|
85
|
+
}
|
|
86
|
+
else if (url.includes('/common/limited-liability')) {
|
|
87
|
+
return { title: '유한책임', subTitle: '유한책임', address: 'common/limited-liability' };
|
|
88
|
+
}
|
|
89
|
+
else if (url.includes('/common/privacy-policy')) {
|
|
90
|
+
return { title: '개인정보처리방침', subTitle: '개인정보처리방침', address: 'common/privacy-policy' };
|
|
91
|
+
}
|
|
92
|
+
else if (url.includes('/common/collect')) {
|
|
93
|
+
return { title: '이메일무단수집거부', subTitle: '이메일무단수집거부', address: 'common/collect' };
|
|
94
|
+
}
|
|
95
|
+
else if (url.includes('/inquire')) {
|
|
96
|
+
return { title: '고객만족센터', subTitle: '고객만족센터', address: 'inquire' };
|
|
97
|
+
}
|
|
98
|
+
else if (url.includes('/integrate')) {
|
|
99
|
+
return { title: '대륜소개', subTitle: '통합검색', address: 'integrate' };
|
|
100
|
+
}
|
|
101
|
+
else if (url.includes('/seo')) {
|
|
102
|
+
return { title: '업무사례', subTitle: 'seo 템플릿', address: 'seo' };
|
|
103
|
+
}
|
|
104
|
+
else if (url.includes('/field/areaAll')) {
|
|
105
|
+
return { title: '업무분야', subTitle: '전체', address: 'field/areaAll' };
|
|
106
|
+
}
|
|
107
|
+
else if (url.includes('/field/area')) {
|
|
108
|
+
return { title: '업무분야', subTitle: `${NEXT_PUBLIC_GROUPNAME} 업무`, address: 'field/area' };
|
|
109
|
+
}
|
|
110
|
+
else if (url.includes('/field_new')) {
|
|
111
|
+
return { title: '업무분야', subTitle: `업무분야`, address: 'field_new' };
|
|
112
|
+
}
|
|
113
|
+
else if (url.includes('/info')) {
|
|
114
|
+
return { title: '업무사례', subTitle: (CENTER_CODE === 'CT0005' && '이혼 ') + '법률정보', address: 'info' };
|
|
115
|
+
}
|
|
116
|
+
else if (url.includes('/lawInfo_new')) {
|
|
117
|
+
return { title: '법률정보', subTitle: (CENTER_CODE === 'CT0005' && '이혼 ') + '법률정보', address: 'info' };
|
|
118
|
+
}
|
|
119
|
+
else if (url.includes('/intro')) {
|
|
120
|
+
return { title: '그룹소개', subTitle: '소개', address: 'intro' };
|
|
121
|
+
}
|
|
122
|
+
else if (url.includes('/selfcheck')) {
|
|
123
|
+
return { title: '업무분야', subTitle: '사건별 사전검토', address: 'selfcheck' };
|
|
124
|
+
}
|
|
125
|
+
else if (url.includes('/calculation')) {
|
|
126
|
+
return {
|
|
127
|
+
title: '업무분야',
|
|
128
|
+
subTitle: CENTER_CODE === 'CT0005'
|
|
129
|
+
? '이혼 양육비계산기'
|
|
130
|
+
: CENTER_CODE === 'CT0010'
|
|
131
|
+
? '개인회생·개인파산 신청자격 사전검토'
|
|
132
|
+
: CENTER_CODE === 'CT0006'
|
|
133
|
+
? '상속재산계산기(법정상속분)'
|
|
134
|
+
: CENTER_CODE === 'CT0013'
|
|
135
|
+
? '마약범죄 사전검토'
|
|
136
|
+
: '',
|
|
137
|
+
address: 'calculation'
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
else if (url.includes('/solatium')) {
|
|
141
|
+
return { title: '업무분야', subTitle: '이혼 상간자위자료계산기', address: 'solatium' };
|
|
142
|
+
}
|
|
143
|
+
else if (url.includes('/detective')) {
|
|
144
|
+
return { title: '업무분야', subTitle: '음주 처벌수위 사전검토', address: 'detective' };
|
|
145
|
+
}
|
|
146
|
+
else if (url.includes('/system')) {
|
|
147
|
+
return { title: '그룹소개', subTitle: '대륜만의 조력 시스템', address: 'system' };
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
return { title: '', subTitle: '', address: '/' };
|
|
151
|
+
}
|
|
152
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
export function categoryMenuName({ url }: { url: string }): {
|
|
2
|
+
title: string;
|
|
3
|
+
subTitle: string;
|
|
4
|
+
address: string;
|
|
5
|
+
} {
|
|
6
|
+
const NEXT_PUBLIC_KEYWORD = process.env.NEXT_PUBLIC_KEYWORD;
|
|
7
|
+
const NEXT_PUBLIC_GROUPNAME = process.env.NEXT_PUBLIC_GROUPNAME;
|
|
8
|
+
const CENTER_CODE = process.env.CENTER_CODE;
|
|
9
|
+
|
|
10
|
+
if (url.includes('/broadcast')) {
|
|
11
|
+
return {
|
|
12
|
+
title: '소식/자료',
|
|
13
|
+
subTitle: '언론보도',
|
|
14
|
+
address: 'broadcast'
|
|
15
|
+
};
|
|
16
|
+
} else if (url.includes('/greeting')) {
|
|
17
|
+
return {
|
|
18
|
+
title:
|
|
19
|
+
CENTER_CODE === 'CT0028'
|
|
20
|
+
? '대륜소개'
|
|
21
|
+
: CENTER_CODE === 'CT0023' || CENTER_CODE === 'CT0022'
|
|
22
|
+
? '센터소개'
|
|
23
|
+
: '그룹소개',
|
|
24
|
+
subTitle: '비전',
|
|
25
|
+
address: 'greeting'
|
|
26
|
+
};
|
|
27
|
+
} else if (url.includes('/strength')) {
|
|
28
|
+
return { title: '대륜소개', subTitle: '대륜의 강점', address: 'strength' };
|
|
29
|
+
} else if (url.includes('/partners')) {
|
|
30
|
+
return { title: '대륜소개', subTitle: '고객사/협력기업', address: 'partners' };
|
|
31
|
+
} else if (url.includes('/map')) {
|
|
32
|
+
return { title: '대륜소개', subTitle: '오시는 길', address: 'map' };
|
|
33
|
+
} else if (url.includes('/media')) {
|
|
34
|
+
return { title: '대륜소개', subTitle: '취재문의', address: 'media' };
|
|
35
|
+
} else if (url.includes('/notice')) {
|
|
36
|
+
return { title: '소식/자료', subTitle: '공지사항', address: 'notice' };
|
|
37
|
+
} else if (url.includes('/success')) {
|
|
38
|
+
return {
|
|
39
|
+
title: '업무사례',
|
|
40
|
+
subTitle: (CENTER_CODE === 'CT0005' && '이혼변호사 ') + '업무사례',
|
|
41
|
+
address: 'success'
|
|
42
|
+
};
|
|
43
|
+
} else if (url.includes('/archive')) {
|
|
44
|
+
return { title: '소식/자료', subTitle: '법률서식', address: 'archive' };
|
|
45
|
+
} else if (url.includes('/reply')) {
|
|
46
|
+
return {
|
|
47
|
+
title: '업무사례',
|
|
48
|
+
subTitle: CENTER_CODE === 'CT0005' ? '이혼소송·상담후기' : '고객후기',
|
|
49
|
+
address: 'reply'
|
|
50
|
+
};
|
|
51
|
+
} else if (url.includes('/kin')) {
|
|
52
|
+
return { title: 'SNS', subTitle: '법률지식인', address: 'kin' };
|
|
53
|
+
} else if (url.includes('/youtube')) {
|
|
54
|
+
return { title: 'SNS', subTitle: (CENTER_CODE === 'CT0005' && '이혼변호사 ') + '유튜브', address: 'youtube' };
|
|
55
|
+
} else if (url.includes('/lawyer')) {
|
|
56
|
+
return { title: '구성원 소개', subTitle: `${NEXT_PUBLIC_KEYWORD}전문변호사`, address: 'lawyer' };
|
|
57
|
+
} else if (url.includes('/choice')) {
|
|
58
|
+
return {
|
|
59
|
+
title: '대륜법률상담예약',
|
|
60
|
+
subTitle: (CENTER_CODE === 'CT0005' && '이혼전문 ') + '법률상담접수',
|
|
61
|
+
address: 'choice'
|
|
62
|
+
};
|
|
63
|
+
} else if (url.includes('/consulting')) {
|
|
64
|
+
return { title: '대륜법률상담예약', subTitle: '기업고객', address: 'consulting' };
|
|
65
|
+
} else if (url.includes('/consult')) {
|
|
66
|
+
return { title: '대륜법률상담예약', subTitle: '개인고객', address: 'consult' };
|
|
67
|
+
} else if (url.includes('/instagram')) {
|
|
68
|
+
return { title: 'SNS', subTitle: '인스타그램', address: 'instagram' };
|
|
69
|
+
} else if (url.includes('/blog')) {
|
|
70
|
+
return { title: 'SNS', subTitle: '블로그', address: 'blog' };
|
|
71
|
+
} else if (url.includes('/common/disclaimer')) {
|
|
72
|
+
return { title: '면책공고', subTitle: '면책공고', address: 'common/disclaimer' };
|
|
73
|
+
} else if (url.includes('/common/limited-liability')) {
|
|
74
|
+
return { title: '유한책임', subTitle: '유한책임', address: 'common/limited-liability' };
|
|
75
|
+
} else if (url.includes('/common/privacy-policy')) {
|
|
76
|
+
return { title: '개인정보처리방침', subTitle: '개인정보처리방침', address: 'common/privacy-policy' };
|
|
77
|
+
} else if (url.includes('/common/collect')) {
|
|
78
|
+
return { title: '이메일무단수집거부', subTitle: '이메일무단수집거부', address: 'common/collect' };
|
|
79
|
+
} else if (url.includes('/inquire')) {
|
|
80
|
+
return { title: '고객만족센터', subTitle: '고객만족센터', address: 'inquire' };
|
|
81
|
+
} else if (url.includes('/integrate')) {
|
|
82
|
+
return { title: '대륜소개', subTitle: '통합검색', address: 'integrate' };
|
|
83
|
+
} else if (url.includes('/seo')) {
|
|
84
|
+
return { title: '업무사례', subTitle: 'seo 템플릿', address: 'seo' };
|
|
85
|
+
} else if (url.includes('/field/areaAll')) {
|
|
86
|
+
return { title: '업무분야', subTitle: '전체', address: 'field/areaAll' };
|
|
87
|
+
} else if (url.includes('/field/area')) {
|
|
88
|
+
return { title: '업무분야', subTitle: `${NEXT_PUBLIC_GROUPNAME} 업무`, address: 'field/area' };
|
|
89
|
+
} else if (url.includes('/field_new')) {
|
|
90
|
+
return { title: '업무분야', subTitle: `업무분야`, address: 'field_new' };
|
|
91
|
+
} else if (url.includes('/info')) {
|
|
92
|
+
return { title: '업무사례', subTitle: (CENTER_CODE === 'CT0005' && '이혼 ') + '법률정보', address: 'info' };
|
|
93
|
+
} else if (url.includes('/lawInfo_new')) {
|
|
94
|
+
return { title: '법률정보', subTitle: (CENTER_CODE === 'CT0005' && '이혼 ') + '법률정보', address: 'info' };
|
|
95
|
+
} else if (url.includes('/intro')) {
|
|
96
|
+
return { title: '그룹소개', subTitle: '소개', address: 'intro' };
|
|
97
|
+
} else if (url.includes('/selfcheck')) {
|
|
98
|
+
return { title: '업무분야', subTitle: '사건별 사전검토', address: 'selfcheck' };
|
|
99
|
+
} else if (url.includes('/calculation')) {
|
|
100
|
+
return {
|
|
101
|
+
title: '업무분야',
|
|
102
|
+
subTitle:
|
|
103
|
+
CENTER_CODE === 'CT0005'
|
|
104
|
+
? '이혼 양육비계산기'
|
|
105
|
+
: CENTER_CODE === 'CT0010'
|
|
106
|
+
? '개인회생·개인파산 신청자격 사전검토'
|
|
107
|
+
: CENTER_CODE === 'CT0006'
|
|
108
|
+
? '상속재산계산기(법정상속분)'
|
|
109
|
+
: CENTER_CODE === 'CT0013'
|
|
110
|
+
? '마약범죄 사전검토'
|
|
111
|
+
: '',
|
|
112
|
+
address: 'calculation'
|
|
113
|
+
};
|
|
114
|
+
} else if (url.includes('/solatium')) {
|
|
115
|
+
return { title: '업무분야', subTitle: '이혼 상간자위자료계산기', address: 'solatium' };
|
|
116
|
+
} else if (url.includes('/detective')) {
|
|
117
|
+
return { title: '업무분야', subTitle: '음주 처벌수위 사전검토', address: 'detective' };
|
|
118
|
+
} else if (url.includes('/system')) {
|
|
119
|
+
return { title: '그룹소개', subTitle: '대륜만의 조력 시스템', address: 'system' };
|
|
120
|
+
} else {
|
|
121
|
+
return { title: '', subTitle: '', address: '/' };
|
|
122
|
+
}
|
|
123
|
+
}
|
package/dist/lib/index.js
CHANGED
package/dist/lib/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './gtag'
|
|
2
|
-
export * from './conversion'
|
|
3
|
-
export * from './powerlink'
|
|
4
|
-
export * from './utils'
|
|
5
|
-
export * from './
|
|
1
|
+
export * from './gtag';
|
|
2
|
+
export * from './conversion';
|
|
3
|
+
export * from './powerlink';
|
|
4
|
+
export * from './utils';
|
|
5
|
+
export * from './categoryMenuName';
|
package/dist/lib/utils.js
CHANGED
|
@@ -357,7 +357,8 @@ export const replaceInitialData = (str, initialData) => {
|
|
|
357
357
|
.replace('*consult_date*', initialData.consult_date.toLocaleString())
|
|
358
358
|
.replace('*main_date*', initialData.main_date.toLocaleString())
|
|
359
359
|
.replace('*total_cnt*', initialData.total_cnt.toLocaleString())
|
|
360
|
-
.replace('*pro_count*', initialData.pro_count.toLocaleString())
|
|
360
|
+
.replace('*pro_count*', initialData.pro_count.toLocaleString())
|
|
361
|
+
.replace('*mandate_cnt*', initialData.mandate_cnt.toLocaleString());
|
|
361
362
|
};
|
|
362
363
|
//seo template 쿼리내부 공통 함수
|
|
363
364
|
export const getSeoTemplateSearchTitle = (str) => {
|