@daeryun/dr_components 0.7.96 → 0.7.98

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 (43) hide show
  1. package/dist/asset/images/success_new/arrow.svg +13 -0
  2. package/dist/asset/images/success_new/arrow_full.webp +0 -0
  3. package/dist/asset/images/success_new/arrow_line.webp +0 -0
  4. package/dist/asset/images/success_new/dia_dot.svg +3 -0
  5. package/dist/asset/images/success_new/field_icon.webp +0 -0
  6. package/dist/asset/images/success_new/label.svg +10 -0
  7. package/dist/asset/images/success_new/left.webp +0 -0
  8. package/dist/asset/images/success_new/right.webp +0 -0
  9. package/dist/asset/images/success_new/right_arrow.svg +4 -0
  10. package/dist/asset/images/success_new/up_right.svg +3 -0
  11. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  12. package/dist/components/index.js +1 -0
  13. package/dist/components/index.ts +1 -0
  14. package/dist/components/page/SuccessNew/SuccessNew.d.ts +3 -0
  15. package/dist/components/page/SuccessNew/SuccessNew.jsx +234 -0
  16. package/dist/components/page/SuccessNew/SuccessNew.tsx +430 -0
  17. package/dist/components/page/SuccessNew/SuccessNewType.d.ts +143 -0
  18. package/dist/components/page/SuccessNew/SuccessNewType.js +1 -0
  19. package/dist/components/page/SuccessNew/SuccessNewType.ts +155 -0
  20. package/dist/components/page/SuccessNew/components/ContentList.d.ts +9 -0
  21. package/dist/components/page/SuccessNew/components/ContentList.jsx +45 -0
  22. package/dist/components/page/SuccessNew/components/ContentList.tsx +124 -0
  23. package/dist/components/page/SuccessNew/components/FieldCase.d.ts +5 -0
  24. package/dist/components/page/SuccessNew/components/FieldCase.jsx +59 -0
  25. package/dist/components/page/SuccessNew/components/FieldCase.tsx +101 -0
  26. package/dist/components/page/SuccessNew/components/H2Contents.d.ts +7 -0
  27. package/dist/components/page/SuccessNew/components/H2Contents.jsx +19 -0
  28. package/dist/components/page/SuccessNew/components/H2Contents.tsx +49 -0
  29. package/dist/components/page/SuccessNew/components/H3Contents.d.ts +6 -0
  30. package/dist/components/page/SuccessNew/components/H3Contents.jsx +24 -0
  31. package/dist/components/page/SuccessNew/components/H3Contents.tsx +58 -0
  32. package/dist/components/page/SuccessNew/components/LawInfoContentList.d.ts +8 -0
  33. package/dist/components/page/SuccessNew/components/LawInfoContentList.jsx +77 -0
  34. package/dist/components/page/SuccessNew/components/LawInfoContentList.tsx +122 -0
  35. package/dist/components/page/SuccessNew/components/SeoAdditionalLink.d.ts +7 -0
  36. package/dist/components/page/SuccessNew/components/SeoAdditionalLink.jsx +80 -0
  37. package/dist/components/page/SuccessNew/components/SeoAdditionalLink.tsx +125 -0
  38. package/dist/components/page/SuccessNew/components/SuccessCase.d.ts +5 -0
  39. package/dist/components/page/SuccessNew/components/SuccessCase.jsx +64 -0
  40. package/dist/components/page/SuccessNew/components/SuccessCase.tsx +105 -0
  41. package/dist/styles/globals.css +524 -0
  42. package/dist/tsconfig.tsbuildinfo +1 -1
  43. package/package.json +1 -1
