@daeryun/dr_components 1.2.98 → 1.3.0

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 (57) hide show
  1. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  2. package/dist/components/Footer/index.jsx +7 -6
  3. package/dist/components/Footer/index.tsx +9 -6
  4. package/dist/components/GlobalOfficeSection/GlobalOfficeSection.jsx +5 -2
  5. package/dist/components/GlobalOfficeSection/GlobalOfficeSection.tsx +5 -2
  6. package/dist/components/Menu/MobileMenu.jsx +7 -7
  7. package/dist/components/Menu/MobileMenu.tsx +22 -7
  8. package/dist/components/Seo/FieldCase.jsx +27 -22
  9. package/dist/components/Seo/FieldCase.tsx +39 -33
  10. package/dist/components/Seo/Lawyer.jsx +3 -2
  11. package/dist/components/Seo/Lawyer.tsx +5 -2
  12. package/dist/components/Seo/SuccessCase.jsx +4 -1
  13. package/dist/components/Seo/SuccessCase.tsx +4 -1
  14. package/dist/components/ViewMoreSection/ViewMoreSection.jsx +4 -3
  15. package/dist/components/ViewMoreSection/ViewMoreSection.tsx +7 -3
  16. package/dist/components/index.js +0 -1
  17. package/dist/components/index.ts +0 -1
  18. package/dist/components/page/ConsultComplete/ConsultComplete.jsx +4 -3
  19. package/dist/components/page/ConsultComplete/ConsultComplete.tsx +4 -3
  20. package/dist/components/page/Integrate/Field.jsx +2 -1
  21. package/dist/components/page/Integrate/Field.tsx +2 -1
  22. package/dist/components/page/Integrate/LawInfo.jsx +2 -1
  23. package/dist/components/page/Integrate/LawInfo.tsx +2 -1
  24. package/dist/components/page/Integrate/Success.jsx +5 -1
  25. package/dist/components/page/Integrate/Success.tsx +5 -1
  26. package/dist/components/page/Integrate/Trend.jsx +2 -1
  27. package/dist/components/page/Integrate/Trend.tsx +4 -1
  28. package/dist/components/page/LawyerDetail/component/CareerList.jsx +2 -1
  29. package/dist/components/page/LawyerDetail/component/CareerList.tsx +2 -1
  30. package/dist/components/page/LawyerDetail/component/MobileSpeciality.jsx +2 -1
  31. package/dist/components/page/LawyerDetail/component/MobileSpeciality.tsx +2 -1
  32. package/dist/components/page/StrengthNew/components/common/LawyerSection.jsx +2 -1
  33. package/dist/components/page/StrengthNew/components/common/LawyerSection.tsx +2 -1
  34. package/dist/components/page/StrengthNew/components/infra/InfraSection.jsx +2 -2
  35. package/dist/components/page/StrengthNew/components/infra/InfraSection.tsx +2 -2
  36. package/dist/components/page/SuccessNew/components/FieldCase.jsx +13 -8
  37. package/dist/components/page/SuccessNew/components/FieldCase.tsx +41 -33
  38. package/dist/components/page/SuccessNew/components/LawInfoContentList.jsx +3 -2
  39. package/dist/components/page/SuccessNew/components/LawInfoContentList.tsx +3 -2
  40. package/dist/components/page/SuccessNew/components/Lawyer.jsx +3 -2
  41. package/dist/components/page/SuccessNew/components/Lawyer.tsx +5 -2
  42. package/dist/components/page/SuccessNew/components/SeoAdditionalLink.jsx +2 -1
  43. package/dist/components/page/SuccessNew/components/SeoAdditionalLink.tsx +5 -2
  44. package/dist/components/page/SuccessNew/components/SuccessCase.jsx +32 -27
  45. package/dist/components/page/SuccessNew/components/SuccessCase.tsx +45 -39
  46. package/dist/lib/powerlink.d.ts +1 -0
  47. package/dist/lib/powerlink.js +14 -0
  48. package/dist/lib/powerlink.ts +61 -47
  49. package/dist/styles/globals.css +5 -115
  50. package/dist/tsconfig.tsbuildinfo +1 -1
  51. package/package.json +2 -2
  52. package/dist/components/Footer/FooterV2.d.ts +0 -30
  53. package/dist/components/Footer/FooterV2.jsx +0 -423
  54. package/dist/components/Footer/FooterV2.tsx +0 -764
  55. package/dist/components/Footer/_backup/index.d.ts +0 -5
  56. package/dist/components/Footer/_backup/index.jsx +0 -423
  57. package/dist/components/Footer/_backup/index.tsx +0 -747
@@ -3,6 +3,7 @@ import Image from 'next/image';
3
3
  import React from 'react';
4
4
  import style from '../detail.module.css';
5
5
  import { searchColorLawyerText } from '../../../common/integrate';
