@daeryun/dr_components 1.0.71 → 1.0.73
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/Daeryuntalk/ChatButton.d.ts +1 -0
- package/dist/components/Daeryuntalk/ChatButton.jsx +8 -4
- package/dist/components/Daeryuntalk/ChatButton.tsx +16 -3
- package/dist/components/Daeryuntalk/index.d.ts +1 -0
- package/dist/components/Daeryuntalk/index.jsx +2 -2
- package/dist/components/Daeryuntalk/index.tsx +9 -2
- package/dist/components/Fix/Fix.stories.d.ts +1 -0
- package/dist/components/Fix/index.d.ts +1 -0
- package/dist/components/Fix/index.jsx +13 -4
- package/dist/components/Fix/index.tsx +15 -4
- package/dist/components/common/integrate/index.d.ts +1 -1
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +1 -1
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +1 -1
- package/dist/components/page/StrengthNew/components/common/BannerSection.jsx +62 -32
- package/dist/components/page/StrengthNew/components/common/BannerSection.tsx +61 -52
- package/dist/components/page/StrengthNew/components/common/LawyerSection.jsx +4 -1
- package/dist/components/page/StrengthNew/components/common/LawyerSection.tsx +4 -1
- package/dist/components/page/StrengthNew/components/infra/InfraSection.jsx +21 -15
- package/dist/components/page/StrengthNew/components/infra/InfraSection.tsx +36 -24
- package/dist/lib/categoryMenuName.js +1 -1
- package/dist/lib/categoryMenuName.ts +1 -1
- package/dist/styles/globals.css +399 -389
- package/dist/styles/homepage_login.css +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import Link from 'next/link';
|
|
3
2
|
import Image from 'next/image';
|
|
4
3
|
import React from 'react';
|
|
5
4
|
import { usePathname, useRouter } from 'next/navigation';
|
|
@@ -12,16 +11,22 @@ const BannerSection = ({ title, subTitle, menu, initialData }) => {
|
|
|
12
11
|
const router = useRouter();
|
|
13
12
|
const isMain = pathname === '/strength';
|
|
14
13
|
const bannerImg = pathname.replace('/strength/', '') + '_banner_bg';
|
|
15
|
-
return (<section className={'relative h-[
|
|
16
|
-
'max-xl:h-[
|
|
14
|
+
return (<section className={'relative h-[425px] w-full overflow-hidden pt-[170px] ' +
|
|
15
|
+
'max-xl:h-[382px] max-xl:pt-[162px] ' +
|
|
17
16
|
'max-sm:pt-[148px] ' +
|
|
18
|
-
(isMain ? 'bg-[#D1E4F7] max-md:h-[
|
|
17
|
+
(isMain ? 'bg-[#D1E4F7] max-md:h-[350px] max-sm:h-[320px]' : 'max-md:h-[380px] max-sm:h-[370px]')
|
|
18
|
+
// 'relative h-[480px] w-full overflow-hidden pt-[170px] ' + < 메뉴 있을때 코드, 주석처리만
|
|
19
|
+
// 'max-xl:h-[420px] max-xl:pt-[162px] ' +
|
|
20
|
+
// 'max-sm:pt-[148px] ' +
|
|
21
|
+
// (isMain ? 'bg-[#D1E4F7] max-md:h-[410px] max-sm:h-[382px]' : 'max-md:h-[450px] max-sm:h-[440px]')
|
|
22
|
+
}>
|
|
19
23
|
<Wrapper className={'relative z-10 w-full '}>
|
|
20
24
|
<CategoryMenuForPage className="mb-[26px] max-md:mb-[20px] max-xs:mb-[12px]"/>
|
|
21
25
|
<div className={'flex w-full flex-col tracking-[-0.04em] ' +
|
|
22
26
|
(isMain
|
|
23
|
-
? ' mt-[50px] gap-20 max-xl:mt-9 '
|
|
24
|
-
: ' mt-[32px] gap-7 max-xl:mt-4 max-xl:gap-5 max-md:mt-10 ')
|
|
27
|
+
? ' mt-[50px] gap-20 max-xl:mt-11 max-sm:mt-9 '
|
|
28
|
+
: // : ' mt-[32px] gap-7 max-xl:mt-4 max-xl:gap-5 max-md:mt-10 ') +
|
|
29
|
+
' mt-[32px] gap-7 max-xl:gap-5 max-md:mt-10 ')}>
|
|
25
30
|
{isMain ? (<h1 className={'text-center text-[32px] font-[400] leading-[1] ' +
|
|
26
31
|
'max-xl:text-[24px] ' +
|
|
27
32
|
'max-md:text-[22px] ' +
|
|
@@ -54,32 +59,57 @@ const BannerSection = ({ title, subTitle, menu, initialData }) => {
|
|
|
54
59
|
</div>
|
|
55
60
|
</Wrapper>
|
|
56
61
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
'
|
|
60
|
-
|
|
61
|
-
'max-[
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
'
|
|
67
|
-
'max-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
62
|
+
{/*<div*/}
|
|
63
|
+
{/* className={*/}
|
|
64
|
+
{/* '!absolute bottom-0 z-20 h-[55px] w-full bg-[#5368C41A] ' +*/}
|
|
65
|
+
{/* 'max-xl:h-12 ' +*/}
|
|
66
|
+
{/* 'max-md:h-[82px] max-md:bg-[unset]'*/}
|
|
67
|
+
{/* }*/}
|
|
68
|
+
{/*>*/}
|
|
69
|
+
{/* <div*/}
|
|
70
|
+
{/* className={*/}
|
|
71
|
+
{/* 'relative mx-auto h-full w-full max-w-[1920px] px-[40px] ' +*/}
|
|
72
|
+
{/* 'max-[2120px]:px-[140px] ' +*/}
|
|
73
|
+
{/* 'max-3xl:px-[80px] ' +*/}
|
|
74
|
+
{/* 'max-xl:w-[100%] max-xl:px-[60px] ' +*/}
|
|
75
|
+
{/* 'max-md:px-0 '*/}
|
|
76
|
+
{/* }*/}
|
|
77
|
+
{/* >*/}
|
|
78
|
+
{/* <div*/}
|
|
79
|
+
{/* className={*/}
|
|
80
|
+
{/* 'mx-auto grid h-full w-full max-w-[1400px] grid-cols-4 ' +*/}
|
|
81
|
+
{/* 'max-xl:max-w-[760px] ' +*/}
|
|
82
|
+
{/* 'max-md:grid-cols-2 max-md:gap-[2px]'*/}
|
|
83
|
+
{/* }*/}
|
|
84
|
+
{/* >*/}
|
|
85
|
+
{/* {menu.map((menu) => {*/}
|
|
86
|
+
{/* return (*/}
|
|
87
|
+
{/* <Link*/}
|
|
88
|
+
{/* href={`/strength/${menu.url}`}*/}
|
|
89
|
+
{/* key={menu.url}*/}
|
|
90
|
+
{/* style={{ color: menu.color }}*/}
|
|
91
|
+
{/* className={*/}
|
|
92
|
+
{/* 'flex h-full w-full items-center justify-center text-[22px] leading-none tracking-[-0.7px] ' +*/}
|
|
93
|
+
{/* 'max-xl:text-[20px] ' +*/}
|
|
94
|
+
{/* 'max-md:h-10 max-md:bg-[#5368C41A] max-md:text-[18px] ' +*/}
|
|
95
|
+
{/* 'max-sm:text-[16px] ' +*/}
|
|
96
|
+
{/* 'transition-[background-color,font-weight] duration-500 hover:bg-[#5368C433] hover:font-[800] ' +*/}
|
|
97
|
+
{/* (pathname.includes(menu.url)*/}
|
|
98
|
+
{/* ? ' bg-[#5368C433] font-[800] max-md:bg-[#5368C433]'*/}
|
|
99
|
+
{/* : ' font-[400] ')*/}
|
|
100
|
+
{/* }*/}
|
|
101
|
+
{/* >*/}
|
|
102
|
+
{/* {router.locale === 'en' ? (*/}
|
|
103
|
+
{/* <span className={'w-full text-center text-[0.85em]'}>{menu.text}</span>*/}
|
|
104
|
+
{/* ) : (*/}
|
|
105
|
+
{/* menu.text*/}
|
|
106
|
+
{/* )}*/}
|
|
107
|
+
{/* </Link>*/}
|
|
108
|
+
{/* )*/}
|
|
109
|
+
{/* })}*/}
|
|
110
|
+
{/* </div>*/}
|
|
111
|
+
{/* </div>*/}
|
|
112
|
+
{/*</div>*/}
|
|
83
113
|
|
|
84
114
|
{!isMain ? (<>
|
|
85
115
|
<Image src={imagePath + `/strength_new/${bannerImg}.webp`} alt={'강점'} fill priority sizes={'100vw'} className={'relative z-0 object-cover object-top max-xl:hidden'} quality={100}/>
|
|
@@ -29,10 +29,14 @@ const BannerSection = ({
|
|
|
29
29
|
return (
|
|
30
30
|
<section
|
|
31
31
|
className={
|
|
32
|
-
'relative h-[
|
|
33
|
-
'max-xl:h-[
|
|
32
|
+
'relative h-[425px] w-full overflow-hidden pt-[170px] ' +
|
|
33
|
+
'max-xl:h-[382px] max-xl:pt-[162px] ' +
|
|
34
34
|
'max-sm:pt-[148px] ' +
|
|
35
|
-
(isMain ? 'bg-[#D1E4F7] max-md:h-[
|
|
35
|
+
(isMain ? 'bg-[#D1E4F7] max-md:h-[350px] max-sm:h-[320px]' : 'max-md:h-[380px] max-sm:h-[370px]')
|
|
36
|
+
// 'relative h-[480px] w-full overflow-hidden pt-[170px] ' + < 메뉴 있을때 코드, 주석처리만
|
|
37
|
+
// 'max-xl:h-[420px] max-xl:pt-[162px] ' +
|
|
38
|
+
// 'max-sm:pt-[148px] ' +
|
|
39
|
+
// (isMain ? 'bg-[#D1E4F7] max-md:h-[410px] max-sm:h-[382px]' : 'max-md:h-[450px] max-sm:h-[440px]')
|
|
36
40
|
}
|
|
37
41
|
>
|
|
38
42
|
<Wrapper className={'relative z-10 w-full '}>
|
|
@@ -41,8 +45,9 @@ const BannerSection = ({
|
|
|
41
45
|
className={
|
|
42
46
|
'flex w-full flex-col tracking-[-0.04em] ' +
|
|
43
47
|
(isMain
|
|
44
|
-
? ' mt-[50px] gap-20 max-xl:mt-9 '
|
|
45
|
-
: ' mt-[32px] gap-7 max-xl:mt-4 max-xl:gap-5 max-md:mt-10 ')
|
|
48
|
+
? ' mt-[50px] gap-20 max-xl:mt-11 max-sm:mt-9 '
|
|
49
|
+
: // : ' mt-[32px] gap-7 max-xl:mt-4 max-xl:gap-5 max-md:mt-10 ') +
|
|
50
|
+
' mt-[32px] gap-7 max-xl:gap-5 max-md:mt-10 ')
|
|
46
51
|
}
|
|
47
52
|
>
|
|
48
53
|
{isMain ? (
|
|
@@ -97,53 +102,57 @@ const BannerSection = ({
|
|
|
97
102
|
</div>
|
|
98
103
|
</Wrapper>
|
|
99
104
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
105
|
+
{/*<div*/}
|
|
106
|
+
{/* className={*/}
|
|
107
|
+
{/* '!absolute bottom-0 z-20 h-[55px] w-full bg-[#5368C41A] ' +*/}
|
|
108
|
+
{/* 'max-xl:h-12 ' +*/}
|
|
109
|
+
{/* 'max-md:h-[82px] max-md:bg-[unset]'*/}
|
|
110
|
+
{/* }*/}
|
|
111
|
+
{/*>*/}
|
|
112
|
+
{/* <div*/}
|
|
113
|
+
{/* className={*/}
|
|
114
|
+
{/* 'relative mx-auto h-full w-full max-w-[1920px] px-[40px] ' +*/}
|
|
115
|
+
{/* 'max-[2120px]:px-[140px] ' +*/}
|
|
116
|
+
{/* 'max-3xl:px-[80px] ' +*/}
|
|
117
|
+
{/* 'max-xl:w-[100%] max-xl:px-[60px] ' +*/}
|
|
118
|
+
{/* 'max-md:px-0 '*/}
|
|
119
|
+
{/* }*/}
|
|
120
|
+
{/* >*/}
|
|
121
|
+
{/* <div*/}
|
|
122
|
+
{/* className={*/}
|
|
123
|
+
{/* 'mx-auto grid h-full w-full max-w-[1400px] grid-cols-4 ' +*/}
|
|
124
|
+
{/* 'max-xl:max-w-[760px] ' +*/}
|
|
125
|
+
{/* 'max-md:grid-cols-2 max-md:gap-[2px]'*/}
|
|
126
|
+
{/* }*/}
|
|
127
|
+
{/* >*/}
|
|
128
|
+
{/* {menu.map((menu) => {*/}
|
|
129
|
+
{/* return (*/}
|
|
130
|
+
{/* <Link*/}
|
|
131
|
+
{/* href={`/strength/${menu.url}`}*/}
|
|
132
|
+
{/* key={menu.url}*/}
|
|
133
|
+
{/* style={{ color: menu.color }}*/}
|
|
134
|
+
{/* className={*/}
|
|
135
|
+
{/* 'flex h-full w-full items-center justify-center text-[22px] leading-none tracking-[-0.7px] ' +*/}
|
|
136
|
+
{/* 'max-xl:text-[20px] ' +*/}
|
|
137
|
+
{/* 'max-md:h-10 max-md:bg-[#5368C41A] max-md:text-[18px] ' +*/}
|
|
138
|
+
{/* 'max-sm:text-[16px] ' +*/}
|
|
139
|
+
{/* 'transition-[background-color,font-weight] duration-500 hover:bg-[#5368C433] hover:font-[800] ' +*/}
|
|
140
|
+
{/* (pathname.includes(menu.url)*/}
|
|
141
|
+
{/* ? ' bg-[#5368C433] font-[800] max-md:bg-[#5368C433]'*/}
|
|
142
|
+
{/* : ' font-[400] ')*/}
|
|
143
|
+
{/* }*/}
|
|
144
|
+
{/* >*/}
|
|
145
|
+
{/* {router.locale === 'en' ? (*/}
|
|
146
|
+
{/* <span className={'w-full text-center text-[0.85em]'}>{menu.text}</span>*/}
|
|
147
|
+
{/* ) : (*/}
|
|
148
|
+
{/* menu.text*/}
|
|
149
|
+
{/* )}*/}
|
|
150
|
+
{/* </Link>*/}
|
|
151
|
+
{/* )*/}
|
|
152
|
+
{/* })}*/}
|
|
153
|
+
{/* </div>*/}
|
|
154
|
+
{/* </div>*/}
|
|
155
|
+
{/*</div>*/}
|
|
147
156
|
|
|
148
157
|
{!isMain ? (
|
|
149
158
|
<>
|
|
@@ -31,8 +31,11 @@ const LawyerSection = ({ lawyer_title_1, lawyer_title_2, lawyer_link_list }) =>
|
|
|
31
31
|
</div>
|
|
32
32
|
<div className={'flex shrink-0 gap-5 tracking-[-0.04em] max-3xl:gap-4 max-lg:gap-[15px] max-md2:gap-[0px] max-md:gap-[15px] max-xs:gap-[10px]'}>
|
|
33
33
|
{lawyer_link_list.map((item, index) => {
|
|
34
|
+
var _a;
|
|
34
35
|
//채권추심센터는 업무분야 페이지가 없어서 민사센터로 이동하게
|
|
35
|
-
const isDebt = window.location.href
|
|
36
|
+
const isDebt = typeof window !== 'undefined' && ((_a = window.location) === null || _a === void 0 ? void 0 : _a.href)
|
|
37
|
+
? window.location.href.includes('debtcollection')
|
|
38
|
+
: false;
|
|
36
39
|
const url = item.url === '/field/area' && isDebt
|
|
37
40
|
? 'https://www.daeryunlaw-compensation.com/field/area'
|
|
38
41
|
: item.url;
|
|
@@ -112,7 +112,10 @@ const LawyerSection = ({
|
|
|
112
112
|
>
|
|
113
113
|
{lawyer_link_list.map((item, index) => {
|
|
114
114
|
//채권추심센터는 업무분야 페이지가 없어서 민사센터로 이동하게
|
|
115
|
-
const isDebt =
|
|
115
|
+
const isDebt =
|
|
116
|
+
typeof window !== 'undefined' && window.location?.href
|
|
117
|
+
? window.location.href.includes('debtcollection')
|
|
118
|
+
: false;
|
|
116
119
|
const url =
|
|
117
120
|
item.url === '/field/area' && isDebt
|
|
118
121
|
? 'https://www.daeryunlaw-compensation.com/field/area'
|
|
@@ -15,8 +15,13 @@ const InfraSection = ({ infra_list, initialData }) => {
|
|
|
15
15
|
};
|
|
16
16
|
export default InfraSection;
|
|
17
17
|
const ViewMoreBtn = ({ label, url }) => {
|
|
18
|
+
var _a;
|
|
18
19
|
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
19
|
-
const center = window.location
|
|
20
|
+
const center = typeof window !== 'undefined' && ((_a = window.location) === null || _a === void 0 ? void 0 : _a.href)
|
|
21
|
+
? window.location.href.split('.').length > 0
|
|
22
|
+
? window.location.href.split('.')[1]
|
|
23
|
+
: 'none'
|
|
24
|
+
: 'none';
|
|
20
25
|
const target = url.includes(center) ? '_self' : '_blank';
|
|
21
26
|
return (<Link href={url} target={target} className={'group flex h-[66px] w-[240px] items-center justify-center gap-[10px] rounded-[10px] border border-solid border-[#5368C4] bg-white text-[22px] font-[800] leading-none text-[#5368C4] ' +
|
|
22
27
|
'lg:transition-[background-color,color] lg:duration-500 lg:hover:bg-[#5368C4] lg:hover:text-white ' +
|
|
@@ -100,7 +105,7 @@ const RightTextItem = ({ item, index, initialData }) => {
|
|
|
100
105
|
<p className={'relative z-10 text-[20px] font-[400] leading-[1.4] max-xl:text-[16px]'}>
|
|
101
106
|
<span className={'relative z-20 sm:whitespace-pre-wrap'} dangerouslySetInnerHTML={{ __html: replaceInitialData(item.desc, initialData) }}></span>
|
|
102
107
|
|
|
103
|
-
<ItemNumber index={index} className={'right-0 max-md:top-[-160px]
|
|
108
|
+
<ItemNumber index={index} className={'right-0 max-md:top-[-160px] md:hidden'}/>
|
|
104
109
|
</p>
|
|
105
110
|
|
|
106
111
|
<div className={'relative flex flex-col gap-[25px] border-y border-solid border-[#F6F6F6] py-10 ' +
|
|
@@ -122,11 +127,11 @@ const RightTextItem = ({ item, index, initialData }) => {
|
|
|
122
127
|
})}
|
|
123
128
|
</div>
|
|
124
129
|
|
|
125
|
-
<div className={'flex w-full gap-5 max-lg:gap-[10px] max-xs:flex-col'}>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
+
{item.title != '심리상담센터' ? (<div className={'flex w-full gap-5 max-lg:gap-[10px] max-xs:flex-col'}>
|
|
131
|
+
{item.view_more_list.map(li => {
|
|
132
|
+
return <ViewMoreBtn label={li.label} url={li.url} key={li.url}/>;
|
|
133
|
+
})}
|
|
134
|
+
</div>) : (<></>)}
|
|
130
135
|
</div>
|
|
131
136
|
</div>
|
|
132
137
|
</div>
|
|
@@ -196,10 +201,11 @@ const LeftTextItem = ({ item, index, initialData }) => {
|
|
|
196
201
|
<h2 className={'whitespace-pre-wrap text-[32px] font-[800] leading-[1.3] max-xl:text-[24px] '} dangerouslySetInnerHTML={{
|
|
197
202
|
__html: replaceInitialData(item.title.replace('*consult_date*', `<span class='text-[20px]'>*consult_date*</span>`), initialData)
|
|
198
203
|
}}></h2>
|
|
199
|
-
<p className={'relative z-10
|
|
200
|
-
|
|
204
|
+
<p className={'relative z-10 text-[20px] font-[400] leading-[1.4] ' + 'max-xl:text-[16px]'}>
|
|
205
|
+
<span className={'relative z-20 sm:whitespace-pre-wrap'} dangerouslySetInnerHTML={{ __html: replaceInitialData(item.desc, initialData) }}></span>
|
|
206
|
+
</p>
|
|
201
207
|
|
|
202
|
-
<ItemNumber index={index} className={'max-md:left-[60px] max-md:top-[-60px] max-sm:left-5 md:hidden '}/>
|
|
208
|
+
<ItemNumber index={index} className={'max-md:left-[60px] max-md:top-[-60px] max-sm:left-5 max-sm:top-[-77px] md:hidden '}/>
|
|
203
209
|
|
|
204
210
|
<div className={'relative flex flex-col gap-[25px] border-y border-solid border-[#F6F6F6] py-10 ' +
|
|
205
211
|
'max-xl:gap-[22px] max-xl:py-5 ' +
|
|
@@ -219,11 +225,11 @@ const LeftTextItem = ({ item, index, initialData }) => {
|
|
|
219
225
|
})}
|
|
220
226
|
</div>
|
|
221
227
|
|
|
222
|
-
<div className={'flex w-full gap-5 max-lg:gap-[10px]
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
228
|
+
{item.title != '심리상담센터' ? (<div className={'flex w-full gap-5 max-lg:gap-[10px] max-xs:flex-col'}>
|
|
229
|
+
{item.view_more_list.map(li => {
|
|
230
|
+
return <ViewMoreBtn label={li.label} url={li.url} key={li.url}/>;
|
|
231
|
+
})}
|
|
232
|
+
</div>) : (<></>)}
|
|
227
233
|
</div>
|
|
228
234
|
</div>
|
|
229
235
|
</div>
|
|
@@ -41,9 +41,15 @@ export default InfraSection;
|
|
|
41
41
|
|
|
42
42
|
const ViewMoreBtn = ({ label, url }: { label: string; url: string }) => {
|
|
43
43
|
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
44
|
-
const center = window.location.href.split('.')[1]; //daeryunlaw- + discovery, guard, forensic
|
|
45
|
-
const target = url.includes(center) ? '_self' : '_blank';
|
|
46
44
|
|
|
45
|
+
const center =
|
|
46
|
+
typeof window !== 'undefined' && window.location?.href
|
|
47
|
+
? window.location.href.split('.').length > 0
|
|
48
|
+
? window.location.href.split('.')[1]
|
|
49
|
+
: 'none'
|
|
50
|
+
: 'none';
|
|
51
|
+
|
|
52
|
+
const target = url.includes(center) ? '_self' : '_blank';
|
|
47
53
|
return (
|
|
48
54
|
<Link
|
|
49
55
|
href={url}
|
|
@@ -226,10 +232,7 @@ const RightTextItem = ({
|
|
|
226
232
|
dangerouslySetInnerHTML={{ __html: replaceInitialData(item.desc, initialData) }}
|
|
227
233
|
></span>
|
|
228
234
|
|
|
229
|
-
<ItemNumber
|
|
230
|
-
index={index}
|
|
231
|
-
className={'right-0 max-md:top-[-160px] max-sm:top-[-150px] md:hidden'}
|
|
232
|
-
/>
|
|
235
|
+
<ItemNumber index={index} className={'right-0 max-md:top-[-160px] md:hidden'} />
|
|
233
236
|
</p>
|
|
234
237
|
|
|
235
238
|
<div
|
|
@@ -272,11 +275,15 @@ const RightTextItem = ({
|
|
|
272
275
|
})}
|
|
273
276
|
</div>
|
|
274
277
|
|
|
275
|
-
|
|
276
|
-
{
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
278
|
+
{item.title != '심리상담센터' ? (
|
|
279
|
+
<div className={'flex w-full gap-5 max-lg:gap-[10px] max-xs:flex-col'}>
|
|
280
|
+
{item.view_more_list.map(li => {
|
|
281
|
+
return <ViewMoreBtn label={li.label} url={li.url} key={li.url} />;
|
|
282
|
+
})}
|
|
283
|
+
</div>
|
|
284
|
+
) : (
|
|
285
|
+
<></>
|
|
286
|
+
)}
|
|
280
287
|
</div>
|
|
281
288
|
</div>
|
|
282
289
|
</div>
|
|
@@ -425,17 +432,18 @@ const LeftTextItem = ({
|
|
|
425
432
|
)
|
|
426
433
|
}}
|
|
427
434
|
></h2>
|
|
428
|
-
<p
|
|
429
|
-
|
|
430
|
-
'relative z-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
></p>
|
|
435
|
+
<p className={'relative z-10 text-[20px] font-[400] leading-[1.4] ' + 'max-xl:text-[16px]'}>
|
|
436
|
+
<span
|
|
437
|
+
className={'relative z-20 sm:whitespace-pre-wrap'}
|
|
438
|
+
dangerouslySetInnerHTML={{ __html: replaceInitialData(item.desc, initialData) }}
|
|
439
|
+
></span>
|
|
440
|
+
</p>
|
|
435
441
|
|
|
436
442
|
<ItemNumber
|
|
437
443
|
index={index}
|
|
438
|
-
className={
|
|
444
|
+
className={
|
|
445
|
+
'max-md:left-[60px] max-md:top-[-60px] max-sm:left-5 max-sm:top-[-77px] md:hidden '
|
|
446
|
+
}
|
|
439
447
|
/>
|
|
440
448
|
|
|
441
449
|
<div
|
|
@@ -477,11 +485,15 @@ const LeftTextItem = ({
|
|
|
477
485
|
})}
|
|
478
486
|
</div>
|
|
479
487
|
|
|
480
|
-
|
|
481
|
-
{
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
488
|
+
{item.title != '심리상담센터' ? (
|
|
489
|
+
<div className={'flex w-full gap-5 max-lg:gap-[10px] max-xs:flex-col'}>
|
|
490
|
+
{item.view_more_list.map(li => {
|
|
491
|
+
return <ViewMoreBtn label={li.label} url={li.url} key={li.url} />;
|
|
492
|
+
})}
|
|
493
|
+
</div>
|
|
494
|
+
) : (
|
|
495
|
+
<></>
|
|
496
|
+
)}
|
|
485
497
|
</div>
|
|
486
498
|
</div>
|
|
487
499
|
</div>
|
|
@@ -112,7 +112,7 @@ export function categoryMenuName({ url }) {
|
|
|
112
112
|
return { title: '업무분야', subTitle: `${NEXT_PUBLIC_GROUPNAME} 업무`, address: 'field/area' };
|
|
113
113
|
}
|
|
114
114
|
else if (url.includes('/field_new')) {
|
|
115
|
-
return { title: '업무분야', subTitle: `업무분야`, address: '
|
|
115
|
+
return { title: '업무분야', subTitle: `업무분야`, address: 'field/area' };
|
|
116
116
|
}
|
|
117
117
|
else if (url.includes('/info')) {
|
|
118
118
|
return {
|
|
@@ -90,7 +90,7 @@ export function categoryMenuName({ url }: { url: string }): {
|
|
|
90
90
|
} else if (url.includes('/field/area')) {
|
|
91
91
|
return { title: '업무분야', subTitle: `${NEXT_PUBLIC_GROUPNAME} 업무`, address: 'field/area' };
|
|
92
92
|
} else if (url.includes('/field_new')) {
|
|
93
|
-
return { title: '업무분야', subTitle: `업무분야`, address: '
|
|
93
|
+
return { title: '업무분야', subTitle: `업무분야`, address: 'field/area' };
|
|
94
94
|
} else if (url.includes('/info')) {
|
|
95
95
|
return {
|
|
96
96
|
title: '업무사례',
|