@@ -0,0 +1,49 @@
1
+ import React from 'react';
2
+ import { ISeoTemplateTypes } from '../SuccessNewType';
3
+ import { htmlUrlDecode } from '../../../../lib';
4
+ const H2Contents = ({ h2Template, index }: { h2Template: ISeoTemplateTypes; index: number }) => {
5
+ const { active_faq } = h2Template;
6
+
7
+ return (
8
+ <div
9
+ itemScope={active_faq ? undefined : true}
10
+ itemProp={active_faq ? '' : 'mainEntity'}
11
+ itemType={active_faq ? '' : 'https://schema.org/Question'}
12
+ >
13
+ <h2
14
+ className={
15
+ 'flex h-fit w-full items-center break-keep rounded-[40px] bg-[#285FA7] py-[6.75px] pl-[40px] pr-[20px] -indent-[20px] text-[20px] font-bold leading-[28px] tracking-tight text-white sm:pl-[46px] sm:pr-[26px] sm:text-[26px] sm:leading-[34px] lg:pl-[53px] lg:pr-[33px] lg:text-[31.5px] lg:leading-[38px]'
16
+ }
17
+ id={h2Template.idx.toString()}
18
+ itemProp={active_faq ? '' : 'name'}
19
+ >
20
+ {index + 1}. {h2Template.tag_title}
21
+ </h2>
22
+ <div className={'px-[10px] sm:px-[18px]'}>
23
+ {/*h2 설명글*/}
24
+ <div
25
+ className={
26
+ 'lg::mt-[37.5px] mb-[44px] mt-[26px] whitespace-break-spaces text-[16px] tracking-[-0.69px] sm:mx-[20px] sm:mx-[33px] sm:mb-[50px] sm:mt-[32px] sm:text-[17.25px] lg:mb-[78px]'
27
+ }
28
+ itemScope={active_faq ? undefined : true}
29
+ itemProp={active_faq ? '' : 'acceptedAnswer'}
30
+ itemType={active_faq ? '' : 'https://schema.org/Answer'}
31
+ >
32
+ {h2Template.is_editor ? (
33
+ <div
34
+ itemProp={active_faq ? '' : 'text'}
35
+ id={'ck-content'}
36
+ dangerouslySetInnerHTML={{
37
+ __html: htmlUrlDecode(h2Template.description.replace('../../UploadFile', '/SE2/upload'))
38
+ }}
39
+ />
40
+ ) : (
41
+ <div itemProp={active_faq ? '' : 'text'}>{h2Template.description}</div>
42
+ )}
43
+ </div>
44
+ </div>
45
+ </div>
46
+ );
47
+ };
48
+
49
+ export default H2Contents;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { ISeoTemplateTypes } from '../SuccessNewType';
3
+ declare const H3Contents: ({ h3Template }: {
4
+ h3Template: ISeoTemplateTypes;
5
+ }) => React.JSX.Element;
6
+ export default H3Contents;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import Image from 'next/image';
3
+ import { htmlUrlDecode } from '../../../../lib';
4
+ import FieldIcon from '../../../../asset/images/success_new/field_icon.webp';
5
+ const H3Contents = ({ h3Template }) => {
6
+ const { active_faq } = h3Template;
7
+ return (<>
8
+ <div className={'px-[10px] sm:px-[18px]'} key={'h3영역' + h3Template.idx} itemScope={active_faq ? undefined : true} itemProp={active_faq ? '' : 'mainEntity'} itemType={active_faq ? '' : 'https://schema.org/Question'}>
9
+ {/*h3*/}
10
+ <h3 className={'mb-[16px] flex items-center break-keep text-[18px] font-bold tracking-[-0.96px] text-[#285FA7] sm:mb-[18px] sm:text-[22px] lg:mb-[22.5px] lg:text-[24px]'} id={h3Template.idx.toString()} itemProp={active_faq ? '' : 'name'}>
11
+ {/*모든 seo 체크로 변경*/}
12
+ <Image src={FieldIcon} alt={'h3 img'} width={27} height={26} className={'mr-[8px] h-auto max-sm:w-[22px]'}/>
13
+ {h3Template.tag_title}
14
+ </h3>
15
+ {/*h3 설명글*/}
16
+ <div itemScope={active_faq ? undefined : true} itemProp={active_faq ? '' : 'acceptedAnswer'} itemType={active_faq ? '' : 'https://schema.org/Answer'}>
17
+ <div className={'mb-[44px] whitespace-break-spaces text-[16px] tracking-[-0.69px] sm:mx-[20px] sm:mx-[33px] sm:mb-[50px] sm:text-[17.25px] lg:mb-[78px]'} itemProp={active_faq ? '' : 'text'} id={'ck-content'} dangerouslySetInnerHTML={{
18
+ __html: htmlUrlDecode(h3Template.description.replace('../../UploadFile', '/SE2/upload'))
19
+ }}></div>
20
+ </div>
21
+ </div>
22
+ </>);
23
+ };
24
+ export default H3Contents;
@@ -0,0 +1,58 @@
1
+ import React from 'react';
2
+ import Image from 'next/image';
3
+ import { ISeoTemplateTypes } from '../SuccessNewType';
4
+ import { htmlUrlDecode } from '../../../../lib';
5
+ import FieldIcon from '../../../../asset/images/success_new/field_icon.webp';
6
+ const H3Contents = ({ h3Template }: { h3Template: ISeoTemplateTypes }) => {
7
+ const { active_faq } = h3Template;
8
+
9
+ return (
10
+ <>
11
+ <div
12
+ className={'px-[10px] sm:px-[18px]'}
13
+ key={'h3영역' + h3Template.idx}
14
+ itemScope={active_faq ? undefined : true}
15
+ itemProp={active_faq ? '' : 'mainEntity'}
16
+ itemType={active_faq ? '' : 'https://schema.org/Question'}
17
+ >
18
+ {/*h3*/}
19
+ <h3
20
+ className={
21
+ 'mb-[16px] flex items-center break-keep text-[18px] font-bold tracking-[-0.96px] text-[#285FA7] sm:mb-[18px] sm:text-[22px] lg:mb-[22.5px] lg:text-[24px]'
22
+ }
23
+ id={h3Template.idx.toString()}
24
+ itemProp={active_faq ? '' : 'name'}
25
+ >
26
+ {/*모든 seo 체크로 변경*/}
27
+ <Image
28
+ src={FieldIcon}
29
+ alt={'h3 img'}
30
+ width={27}
31
+ height={26}
32
+ className={'mr-[8px] h-auto max-sm:w-[22px]'}
33
+ />
34
+ {h3Template.tag_title}
35
+ </h3>
36
+ {/*h3 설명글*/}
37
+ <div
38
+ itemScope={active_faq ? undefined : true}
39
+ itemProp={active_faq ? '' : 'acceptedAnswer'}
40
+ itemType={active_faq ? '' : 'https://schema.org/Answer'}
41
+ >
42
+ <div
43
+ className={
44
+ 'mb-[44px] whitespace-break-spaces text-[16px] tracking-[-0.69px] sm:mx-[20px] sm:mx-[33px] sm:mb-[50px] sm:text-[17.25px] lg:mb-[78px]'
45
+ }
46
+ itemProp={active_faq ? '' : 'text'}
47
+ id={'ck-content'}
48
+ dangerouslySetInnerHTML={{
49
+ __html: htmlUrlDecode(h3Template.description.replace('../../UploadFile', '/SE2/upload'))
50
+ }}
51
+ ></div>
52
+ </div>
53
+ </div>
54
+ </>
55
+ );
56
+ };
57
+
58
+ export default H3Contents;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { IContentsListTypes, ISeoTemplateTypes } from '../SuccessNewType';
3
+ declare const LawInfoContentList: ({ contentsList, template, className }: {
4
+ contentsList: IContentsListTypes[] | null;
5
+ template: ISeoTemplateTypes[];
6
+ className?: string;
7
+ }) => React.JSX.Element;
8
+ export default LawInfoContentList;
@@ -0,0 +1,77 @@
1
+ import Link from 'next/link';
2
+ import React, { useState } from 'react';
3
+ import IconLabel from '../../../../asset/images/success_new/label.svg';
4
+ import IconArrow from '../../../../asset/images/success_new/arrow.svg';
5
+ const LawInfoContentList = ({ contentsList, template, className }) => {
6
+ const [hoverNum, setHoverNum] = useState(0);
7
+ return (<section className={'w-full ' + className}>
8
+ <div className={'mb-[45px] text-[28px] font-[900] tracking-[5.6px] text-[#0F295F] ' +
9
+ //1024px
10
+ 'max-lg:text-[26px] ' +
11
+ //768px
12
+ 'max-md:mb-[35px] max-md:text-[24px] ' +
13
+ //520px
14
+ 'max-2sm:text-[22px] ' +
15
+ //400px
16
+ 'max-2xs:text-[20px] '}>
17
+ CONTENTS
18
+ </div>
19
+ <ul className={'flex flex-col gap-[10px]'}>
20
+ {contentsList &&
21
+ contentsList.map((content, index) => (<li key={'contents ' + content.type_idx}>
22
+ <Link target={content.center_code === template[0].center_code ? '' : '_blank'} href={content.center_code === template[0].center_code
23
+ ? `/lawInfo_new/${content.type_idx}`
24
+ : `${content.domain}lawInfo_new/${content.type_idx}`} onMouseEnter={() => setHoverNum(index)} className={'flex w-full items-center justify-between gap-[25px] rounded-[10px] bg-[#0F295F] px-[30px] py-[25px] transition-[background] ' +
25
+ `${index === hoverNum ? '' : 'bg-opacity-[0.04] '}` +
26
+ //1024px
27
+ 'max-lg:gap-[20px] ' +
28
+ //768px
29
+ 'max-md:rounded-[6px] max-md:px-[25px] max-md:py-[20px] ' +
30
+ //520px
31
+ 'max-2sm:gap-[10px] max-2sm:rounded-[4px] max-2sm:px-[20px] max-2sm:py-[18px] ' +
32
+ //400px
33
+ 'max-2xs:gap-[6px] max-2xs:py-[16px] '}>
34
+ <span className={'flex gap-[25px] ' +
35
+ //1024px
36
+ 'max-lg:gap-[20px] ' +
37
+ //520px
38
+ 'max-2sm:gap-[10px] '}>
39
+ <IconLabel className={'h-auto w-[20px] shrink-0 transition-[fill] ' +
40
+ `${index === hoverNum ? 'fill-white ' : 'fill-[#0F295F] '}` +
41
+ //1400px
42
+ 'max-xxl:w-[17px] ' +
43
+ //768px
44
+ 'max-md:w-[15px] ' +
45
+ //520px
46
+ 'max-2sm:w-[13px] ' +
47
+ //400px
48
+ 'max-2xs:w-[11px] '}/>
49
+ <p className={'line-clamp-1 text-[24px] font-[700] tracking-[-0.96px] transition-colors ' +
50
+ `${index === hoverNum ? 'text-white ' : 'text-[#0F295F] '}` +
51
+ //1400px
52
+ 'max-xxl:text-[22px] ' +
53
+ //1024px
54
+ 'max-lg:text-[20px] ' +
55
+ //520px
56
+ 'max-2sm:line-clamp-2 max-2sm:text-[18px] ' +
57
+ //400px
58
+ 'max-2xs:text-[16px] '}>
59
+ {content.tag_title}
60
+ </p>
61
+ </span>
62
+ <IconArrow className={'h-auto w-[21px] shrink-0 ' +
63
+ `${index === hoverNum ? 'fill-white ' : 'fill-[#0F295F] '}` +
64
+ //1400px
65
+ 'max-xxl:w-[18px] ' +
66
+ //768px
67
+ 'max-md:w-[17px] ' +
68
+ //520px
69
+ 'max-2sm:w-[14px] ' +
70
+ //400px
71
+ 'max-2xs:w-[12px] '}/>
72
+ </Link>
73
+ </li>))}
74
+ </ul>
75
+ </section>);
76
+ };
77
+ export default LawInfoContentList;
@@ -0,0 +1,122 @@
1
+ import Link from 'next/link';
2
+ import React, { useState } from 'react';
3
+ import IconLabel from '../../../../asset/images/success_new/label.svg';
4
+ import IconArrow from '../../../../asset/images/success_new/arrow.svg';
5
+ import { IContentsListTypes, ISeoTemplateTypes } from '../SuccessNewType';
6
+
7
+ const LawInfoContentList = ({
8
+ contentsList,
9
+ template,
10
+ className
11
+ }: {
12
+ contentsList: IContentsListTypes[] | null;
13
+ template: ISeoTemplateTypes[];
14
+ className?: string;
15
+ }) => {
16
+ const [hoverNum, setHoverNum] = useState<number>(0);
17
+
18
+ return (
19
+ <section className={'w-full ' + className}>
20
+ <div
21
+ className={
22
+ 'mb-[45px] text-[28px] font-[900] tracking-[5.6px] text-[#0F295F] ' +
23
+ //1024px
24
+ 'max-lg:text-[26px] ' +
25
+ //768px
26
+ 'max-md:mb-[35px] max-md:text-[24px] ' +
27
+ //520px
28
+ 'max-2sm:text-[22px] ' +
29
+ //400px
30
+ 'max-2xs:text-[20px] '
31
+ }
32
+ >
33
+ CONTENTS
34
+ </div>
35
+ <ul className={'flex flex-col gap-[10px]'}>
36
+ {contentsList &&
37
+ contentsList.map((content, index) => (
38
+ <li key={'contents ' + content.type_idx}>
39
+ <Link
40
+ target={content.center_code === template[0].center_code ? '' : '_blank'}
41
+ href={
42
+ content.center_code === template[0].center_code
43
+ ? `/lawInfo_new/${content.type_idx}`
44
+ : `${content.domain}lawInfo_new/${content.type_idx}`
45
+ }
46
+ onMouseEnter={() => setHoverNum(index)}
47
+ className={
48
+ 'flex w-full items-center justify-between gap-[25px] rounded-[10px] bg-[#0F295F] px-[30px] py-[25px] transition-[background] ' +
49
+ `${index === hoverNum ? '' : 'bg-opacity-[0.04] '}` +
50
+ //1024px
51
+ 'max-lg:gap-[20px] ' +
52
+ //768px
53
+ 'max-md:rounded-[6px] max-md:px-[25px] max-md:py-[20px] ' +
54
+ //520px
55
+ 'max-2sm:gap-[10px] max-2sm:rounded-[4px] max-2sm:px-[20px] max-2sm:py-[18px] ' +
56
+ //400px
57
+ 'max-2xs:gap-[6px] max-2xs:py-[16px] '
58
+ }
59
+ >
60
+ <span
61
+ className={
62
+ 'flex gap-[25px] ' +
63
+ //1024px
64
+ 'max-lg:gap-[20px] ' +
65
+ //520px
66
+ 'max-2sm:gap-[10px] '
67
+ }
68
+ >
69
+ <IconLabel
70
+ className={
71
+ 'h-auto w-[20px] shrink-0 transition-[fill] ' +
72
+ `${index === hoverNum ? 'fill-white ' : 'fill-[#0F295F] '}` +
73
+ //1400px
74
+ 'max-xxl:w-[17px] ' +
75
+ //768px
76
+ 'max-md:w-[15px] ' +
77
+ //520px
78
+ 'max-2sm:w-[13px] ' +
79
+ //400px
80
+ 'max-2xs:w-[11px] '
81
+ }
82
+ />
83
+ <p
84
+ className={
85
+ 'line-clamp-1 text-[24px] font-[700] tracking-[-0.96px] transition-colors ' +
86
+ `${index === hoverNum ? 'text-white ' : 'text-[#0F295F] '}` +
87
+ //1400px
88
+ 'max-xxl:text-[22px] ' +
89
+ //1024px
90
+ 'max-lg:text-[20px] ' +
91
+ //520px
92
+ 'max-2sm:line-clamp-2 max-2sm:text-[18px] ' +
93
+ //400px
94
+ 'max-2xs:text-[16px] '
95
+ }
96
+ >
97
+ {content.tag_title}
98
+ </p>
99
+ </span>
100
+ <IconArrow
101
+ className={
102
+ 'h-auto w-[21px] shrink-0 ' +
103
+ `${index === hoverNum ? 'fill-white ' : 'fill-[#0F295F] '}` +
104
+ //1400px
105
+ 'max-xxl:w-[18px] ' +
106
+ //768px
107
+ 'max-md:w-[17px] ' +
108
+ //520px
109
+ 'max-2sm:w-[14px] ' +
110
+ //400px
111
+ 'max-2xs:w-[12px] '
112
+ }
113
+ />
114
+ </Link>
115
+ </li>
116
+ ))}
117
+ </ul>
118
+ </section>
119
+ );
120
+ };
121
+
122
+ export default LawInfoContentList;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { IAddLinkTypes } from '../SuccessNewType';
3
+ declare const SeoAdditionalLink: ({ type, linkList }: {
4
+ type: string;
5
+ linkList: IAddLinkTypes[];
6
+ }) => React.JSX.Element;
7
+ export default SeoAdditionalLink;
@@ -0,0 +1,80 @@
1
+ import Link from 'next/link';
2
+ import React from 'react';
3
+ import IconRibon from '../../../../asset/images/seo/seoAddLink/ribon.svg';
4
+ import Image from 'next/image';
5
+ import * as gtag from '../../../../lib/gtag';
6
+ const SeoAdditionalLink = ({ type, linkList }) => {
7
+ const referClick = () => {
8
+ gtag.event({
9
+ action: 'contents_refer',
10
+ category: 'contents',
11
+ label: '컨텐츠 내 참고 컨텐츠 클릭',
12
+ value: '1'
13
+ });
14
+ };
15
+ const newsClick = () => {
16
+ gtag.event({
17
+ action: 'contents_news',
18
+ category: 'contents',
19
+ label: '컨텐츠 내 관련 기사 클릭',
20
+ value: '1'
21
+ });
22
+ };
23
+ return (<>
24
+ <div className={'flex items-center gap-[14px] border-[1px] border-solid border-[#D0D0D0] pr-[30px] ' +
25
+ //640px
26
+ 'max-sm:gap-[14px] ' +
27
+ //520px
28
+ 'max-2sm:gap-[10px] '}>
29
+ <span className={'relative flex h-[47px] w-[130px] shrink-0 items-center ' +
30
+ //1500px
31
+ 'max-3xl:h-[42px] max-3xl:w-[120px] ' +
32
+ //640px
33
+ 'max-sm:h-[38px] max-sm:w-[110px] ' +
34
+ //520px
35
+ 'max-2sm:h-[33px] max-2sm:w-[100px] '}>
36
+ <IconRibon className="absolute left-0 top-0 -z-10 h-full w-auto "/>
37
+ <p className={'pl-[15px] text-[24px] font-bold leading-none tracking-[-0.96px] text-white ' +
38
+ //1500px
39
+ 'max-3xl:text-[22px] ' +
40
+ //640px
41
+ 'max-sm:text-[18px] ' +
42
+ //520px
43
+ 'max-2sm:pl-[10px] max-2sm:text-[16px] '}>
44
+ {type}
45
+ </p>
46
+ </span>
47
+ <ul className={'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] text-[#0D74CE] ' +
48
+ //1500px
49
+ 'max-3xl:text-[18px] ' +
50
+ //640px
51
+ 'max-sm:gap-[12px] max-sm:py-[20px] max-sm:text-[16px] '}>
52
+ {linkList
53
+ .filter(l => l.title.length > 0)
54
+ .map(linkData => (<li key={linkData.title + linkData.idx}>
55
+ <Link href={linkData.link} className={'relative flex w-fit items-center gap-[16px] font-[600] ' +
56
+ //640px
57
+ 'max-sm:gap-[8px] '} onClick={() => {
58
+ if (type === '참고')
59
+ referClick();
60
+ else
61
+ newsClick();
62
+ }}>
63
+ <Image src={'/images/sub_page/link_arrow.webp'} alt={''} width={8} height={14} className={'relative h-[14px] w-[8px] object-contain ' +
64
+ //640px
65
+ 'max-sm:w-[6px] '}/>
66
+ <p className={'line-clamp-1 leading-[1.25] max-md:line-clamp-none'}>
67
+ {linkData.title}
68
+ <Image src={'/images/sub_page/link_on.webp'} alt={''} width={16} height={16} className={'ml-[6px] inline aspect-square w-[16px] ' +
69
+ //1500px
70
+ 'max-3xl:w-[14px] ' +
71
+ //640px
72
+ 'max-sm:w-[12px] '}/>
73
+ </p>
74
+ </Link>
75
+ </li>))}
76
+ </ul>
77
+ </div>
78
+ </>);
79
+ };
80
+ export default SeoAdditionalLink;
@@ -0,0 +1,125 @@
1
+ import Link from 'next/link';
2
+ import React from 'react';
3
+ import IconRibon from '../../../../asset/images/seo/seoAddLink/ribon.svg';
4
+ import Image from 'next/image';
5
+ import { IAddLinkTypes } from '../SuccessNewType';
6
+ import * as gtag from '../../../../lib/gtag';
7
+
8
+ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLinkTypes[] }) => {
9
+ const referClick = () => {
10
+ gtag.event({
11
+ action: 'contents_refer',
12
+ category: 'contents',
13
+ label: '컨텐츠 내 참고 컨텐츠 클릭',
14
+ value: '1'
15
+ });
16
+ };
17
+
18
+ const newsClick = () => {
19
+ gtag.event({
20
+ action: 'contents_news',
21
+ category: 'contents',
22
+ label: '컨텐츠 내 관련 기사 클릭',
23
+ value: '1'
24
+ });
25
+ };
26
+
27
+ return (
28
+ <>
29
+ <div
30
+ className={
31
+ 'flex items-center gap-[14px] border-[1px] border-solid border-[#D0D0D0] pr-[30px] ' +
32
+ //640px
33
+ 'max-sm:gap-[14px] ' +
34
+ //520px
35
+ 'max-2sm:gap-[10px] '
36
+ }
37
+ >
38
+ <span
39
+ className={
40
+ 'relative flex h-[47px] w-[130px] shrink-0 items-center ' +
41
+ //1500px
42
+ 'max-3xl:h-[42px] max-3xl:w-[120px] ' +
43
+ //640px
44
+ 'max-sm:h-[38px] max-sm:w-[110px] ' +
45
+ //520px
46
+ 'max-2sm:h-[33px] max-2sm:w-[100px] '
47
+ }
48
+ >
49
+ <IconRibon className="absolute left-0 top-0 -z-10 h-full w-auto " />
50
+ <p
51
+ className={
52
+ 'pl-[15px] text-[24px] font-bold leading-none tracking-[-0.96px] text-white ' +
53
+ //1500px
54
+ 'max-3xl:text-[22px] ' +
55
+ //640px
56
+ 'max-sm:text-[18px] ' +
57
+ //520px
58
+ 'max-2sm:pl-[10px] max-2sm:text-[16px] '
59
+ }
60
+ >
61
+ {type}
62
+ </p>
63
+ </span>
64
+ <ul
65
+ className={
66
+ 'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] text-[#0D74CE] ' +
67
+ //1500px
68
+ 'max-3xl:text-[18px] ' +
69
+ //640px
70
+ 'max-sm:gap-[12px] max-sm:py-[20px] max-sm:text-[16px] '
71
+ }
72
+ >
73
+ {linkList
74
+ .filter(l => l.title.length > 0)
75
+ .map(linkData => (
76
+ <li key={linkData.title + linkData.idx}>
77
+ <Link
78
+ href={linkData.link}
79
+ className={
80
+ 'relative flex w-fit items-center gap-[16px] font-[600] ' +
81
+ //640px
82
+ 'max-sm:gap-[8px] '
83
+ }
84
+ onClick={() => {
85
+ if (type === '참고') referClick();
86
+ else newsClick();
87
+ }}
88
+ >
89
+ <Image
90
+ src={'/images/sub_page/link_arrow.webp'}
91
+ alt={''}
92
+ width={8}
93
+ height={14}
94
+ className={
95
+ 'relative h-[14px] w-[8px] object-contain ' +
96
+ //640px
97
+ 'max-sm:w-[6px] '
98
+ }
99
+ />
100
+ <p className={'line-clamp-1 leading-[1.25] max-md:line-clamp-none'}>
101
+ {linkData.title}
102
+ <Image
103
+ src={'/images/sub_page/link_on.webp'}
104
+ alt={''}
105
+ width={16}
106
+ height={16}
107
+ className={
108
+ 'ml-[6px] inline aspect-square w-[16px] ' +
109
+ //1500px
110
+ 'max-3xl:w-[14px] ' +
111
+ //640px
112
+ 'max-sm:w-[12px] '
113
+ }
114
+ />
115
+ </p>
116
+ </Link>
117
+ </li>
118
+ ))}
119
+ </ul>
120
+ </div>
121
+ </>
122
+ );
123
+ };
124
+
125
+ export default SeoAdditionalLink;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ISuccessTypes } from '../SuccessNewType';
3
+ export declare const SuccessCase: ({ successData }: {
4
+ successData: ISuccessTypes[];
5
+ }) => React.JSX.Element;
@@ -0,0 +1,64 @@
1
+ import Link from 'next/link';
2
+ import React from 'react';
3
+ import IconArrow from '../../../../asset/images/success_new/up_right.svg';
4
+ import IconRightArrow from '../../../../asset/images/success_new/right_arrow.svg';
5
+ import IconDot from '../../../../asset/images/success_new/dia_dot.svg';
6
+ export const SuccessCase = ({ successData }) => {
7
+ 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
+ 'before:absolute before:left-0 before:top-0 before:block before:aspect-square before:w-[15px] before:bg-[#B9B9B9] before:content-[""] '}>
9
+ <span className={'flex h-fit w-full items-center justify-between'}>
10
+ <p className={'text-[26px] font-[800] tracking-[-0.5px] text-[#80377A] ' +
11
+ //1500px
12
+ 'max-3xl:text-[24px] ' +
13
+ //1280px
14
+ 'max-xl:text-[26px]'}>
15
+ 주요 업무사례
16
+ </p>
17
+ <Link href={'/success'} className={'flex h-[35px] w-[100px] items-center justify-center gap-[4px] bg-[#5D5D5D] ' +
18
+ 'hover:bg-[#722D6D] ' +
19
+ //1500px
20
+ 'max-3xl:h-[30px] max-3xl:w-[90px] '} title={'업무사례 더보기'}>
21
+ <p className={'w-fit text-[18px] font-[600] leading-none text-white ' +
22
+ //1500px
23
+ 'max-3xl:text-[16px] '}>
24
+ 더보기
25
+ </p>
26
+ <IconRightArrow className={'h-auto w-[14px] ' +
27
+ //1500px
28
+ 'max-3xl:w-[12px] '}/>
29
+ </Link>
30
+ </span>
31
+
32
+ <span className={'mt-[30px] flex flex-col gap-3 '}>
33
+ {successData === null || successData === void 0 ? void 0 : successData.map(i => {
34
+ var _a;
35
+ return (<Link href={((_a = i.domain) !== null && _a !== void 0 ? _a : '') + '/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] ' +
36
+ //1500px
37
+ 'max-3xl:text-[18px] ' +
38
+ //1280px
39
+ 'max-xl:text-[20px] ' +
40
+ //768px
41
+ 'max-md:text-[18px]'}>
42
+ <IconDot className={'mt-3 inline shrink-0 ' +
43
+ //1500px
44
+ 'max-3xl:mt-[9px]'}/>
45
+ <div className={''}>
46
+ {i.tag_title.includes('|')
47
+ ? i.tag_title.split('|')[1]
48
+ : i.tag_title.includes(']')
49
+ ? i.tag_title.split(']')[1]
50
+ : ''}
51
+
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>);
61
+ })}
62
+ </span>
63
+ </div>);
64
+ };