6
+ import { getPowerLinkStr } from '../../../../lib';
6
7
  const CareerList = ({ lawyerInfo, careerList, certiList, codeList, speciality, successList, broadcastList, reviewList, targetRefs, integrateSearch, targetTitleRefs }) => {
7
8
  return (<div className={'mt-[80px] flex justify-between gap-[90px] ' +
8
9
  //768px
@@ -249,7 +250,7 @@ const CareerList = ({ lawyerInfo, careerList, certiList, codeList, speciality, s
249
250
  getUrl === ''
250
251
  ? 'https://www.daeryunlaw-discovery.com/'
251
252
  : getUrl;
252
- return (<Link href={url} target="_blank" key={'관련 업무분야 ' + index} className={'mr-[5px] mt-[5px] inline-block basis-[100%] flex-wrap rounded-[20px] border-[1px] border-solid border-[#dfdfdf] px-[10px] py-[4px] text-[16px] font-[700] tracking-[-0.9px] text-[#555] ' +
253
+ return (<Link href={url + getPowerLinkStr()} target="_blank" key={'관련 업무분야 ' + index} className={'mr-[5px] mt-[5px] inline-block basis-[100%] flex-wrap rounded-[20px] border-[1px] border-solid border-[#dfdfdf] px-[10px] py-[4px] text-[16px] font-[700] tracking-[-0.9px] text-[#555] ' +
253
254
  'group hover:border-[#285FA7] hover:text-[#285FA7] '}>
254
255
  <span className={'flex items-center gap-[2px]'}>
255
256
  <Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/hover_off.webp'} alt={careerTxt + '전문변호사'} width={6} height={6} className={'group-hover:hidden'}/>
@@ -4,6 +4,7 @@ import React from 'react';
4
4
  import style from '../detail.module.css';
5
5
  import { IBoard, ILawyer, ILawyerCareer, ISuccess } from '../ILawyerDetailTypes';
6
6
  import { searchColorLawyerText } from '../../../common/integrate';
7
+ import { getPowerLinkStr } from '../../../../lib';
7
8
 
8
9
  const CareerList = ({
9
10
  lawyerInfo,
@@ -431,7 +432,7 @@ const CareerList = ({
431
432
 
432
433
  return (
433
434
  <Link
434
- href={url}
435
+ href={url + getPowerLinkStr()}
435
436
  target="_blank"
436
437
  key={'관련 업무분야 ' + index}
437
438
  className={
@@ -3,6 +3,7 @@ import Image from 'next/image';
3
3
  import React, { useState } from 'react';
4
4
  import { searchColorLawyerText } from '../../../common/integrate';
5
5
  import { Wrapper } from '../../../index';
6
+ import { getPowerLinkStr } from '../../../../lib';
6
7
  const MobileSpeciality = ({ speciality, codeList, maxLines, integrateSearch, isUseWrapper }) => {
7
8
  const [mobileCareerViewMore, setMobileCareerViewMore] = useState(false);
8
9
  const Container = ({ isUseWrapper, children }) => {
@@ -39,7 +40,7 @@ const MobileSpeciality = ({ speciality, codeList, maxLines, integrateSearch, isU
39
40
  ? 'https://www.daeryunlaw-discovery.com/'
40
41
  : getUrl;
41
42
  return (<li className={'mr-[5px] mt-[5px] inline-block basis-[100%] flex-wrap rounded-[20px] border-[1px] border-solid border-[#dfdfdf] px-[10px] py-[4px] text-[16px] font-[700] tracking-[-0.9px] text-[#555] '} key={`li_key_${item}_${index}`}>
42
- <Link href={url} target={'_blank'} key={`a_key_${item}_${index}`}>
43
+ <Link href={url + getPowerLinkStr()} target={'_blank'} key={`a_key_${item}_${index}`}>
43
44
  <span className={'flex items-center gap-[2px]'}>
44
45
  <Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/hover_off.webp'} alt={careerTxt + '전문변호사'} width={6} height={6}/>
45
46
  {searchColorLawyerText(careerTxt, integrateSearch)}
@@ -5,6 +5,7 @@ import React, { useState } from 'react';
5
5
  import { ILawyerCareer } from '../ILawyerDetailTypes';
6
6
  import { searchColorLawyerText } from '../../../common/integrate';
7
7
  import { Wrapper } from '../../../index';
8
+ import { getPowerLinkStr } from '../../../../lib';
8
9
 
9
10
  const MobileSpeciality = ({
10
11
  speciality,
@@ -80,7 +81,7 @@ const MobileSpeciality = ({
80
81
  key={`li_key_${item}_${index}`}
81
82
  >
82
83
  <Link
83
- href={url}
84
+ href={url + getPowerLinkStr()}
84
85
  target={'_blank'}
85
86
  key={`a_key_${item}_${index}`}
86
87
  // className={
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import Link from 'next/link';
4
4
  import { usePathname } from 'next/navigation';
5
5
  import Wrapper from '../../../../Layout/Wrapper';
6
+ import { getPowerLinkStr } from '../../../../../lib';
6
7
  const LawyerSection = ({ lawyer_title_1, lawyer_title_2, lawyer_link_list }) => {
7
8
  const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
8
9
  const pathname = usePathname();
@@ -36,7 +37,7 @@ const LawyerSection = ({ lawyer_title_1, lawyer_title_2, lawyer_link_list }) =>
36
37
  ? window.location.href.includes('debtcollection')
37
38
  : false;
38
39
  const url = item.url === '/field/area' && isDebt
39
- ? 'https://www.daeryunlaw-compensation.com/field/area'
40
+ ? 'https://www.daeryunlaw-compensation.com/field/area' + getPowerLinkStr()
40
41
  : item.url;
41
42
  return (<Link href={url} target={item.url === '/field/area' && isDebt ? '_blank' : '_self'} className={'group relative h-[240px] w-[240px] rounded-full ' +
42
43
  'max-3xl:h-[200px] max-3xl:w-[200px] ' +
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import Link from 'next/link';
4
4
  import { usePathname } from 'next/navigation';
5
5
  import Wrapper from '../../../../Layout/Wrapper';
6
+ import { getPowerLinkStr } from '../../../../../lib';
6
7
 
7
8
  const LawyerSection = ({
8
9
  lawyer_title_1,
@@ -124,7 +125,7 @@ const LawyerSection = ({
124
125
  : false;
125
126
  const url =
126
127
  item.url === '/field/area' && isDebt
127
- ? 'https://www.daeryunlaw-compensation.com/field/area'
128
+ ? 'https://www.daeryunlaw-compensation.com/field/area' + getPowerLinkStr()
128
129
  : item.url;
129
130
 
130
131
  return (
@@ -4,7 +4,7 @@ import React, { useEffect, useState } from 'react';
4
4
  import Link from 'next/link';
5
5
  import ItemNumber from '../common/ItemNumber';
6
6
  import useBrowser from '../../../../hook/useBrowser';
7
- import { replaceInitialData } from '../../../../../lib';
7
+ import { getPowerLinkStr, replaceInitialData } from '../../../../../lib';
8
8
  const InfraSection = ({ infra_list, initialData }) => {
9
9
  return (<section className={'w-full border-b border-solid border-[#5368C4] pt-[100px] tracking-[-0.04em] max-xl:pt-20 max-sm:pt-10 '}>
10
10
  {infra_list.map((item, index) => {
@@ -23,7 +23,7 @@ const ViewMoreBtn = ({ label, url }) => {
23
23
  : 'none'
24
24
  : 'none';
25
25
  const target = url.includes(center) ? '_self' : '_blank';
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] ' +
26
+ return (<Link href={url + getPowerLinkStr()} 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] ' +
27
27
  'lg:transition-[background-color,color] lg:duration-500 lg:hover:bg-[#5368C4] lg:hover:text-white ' +
28
28
  'max-xl:h-10 max-xl:w-[140px] max-xl:gap-[14px] max-xl:rounded-[5px] max-xl:text-[16px] ' +
29
29
  'max-md:gap-2 ' +
@@ -6,7 +6,7 @@ import Link from 'next/link';
6
6
  import ItemNumber from '../common/ItemNumber';
7
7
  import { IInitialDataTypes } from '../../../../common';
8
8
  import useBrowser from '../../../../hook/useBrowser';
9
- import { replaceInitialData } from '../../../../../lib';
9
+ import { getPowerLinkStr, replaceInitialData } from '../../../../../lib';
10
10
 
11
11
  const InfraSection = ({
12
12
  infra_list,
@@ -52,7 +52,7 @@ const ViewMoreBtn = ({ label, url }: { label: string; url: string }) => {
52
52
  const target = url.includes(center) ? '_self' : '_blank';
53
53
  return (
54
54
  <Link
55
- href={url}
55
+ href={url + getPowerLinkStr()}
56
56
  target={target}
57
57
  className={
58
58
  '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] ' +
@@ -3,11 +3,14 @@ import React from 'react';
3
3
  import IconArrow from '../../../../asset/images/success_new/up_right.svg';
4
4
  import IconDot from '../../../../asset/images/success_new/dia_dot.svg';
5
5
  import IconRightArrow from '../../../../asset/images/success_new/right_arrow.svg';
6
+ import { getPowerLinkStr } from '../../../../lib';
6
7
  export const FieldCase = ({ fieldData }) => {
7
8
  var _a;
8
9
  const SERVICE_DOMAIN = (_a = process.env.NEXT_PUBLIC_SERVICE_DOMAIN) !== null && _a !== void 0 ? _a : '';
9
10
  const isDebt = String(SERVICE_DOMAIN).includes('debtcollection');
10
- const viewMorePath = isDebt ? 'https://www.daeryunlaw-compensation.com/field/area' : '/field/area';
11
+ const viewMorePath = isDebt
12
+ ? 'https://www.daeryunlaw-compensation.com/field/area' + getPowerLinkStr()
13
+ : '/field/area';
11
14
  return (<div className={'relative h-auto w-full border-l-[1px] border-t-[1px] border-solid border-[#B9B9B9] pb-[45px] pl-[26px] pt-[30px] ' +
12
15
  'before:absolute before:left-0 before:top-0 before:block before:aspect-square before:w-[15px] before:bg-[#B9B9B9] before:content-[""] '}>
13
16
  <span className={'flex h-fit w-full items-center justify-between'}>
@@ -35,27 +38,29 @@ export const FieldCase = ({ fieldData }) => {
35
38
  <span className={'mt-[30px] flex flex-col gap-3 '}>
36
39
  {fieldData === null || fieldData === void 0 ? void 0 : fieldData.map(i => {
37
40
  var _a;
38
- return (<Link href={((_a = i.domain) !== null && _a !== void 0 ? _a : '') + i.pathname + i.idx} key={i.pathname + i.idx} target={i.domain ? '_blank' : i.pathname.includes(SERVICE_DOMAIN !== null && SERVICE_DOMAIN !== void 0 ? SERVICE_DOMAIN : '') ? '' : '_blank'} className={'flex w-fit items-start gap-[10px] text-[20px] font-medium tracking-[-0.4px] hover:text-[#285FA7] ' +
41
+ const link = ((_a = i.domain) !== null && _a !== void 0 ? _a : '') + i.pathname + i.idx;
42
+ const href = link.includes('daeryunlaw') ? link + getPowerLinkStr() : link;
43
+ return (<Link href={href} key={i.pathname + i.idx} target={i.domain ? '_blank' : i.pathname.includes(SERVICE_DOMAIN !== null && SERVICE_DOMAIN !== void 0 ? SERVICE_DOMAIN : '') ? '' : '_blank'} className={'flex w-fit items-start gap-[10px] text-[20px] font-medium tracking-[-0.4px] hover:text-[#285FA7] ' +
39
44
  //1500px
40
45
  'max-3xl:text-[18px] ' +
41
46
  //1280px
42
47
  'max-xl:text-[20px] ' +
43
48
  //768px
44
49
  'max-md:text-[18px]'}>
45
- <IconDot className={'mt-3 inline shrink-0 ' +
50
+ <IconDot className={'mt-3 inline shrink-0 ' +
46
51
  //1500px
47
52
  'max-3xl:mt-[9px]'}/>
48
- <div>
49
- {i.title_text}
50
- <IconArrow aria-label={'새창열림'} className={'mb-[5px] ml-2 inline h-[10px] w-[10px] ' +
53
+ <div>
54
+ {i.title_text}
55
+ <IconArrow aria-label={'새창열림'} className={'mb-[5px] ml-2 inline h-[10px] w-[10px] ' +
51
56
  //1500px
52
57
  'max-3xl:h-[9px] max-3xl:w-[9px] ' +
53
58
  //1280px
54
59
  'max-xl:mb-[3px] max-xl:h-[10px] max-xl:w-[10px] ' +
55
60
  //1500px
56
61
  'max-md:mb-[7px] max-md:h-[9px] max-md:w-[9px] '}/>
57
- </div>
58
- </Link>);
62
+ </div>
63
+ </Link>);
59
64
  })}
60
65
  </span>
61
66
  </div>);
@@ -4,11 +4,14 @@ import IconArrow from '../../../../asset/images/success_new/up_right.svg';
4
4
  import IconDot from '../../../../asset/images/success_new/dia_dot.svg';
5
5
  import IconRightArrow from '../../../../asset/images/success_new/right_arrow.svg';
6
6
  import { IFieldTypes } from '../SuccessNewType';
7
+ import { getPowerLinkStr } from '../../../../lib';
7
8
 
8
9
  export const FieldCase = ({ fieldData }: { fieldData: IFieldTypes[] }) => {
9
10
  const SERVICE_DOMAIN = process.env.NEXT_PUBLIC_SERVICE_DOMAIN ?? '';
10
11
  const isDebt = String(SERVICE_DOMAIN).includes('debtcollection');
11
- const viewMorePath = isDebt ? 'https://www.daeryunlaw-compensation.com/field/area' : '/field/area';
12
+ const viewMorePath = isDebt
13
+ ? 'https://www.daeryunlaw-compensation.com/field/area' + getPowerLinkStr()
14
+ : '/field/area';
12
15
 
13
16
  return (
14
17
  <div
@@ -59,45 +62,50 @@ export const FieldCase = ({ fieldData }: { fieldData: IFieldTypes[] }) => {
59
62
  </Link>
60
63
  </span>
61
64
  <span className={'mt-[30px] flex flex-col gap-3 '}>
62
- {fieldData?.map(i => (
63
- <Link
64
- href={(i.domain ?? '') + i.pathname + i.idx}
65
- key={i.pathname + i.idx}
66
- target={i.domain ? '_blank' : i.pathname.includes(SERVICE_DOMAIN ?? '') ? '' : '_blank'}
67
- className={
68
- 'flex w-fit items-start gap-[10px] text-[20px] font-medium tracking-[-0.4px] hover:text-[#285FA7] ' +
69
- //1500px
70
- 'max-3xl:text-[18px] ' +
71
- //1280px
72
- 'max-xl:text-[20px] ' +
73
- //768px
74
- 'max-md:text-[18px]'
75
- }
76
- >
77
- <IconDot
65
+ {fieldData?.map(i => {
66
+ const link = (i.domain ?? '') + i.pathname + i.idx;
67
+ const href = link.includes('daeryunlaw') ? link + getPowerLinkStr() : link;
68
+
69
+ return (
70
+ <Link
71
+ href={href}
72
+ key={i.pathname + i.idx}
73
+ target={i.domain ? '_blank' : i.pathname.includes(SERVICE_DOMAIN ?? '') ? '' : '_blank'}
78
74
  className={
79
- 'mt-3 inline shrink-0 ' +
75
+ 'flex w-fit items-start gap-[10px] text-[20px] font-medium tracking-[-0.4px] hover:text-[#285FA7] ' +
80
76
  //1500px
81
- 'max-3xl:mt-[9px]'
77
+ 'max-3xl:text-[18px] ' +
78
+ //1280px
79
+ 'max-xl:text-[20px] ' +
80
+ //768px
81
+ 'max-md:text-[18px]'
82
82
  }
83
- />
84
- <div>
85
- {i.title_text}
86
- <IconArrow
87
- aria-label={'새창열림'}
83
+ >
84
+ <IconDot
88
85
  className={
89
- 'mb-[5px] ml-2 inline h-[10px] w-[10px] ' +
90
- //1500px
91
- 'max-3xl:h-[9px] max-3xl:w-[9px] ' +
92
- //1280px
93
- 'max-xl:mb-[3px] max-xl:h-[10px] max-xl:w-[10px] ' +
86
+ 'mt-3 inline shrink-0 ' +
94
87
  //1500px
95
- 'max-md:mb-[7px] max-md:h-[9px] max-md:w-[9px] '
88
+ 'max-3xl:mt-[9px]'
96
89
  }
97
90
  />
98
- </div>
99
- </Link>
100
- ))}
91
+ <div>
92
+ {i.title_text}
93
+ <IconArrow
94
+ aria-label={'새창열림'}
95
+ className={
96
+ 'mb-[5px] ml-2 inline h-[10px] w-[10px] ' +
97
+ //1500px
98
+ 'max-3xl:h-[9px] max-3xl:w-[9px] ' +
99
+ //1280px
100
+ 'max-xl:mb-[3px] max-xl:h-[10px] max-xl:w-[10px] ' +
101
+ //1500px
102
+ 'max-md:mb-[7px] max-md:h-[9px] max-md:w-[9px] '
103
+ }
104
+ />
105
+ </div>
106
+ </Link>
107
+ );
108
+ })}
101
109
  </span>
102
110
  </div>
103
111
  );
@@ -3,6 +3,7 @@ import React, { useState } from 'react';
3
3
  import Image from 'next/image';
4
4
  import IconArrow from '../../../../asset/images/success_new/arrow_line.svg';
5
5
  import Logo from '../../../../asset/images/success_new/logo.webp';
6
+ import { getPowerLinkStr } from '../../../../lib';
6
7
  const LawInfoContentList = ({ contentsList, template, className }) => {
7
8
  const [hoverNum, setHoverNum] = useState(0);
8
9
  return (<section className={'relative w-full overflow-hidden bg-[#F6F6F6] p-[54px] ' +
@@ -26,10 +27,10 @@ const LawInfoContentList = ({ contentsList, template, className }) => {
26
27
  const href = isConsultGroup
27
28
  ? content.center_code === 'CT0023' //상담 그룹의 경우 다른 그룹의 업무분야를 불러오기때문에 조건문 다르게 처리 필요
28
29
  ? `/lawInfo_new/${content.type_idx}`
29
- : `${content.domain}lawInfo_new/${content.type_idx}`
30
+ : `${content.domain}lawInfo_new/${content.type_idx}` + getPowerLinkStr()
30
31
  : content.center_code === template[0].center_code
31
32
  ? `/lawInfo_new/${content.type_idx}`
32
- : `${content.domain}lawInfo_new/${content.type_idx}`;
33
+ : `${content.domain}lawInfo_new/${content.type_idx}` + getPowerLinkStr();
33
34
  const target = isConsultGroup
34
35
  ? content.center_code === 'CT0023' //상담 그룹의 경우 다른 그룹의 업무분야를 불러오기때문에 조건문 다르게 처리 필요
35
36
  ? ''
@@ -6,6 +6,7 @@ import IconArrow from '../../../../asset/images/success_new/arrow_line.svg';
6
6
  import Logo from '../../../../asset/images/success_new/logo.webp';
7
7
  import { IContentsListTypes, ISeoTemplateTypes } from '../SuccessNewType';
8
8
  import CallIcon from '../../../../asset/images/fix/call.webp';
9
+ import { getPowerLinkStr } from '../../../../lib';
9
10
 
10
11
  const LawInfoContentList = ({
11
12
  contentsList,
@@ -54,10 +55,10 @@ const LawInfoContentList = ({
54
55
  const href = isConsultGroup
55
56
  ? content.center_code === 'CT0023' //상담 그룹의 경우 다른 그룹의 업무분야를 불러오기때문에 조건문 다르게 처리 필요
56
57
  ? `/lawInfo_new/${content.type_idx}`
57
- : `${content.domain}lawInfo_new/${content.type_idx}`
58
+ : `${content.domain}lawInfo_new/${content.type_idx}` + getPowerLinkStr()
58
59
  : content.center_code === template[0].center_code
59
60
  ? `/lawInfo_new/${content.type_idx}`
60
- : `${content.domain}lawInfo_new/${content.type_idx}`;
61
+ : `${content.domain}lawInfo_new/${content.type_idx}` + getPowerLinkStr();
61
62
 
62
63
  const target = isConsultGroup
63
64
  ? content.center_code === 'CT0023' //상담 그룹의 경우 다른 그룹의 업무분야를 불러오기때문에 조건문 다르게 처리 필요
@@ -1,7 +1,7 @@
1
1
  import Link from 'next/link';
2
2
  import Image from 'next/image';
3
3
  import React from 'react';
4
- import { lawyerCode } from '../../../../lib';
4
+ import { getPowerLinkStr, lawyerCode } from '../../../../lib';
5
5
  import IconRightArrow from '../../../../asset/images/seo/successCase/right_arrow.svg';
6
6
  export const Lawyer = ({ lawyerData }) => {
7
7
  const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
@@ -50,7 +50,8 @@ export const Lawyer = ({ lawyerData }) => {
50
50
  <p className={'text-[14px] font-medium leading-none tracking-[-0.4px] text-[#818181]'} itemProp="jobTitle">
51
51
  {i.lawyer_position}
52
52
  </p>
53
- {lawyerCode.find(code => code === i.lawyer_code) ? (<Link href={'https://www.daeryunlaw.com/mail?lawyer=' + i.lawyer_name} target={'_blank'} rel={'nofollow'} className={'absolute right-0 top-0 z-[11] block h-fit w-fit max-xl:right-[0px]'} aria-label={i.lawyer_name + '변호사에게 메일보내기'}>
53
+ {lawyerCode.find(code => code === i.lawyer_code) ? (<Link href={`https://www.daeryunlaw.com/mail${getPowerLinkStr() != '' ? +getPowerLinkStr() + '&' : '?'}lawyer=` +
54
+ i.lawyer_name} target={'_blank'} rel={'nofollow'} className={'absolute right-0 top-0 z-[11] block h-fit w-fit max-xl:right-[0px]'} aria-label={i.lawyer_name + '변호사에게 메일보내기'}>
54
55
  <Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/email_icon.webp'} alt={'이메일'} width={64} height={64} className={'w-[32px] max-lg:w-[28px] max-xs:w-[25px]'}/>
55
56
  </Link>) : (<></>)}
56
57
  </span>
@@ -2,7 +2,7 @@ import Link from 'next/link';
2
2
  import Image from 'next/image';
3
3
  import React from 'react';
4
4
  import Mark from '../../../Mark/Mark';
5
- import { lawyerCode } from '../../../../lib';
5
+ import { getPowerLinkStr, lawyerCode } from '../../../../lib';
6
6
  import IconRightArrow from '../../../../asset/images/seo/successCase/right_arrow.svg';
7
7
 
8
8
  export const Lawyer = ({ lawyerData }: { lawyerData: any[] }) => {
@@ -109,7 +109,10 @@ export const Lawyer = ({ lawyerData }: { lawyerData: any[] }) => {
109
109
  </p>
110
110
  {lawyerCode.find(code => code === i.lawyer_code) ? (
111
111
  <Link
112
- href={'https://www.daeryunlaw.com/mail?lawyer=' + i.lawyer_name}
112
+ href={
113
+ `https://www.daeryunlaw.com/mail${getPowerLinkStr() != '' ? +getPowerLinkStr() + '&' : '?'}lawyer=` +
114
+ i.lawyer_name
115
+ }
113
116
  target={'_blank'}
114
117
  rel={'nofollow'}
115
118
  className={'absolute right-0 top-0 z-[11] block h-fit w-fit max-xl:right-[0px]'}
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import IconRibon from '../../../../asset/images/seo/seoAddLink/ribon.svg';
4
4
  import Image from 'next/image';
5
5
  import * as gtag from '../../../../lib/gtag';
6
+ import { getPowerLinkStr } from '../../../../lib';
6
7
  const SeoAdditionalLink = ({ type, linkList }) => {
7
8
  const referClick = () => {
8
9
  gtag.event({
@@ -60,7 +61,7 @@ const SeoAdditionalLink = ({ type, linkList }) => {
60
61
  {linkList
61
62
  .filter(l => l.title.length > 0)
62
63
  .map(linkData => (<li key={linkData.title + linkData.idx}>
63
- <Link href={linkData.link} className={'relative flex w-fit items-center gap-[8px] font-[600] '} onClick={() => {
64
+ <Link href={linkData.link + getPowerLinkStr()} className={'relative flex w-fit items-center gap-[8px] font-[600] '} onClick={() => {
64
65
  if (type === '더보기')
65
66
  referClick();
66
67
  else
@@ -4,6 +4,7 @@ import IconRibon from '../../../../asset/images/seo/seoAddLink/ribon.svg';
4
4
  import Image from 'next/image';
5
5
  import { IAddLinkTypes } from '../SuccessNewType';
6
6
  import * as gtag from '../../../../lib/gtag';
7
+ import { getPowerLinkStr } from '../../../../lib';
7
8
 
8
9
  const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLinkTypes[] }) => {
9
10
  const referClick = () => {
@@ -83,7 +84,7 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
83
84
  .map(linkData => (
84
85
  <li key={linkData.title + linkData.idx}>
85
86
  <Link
86
- href={linkData.link}
87
+ href={linkData.link + getPowerLinkStr()}
87
88
  className={'relative flex w-fit items-center gap-[8px] font-[600] '}
88
89
  onClick={() => {
89
90
  if (type === '더보기') referClick();
@@ -107,7 +108,9 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
107
108
  }
108
109
  >
109
110
  <span
110
- className={'bg-gradient-to-b from-[#ffffff00] from-50% to-[rgba(253,253,119,0.6)] to-50%'}
111
+ className={
112
+ 'bg-gradient-to-b from-[#ffffff00] from-50% to-[rgba(253,253,119,0.6)] to-50%'
113
+ }
111
114
  >
112
115
  {linkData.title}
113
116
  </span>
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import IconArrow from '../../../../asset/images/success_new/up_right.svg';
4
4
  import IconRightArrow from '../../../../asset/images/success_new/right_arrow.svg';
5
5
  import IconDot from '../../../../asset/images/success_new/dia_dot.svg';
6
+ import { getPowerLinkStr } from '../../../../lib';
6
7
  export const SuccessCase = ({ successData }) => {
7
8
  return (<div className={'relative h-auto w-full border-l-[1px] border-t-[1px] border-solid border-[#B9B9B9] pb-[45px] pl-[26px] pt-[30px] ' +
8
9
  'before:absolute before:left-0 before:top-0 before:block before:aspect-square before:w-[15px] before:bg-[#B9B9B9] before:content-[""] '}>
@@ -30,34 +31,38 @@ export const SuccessCase = ({ successData }) => {
30
31
  </span>
31
32
 
32
33
  <span className={'mt-[30px] flex flex-col gap-3 '}>
33
- {successData === null || successData === void 0 ? void 0 : successData.map(i => (<Link href={i.domain ? i.domain + `success_new/${i.type_idx}` : '/success_new/' + i.type_idx} key={'/success_new/' + i.type_idx} target={i.domain ? '_blank' : ''} className={'flex w-fit items-start gap-[10px] text-[20px] font-medium tracking-[-0.4px] hover:text-[#285FA7] ' +
34
- //1500px
35
- 'max-3xl:text-[18px] ' +
36
- //1280px
37
- 'max-xl:text-[20px] ' +
38
- //768px
39
- 'max-md:text-[18px]'}>
40
- <IconDot className={'mt-3 inline shrink-0 ' +
41
- //1500px
42
- 'max-3xl:mt-[9px]'}/>
43
- <div className={''}>
44
- {i.tag_title.includes('|')
45
- ? i.tag_title.split('|')[1]
46
- : i.tag_title.includes(']')
47
- ? i.tag_title.split(']')[1]
48
- : i.tag_title.includes('|')
49
- ? i.tag_title.split('|')[1]
50
- : i.tag_title}
34
+ {successData === null || successData === void 0 ? void 0 : successData.map(i => {
35
+ const link = i.domain ? i.domain + `success_new/${i.type_idx}` : '/success_new/' + i.type_idx;
36
+ const href = link.includes('daeryunlaw') ? link + getPowerLinkStr() : link;
37
+ return (<Link href={href} key={'/success_new/' + i.type_idx} target={i.domain ? '_blank' : ''} className={'flex w-fit items-start gap-[10px] text-[20px] font-medium tracking-[-0.4px] hover:text-[#285FA7] ' +
38
+ //1500px
39
+ 'max-3xl:text-[18px] ' +
40
+ //1280px
41
+ 'max-xl:text-[20px] ' +
42
+ //768px
43
+ 'max-md:text-[18px]'}>
44
+ <IconDot className={'mt-3 inline shrink-0 ' +
45
+ //1500px
46
+ 'max-3xl:mt-[9px]'}/>
47
+ <div className={''}>
48
+ {i.tag_title.includes('|')
49
+ ? i.tag_title.split('|')[1]
50
+ : i.tag_title.includes(']')
51
+ ? i.tag_title.split(']')[1]
52
+ : i.tag_title.includes('|')
53
+ ? i.tag_title.split('|')[1]
54
+ : i.tag_title}
51
55
 
52
- <IconArrow aria-label={'새창열림'} className={'mb-[5px] ml-2 inline h-[10px] w-[10px] ' +
53
- //1500px
54
- 'max-3xl:h-[9px] max-3xl:w-[9px] ' +
55
- //1280px
56
- 'max-xl:mb-[3px] max-xl:h-[10px] max-xl:w-[10px] ' +
57
- //1500px
58
- 'max-md:mb-[7px] max-md:h-[9px] max-md:w-[9px] '}/>
59
- </div>
60
- </Link>))}
56
+ <IconArrow aria-label={'새창열림'} className={'mb-[5px] ml-2 inline h-[10px] w-[10px] ' +
57
+ //1500px
58
+ 'max-3xl:h-[9px] max-3xl:w-[9px] ' +
59
+ //1280px
60
+ 'max-xl:mb-[3px] max-xl:h-[10px] max-xl:w-[10px] ' +
61
+ //1500px
62
+ 'max-md:mb-[7px] max-md:h-[9px] max-md:w-[9px] '}/>
63
+ </div>
64
+ </Link>);
65
+ })}
61
66
  </span>
62
67
  </div>);
63
68
  };
@@ -4,6 +4,7 @@ import IconArrow from '../../../../asset/images/success_new/up_right.svg';
4
4
  import IconRightArrow from '../../../../asset/images/success_new/right_arrow.svg';
5
5
  import IconDot from '../../../../asset/images/success_new/dia_dot.svg';
6
6
  import { ISuccessTypes } from '../SuccessNewType';
7
+ import { getPowerLinkStr } from '../../../../lib';
7
8
 
8
9
  export const SuccessCase = ({ successData }: { successData: ISuccessTypes[] }) => {
9
10
  return (
@@ -55,52 +56,57 @@ export const SuccessCase = ({ successData }: { successData: ISuccessTypes[] }) =
55
56
  </span>
56
57
 
57
58
  <span className={'mt-[30px] flex flex-col gap-3 '}>
58
- {successData?.map(i => (
59
- <Link
60
- href={i.domain ? i.domain + `success_new/${i.type_idx}` : '/success_new/' + i.type_idx}
61
- key={'/success_new/' + i.type_idx}
62
- target={i.domain ? '_blank' : ''}
63
- className={
64
- 'flex w-fit items-start gap-[10px] text-[20px] font-medium tracking-[-0.4px] hover:text-[#285FA7] ' +
65
- //1500px
66
- 'max-3xl:text-[18px] ' +
67
- //1280px
68
- 'max-xl:text-[20px] ' +
69
- //768px
70
- 'max-md:text-[18px]'
71
- }
72
- >
73
- <IconDot
59
+ {successData?.map(i => {
60
+ const link = i.domain ? i.domain + `success_new/${i.type_idx}` : '/success_new/' + i.type_idx;
61
+ const href = link.includes('daeryunlaw') ? link + getPowerLinkStr() : link;
62
+
63
+ return (
64
+ <Link
65
+ href={href}
66
+ key={'/success_new/' + i.type_idx}
67
+ target={i.domain ? '_blank' : ''}
74
68
  className={
75
- 'mt-3 inline shrink-0 ' +
69
+ 'flex w-fit items-start gap-[10px] text-[20px] font-medium tracking-[-0.4px] hover:text-[#285FA7] ' +
76
70
  //1500px
77
- 'max-3xl:mt-[9px]'
71
+ 'max-3xl:text-[18px] ' +
72
+ //1280px
73
+ 'max-xl:text-[20px] ' +
74
+ //768px
75
+ 'max-md:text-[18px]'
78
76
  }
79
- />
80
- <div className={''}>
81
- {i.tag_title.includes('|')
82
- ? i.tag_title.split('|')[1]
83
- : i.tag_title.includes(']')
84
- ? i.tag_title.split(']')[1]
85
- : i.tag_title.includes('|')
86
- ? i.tag_title.split('|')[1]
87
- : i.tag_title}
88
-
89
- <IconArrow
90
- aria-label={'새창열림'}
77
+ >
78
+ <IconDot
91
79
  className={
92
- 'mb-[5px] ml-2 inline h-[10px] w-[10px] ' +
80
+ 'mt-3 inline shrink-0 ' +
93
81
  //1500px
94
- 'max-3xl:h-[9px] max-3xl:w-[9px] ' +
95
- //1280px
96
- 'max-xl:mb-[3px] max-xl:h-[10px] max-xl:w-[10px] ' +
97
- //1500px
98
- 'max-md:mb-[7px] max-md:h-[9px] max-md:w-[9px] '
82
+ 'max-3xl:mt-[9px]'
99
83
  }
100
84
  />
101
- </div>
102
- </Link>
103
- ))}
85
+ <div className={''}>
86
+ {i.tag_title.includes('|')
87
+ ? i.tag_title.split('|')[1]
88
+ : i.tag_title.includes(']')
89
+ ? i.tag_title.split(']')[1]
90
+ : i.tag_title.includes('|')
91
+ ? i.tag_title.split('|')[1]
92
+ : i.tag_title}
93
+
94
+ <IconArrow
95
+ aria-label={'새창열림'}
96
+ className={
97
+ 'mb-[5px] ml-2 inline h-[10px] w-[10px] ' +
98
+ //1500px
99
+ 'max-3xl:h-[9px] max-3xl:w-[9px] ' +
100
+ //1280px
101
+ 'max-xl:mb-[3px] max-xl:h-[10px] max-xl:w-[10px] ' +
102
+ //1500px
103
+ 'max-md:mb-[7px] max-md:h-[9px] max-md:w-[9px] '
104
+ }
105
+ />
106
+ </div>
107
+ </Link>
108
+ );
109
+ })}
104
110
  </span>
105
111
  </div>
106
112
  );
@@ -1,2 +1,3 @@
1
1
  export declare const saveTelNumber: (is_mobile: boolean, naverTelFn: () => void, googleTelFn: () => void, youtubeTel: () => void, setResetTel: () => void) => void;
2
2
  export declare const savePowerLinkConversion: (type: string, isMobile: boolean) => void;
3
+ export declare const getPowerLinkStr: () => string;