@daeryun/dr_components 0.8.74 → 0.8.76
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/success_new/arrow_line.svg +3 -0
- package/dist/components/BrochureBtn/BrochureBtn.jsx +4 -0
- package/dist/components/BrochureBtn/BrochureBtn.stories.jsx +1 -1
- package/dist/components/BrochureBtn/BrochureBtn.stories.tsx +1 -1
- package/dist/components/BrochureBtn/BrochureBtn.tsx +4 -0
- package/dist/components/page/SuccessNew/components/LawInfoContentList.jsx +35 -54
- package/dist/components/page/SuccessNew/components/LawInfoContentList.tsx +44 -64
- package/dist/styles/globals.css +83 -105
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="100%" height="100%" viewBox="0 0 10 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M2.01407 0.206385L9.78707 8.18038C9.92359 8.32045 10 8.5083 10 8.70389C10 8.89947 9.92359 9.08732 9.78707 9.22738L2.01407 17.2044C1.95048 17.2697 1.87444 17.3216 1.79046 17.3571C1.70647 17.3925 1.61623 17.4108 1.52507 17.4108C1.43391 17.4108 1.34368 17.3925 1.25969 17.3571C1.1757 17.3216 1.09967 17.2697 1.03607 17.2044C0.90523 17.0704 0.831976 16.8906 0.831976 16.7034C0.831976 16.5161 0.90523 16.3363 1.03607 16.2024L8.34557 8.70389L1.03607 1.20688C0.905678 1.07301 0.832708 0.893517 0.832708 0.706635C0.832708 0.519753 0.905678 0.340257 1.03607 0.206385C1.09967 0.14107 1.1757 0.0891567 1.25969 0.0537096C1.34368 0.0182625 1.43391 0 1.52507 0C1.61623 0 1.70647 0.0182625 1.79046 0.0537096C1.87444 0.0891567 1.95048 0.14107 2.01407 0.206385Z" fill="current"/>
|
|
3
|
+
</svg>
|
|
@@ -21,6 +21,10 @@ const BrochureBtn = (props) => {
|
|
|
21
21
|
guard: {
|
|
22
22
|
text: '경호센터 브로슈어',
|
|
23
23
|
link: 'https://d1tgonli21s4df.cloudfront.net/guard/daeryunBrochure_guard.pdf'
|
|
24
|
+
},
|
|
25
|
+
forensic: {
|
|
26
|
+
text: '디지털포렌식센터 브로슈어',
|
|
27
|
+
link: 'https://d1tgonli21s4df.cloudfront.net/forensic/daeryunBrochure_forensic.pdf'
|
|
24
28
|
}
|
|
25
29
|
};
|
|
26
30
|
const brochure = brochureMap[type];
|
|
@@ -28,6 +28,10 @@ const BrochureBtn = (props: {
|
|
|
28
28
|
guard: {
|
|
29
29
|
text: '경호센터 브로슈어',
|
|
30
30
|
link: 'https://d1tgonli21s4df.cloudfront.net/guard/daeryunBrochure_guard.pdf'
|
|
31
|
+
},
|
|
32
|
+
forensic: {
|
|
33
|
+
text: '디지털포렌식센터 브로슈어',
|
|
34
|
+
link: 'https://d1tgonli21s4df.cloudfront.net/forensic/daeryunBrochure_forensic.pdf'
|
|
31
35
|
}
|
|
32
36
|
};
|
|
33
37
|
|
|
@@ -1,74 +1,55 @@
|
|
|
1
1
|
import Link from 'next/link';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import
|
|
4
|
-
import IconArrow from '../../../../asset/images/success_new/arrow.svg';
|
|
3
|
+
import IconArrow from '../../../../asset/images/success_new/arrow_line.svg';
|
|
5
4
|
const LawInfoContentList = ({ contentsList, template, className }) => {
|
|
6
5
|
const [hoverNum, setHoverNum] = useState(0);
|
|
7
|
-
return (<section className={'w-full ' +
|
|
8
|
-
|
|
6
|
+
return (<section className={'w-full bg-[#F6F6F6] p-[54px] ' +
|
|
7
|
+
'max-lg:p-[48px] max-md2:p-[40px] max-sm:p-[32px] ' +
|
|
8
|
+
'max-2xs:px-5 ' +
|
|
9
|
+
className} style={{ fontFamily: "'Noto Sans KR', sans-serif" }}>
|
|
10
|
+
<div className={'mb-[29px] text-[34px] font-[800] leading-none tracking-[-4%] text-[#192555] ' +
|
|
9
11
|
//1024px
|
|
10
|
-
'max-lg:text-[
|
|
12
|
+
'max-lg:text-[28px] ' +
|
|
13
|
+
//900px
|
|
14
|
+
'max-md2:mb-[24px] max-md2:text-[26px] ' +
|
|
11
15
|
//768px
|
|
12
|
-
'max-md:
|
|
13
|
-
//
|
|
14
|
-
'max-
|
|
15
|
-
//
|
|
16
|
-
'max-
|
|
17
|
-
|
|
16
|
+
'max-md:text-[24px] ' +
|
|
17
|
+
//640px
|
|
18
|
+
'max-sm:text-[22px] ' +
|
|
19
|
+
//480px
|
|
20
|
+
'max-xs:mb-[16px]'}>
|
|
21
|
+
관련 정보
|
|
18
22
|
</div>
|
|
19
|
-
<ul className={'
|
|
23
|
+
<ul className={'grid grid-cols-3 gap-[20px] ' + 'max-md:grid-cols-2 ' + 'max-xs:grid-cols-1 max-xs:gap-3'}>
|
|
20
24
|
{contentsList &&
|
|
21
25
|
contentsList.map((content, index) => (<li key={'contents ' + content.type_idx}>
|
|
22
26
|
<Link target={content.center_code === template[0].center_code ? '' : '_blank'} href={content.center_code === template[0].center_code
|
|
23
27
|
? `/lawInfo_new/${content.type_idx}`
|
|
24
|
-
: `${content.domain}lawInfo_new/${content.type_idx}`} onMouseEnter={() => setHoverNum(index)} className={'flex w-full items-
|
|
25
|
-
`${index === hoverNum ? '' : 'bg-opacity-
|
|
28
|
+
: `${content.domain}lawInfo_new/${content.type_idx}`} onMouseEnter={() => setHoverNum(index)} className={'flex h-full w-full items-start justify-between gap-[10px] bg-[#192555] p-4 transition-all ' +
|
|
29
|
+
`${index === hoverNum ? ' ' : 'bg-opacity-0 '} ` +
|
|
26
30
|
//1024px
|
|
27
|
-
'max-lg:gap-[
|
|
31
|
+
'max-lg:gap-[8px] ' +
|
|
28
32
|
//768px
|
|
29
|
-
'max-md:
|
|
30
|
-
//520px
|
|
31
|
-
'max-2sm:gap-[10px] max-2sm:rounded-[4px] max-2sm:px-[20px] max-2sm:py-[18px] ' +
|
|
33
|
+
'max-md:p-3 ' +
|
|
32
34
|
//400px
|
|
33
|
-
'max-2xs:gap-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
'
|
|
39
|
-
<IconLabel className={'h-auto w-[20px] shrink-0 transition-[fill] ' +
|
|
40
|
-
`${index === hoverNum ? 'fill-white ' : 'fill-[#0F295F] '}` +
|
|
35
|
+
'max-2xs:gap-2'} style={{
|
|
36
|
+
border: '1px solid',
|
|
37
|
+
borderColor: index === hoverNum ? 'transparent' : '#D3D3D3'
|
|
38
|
+
}}>
|
|
39
|
+
<p className={'line-clamp-2 text-[20px] font-[600] leading-[135%] tracking-[-4%] transition-colors ' +
|
|
40
|
+
`${index === hoverNum ? 'text-white ' : 'text-[#192555] '}` +
|
|
41
41
|
//1400px
|
|
42
|
-
'max-xxl:
|
|
42
|
+
'max-xxl:text-[18px] ' +
|
|
43
43
|
//768px
|
|
44
|
-
'max-md:
|
|
45
|
-
//
|
|
46
|
-
'max-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
`${index === hoverNum ? '
|
|
44
|
+
'max-md:text-[16px] ' +
|
|
45
|
+
//480px
|
|
46
|
+
'max-xs:leading-[25px]'}>
|
|
47
|
+
{content.tag_title}
|
|
48
|
+
</p>
|
|
49
|
+
<IconArrow className={'mx-[6px] mt-2 h-auto w-[10px] shrink-0 ' +
|
|
50
|
+
`${index === hoverNum ? 'fill-white ' : 'fill-[#192555] '}` +
|
|
51
51
|
//1400px
|
|
52
|
-
'max-xxl:
|
|
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] '}/>
|
|
52
|
+
'max-xxl:mt-[4px] max-xxl:w-2 '}/>
|
|
72
53
|
</Link>
|
|
73
54
|
</li>))}
|
|
74
55
|
</ul>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Link from 'next/link';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import IconLabel from '../../../../asset/images/success_new/label.svg';
|
|
4
|
-
import IconArrow from '../../../../asset/images/success_new/
|
|
4
|
+
import IconArrow from '../../../../asset/images/success_new/arrow_line.svg';
|
|
5
5
|
import { IContentsListTypes, ISeoTemplateTypes } from '../SuccessNewType';
|
|
6
6
|
|
|
7
7
|
const LawInfoContentList = ({
|
|
@@ -16,23 +16,33 @@ const LawInfoContentList = ({
|
|
|
16
16
|
const [hoverNum, setHoverNum] = useState<number>(0);
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
|
-
<section
|
|
19
|
+
<section
|
|
20
|
+
className={
|
|
21
|
+
'w-full bg-[#F6F6F6] p-[54px] ' +
|
|
22
|
+
'max-lg:p-[48px] max-md2:p-[40px] max-sm:p-[32px] ' +
|
|
23
|
+
'max-2xs:px-5 ' +
|
|
24
|
+
className
|
|
25
|
+
}
|
|
26
|
+
style={{ fontFamily: "'Noto Sans KR', sans-serif" }}
|
|
27
|
+
>
|
|
20
28
|
<div
|
|
21
29
|
className={
|
|
22
|
-
'mb-[
|
|
30
|
+
'mb-[29px] text-[34px] font-[800] leading-none tracking-[-4%] text-[#192555] ' +
|
|
23
31
|
//1024px
|
|
24
|
-
'max-lg:text-[
|
|
32
|
+
'max-lg:text-[28px] ' +
|
|
33
|
+
//900px
|
|
34
|
+
'max-md2:mb-[24px] max-md2:text-[26px] ' +
|
|
25
35
|
//768px
|
|
26
|
-
'max-md:
|
|
27
|
-
//
|
|
28
|
-
'max-
|
|
29
|
-
//
|
|
30
|
-
'max-
|
|
36
|
+
'max-md:text-[24px] ' +
|
|
37
|
+
//640px
|
|
38
|
+
'max-sm:text-[22px] ' +
|
|
39
|
+
//480px
|
|
40
|
+
'max-xs:mb-[16px]'
|
|
31
41
|
}
|
|
32
42
|
>
|
|
33
|
-
|
|
43
|
+
관련 정보
|
|
34
44
|
</div>
|
|
35
|
-
<ul className={'
|
|
45
|
+
<ul className={'grid grid-cols-3 gap-[20px] ' + 'max-md:grid-cols-2 ' + 'max-xs:grid-cols-1 max-xs:gap-3'}>
|
|
36
46
|
{contentsList &&
|
|
37
47
|
contentsList.map((content, index) => (
|
|
38
48
|
<li key={'contents ' + content.type_idx}>
|
|
@@ -45,70 +55,40 @@ const LawInfoContentList = ({
|
|
|
45
55
|
}
|
|
46
56
|
onMouseEnter={() => setHoverNum(index)}
|
|
47
57
|
className={
|
|
48
|
-
'flex w-full items-
|
|
49
|
-
`${index === hoverNum ? '' : 'bg-opacity-
|
|
58
|
+
'flex h-full w-full items-start justify-between gap-[10px] bg-[#192555] p-4 transition-all ' +
|
|
59
|
+
`${index === hoverNum ? ' ' : 'bg-opacity-0 '} ` +
|
|
50
60
|
//1024px
|
|
51
|
-
'max-lg:gap-[
|
|
61
|
+
'max-lg:gap-[8px] ' +
|
|
52
62
|
//768px
|
|
53
|
-
'max-md:
|
|
54
|
-
//520px
|
|
55
|
-
'max-2sm:gap-[10px] max-2sm:rounded-[4px] max-2sm:px-[20px] max-2sm:py-[18px] ' +
|
|
63
|
+
'max-md:p-3 ' +
|
|
56
64
|
//400px
|
|
57
|
-
'max-2xs:gap-
|
|
65
|
+
'max-2xs:gap-2'
|
|
58
66
|
}
|
|
67
|
+
style={{
|
|
68
|
+
border: '1px solid',
|
|
69
|
+
borderColor: index === hoverNum ? 'transparent' : '#D3D3D3'
|
|
70
|
+
}}
|
|
59
71
|
>
|
|
60
|
-
<
|
|
72
|
+
<p
|
|
61
73
|
className={
|
|
62
|
-
'
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
74
|
+
'line-clamp-2 text-[20px] font-[600] leading-[135%] tracking-[-4%] transition-colors ' +
|
|
75
|
+
`${index === hoverNum ? 'text-white ' : 'text-[#192555] '}` +
|
|
76
|
+
//1400px
|
|
77
|
+
'max-xxl:text-[18px] ' +
|
|
78
|
+
//768px
|
|
79
|
+
'max-md:text-[16px] ' +
|
|
80
|
+
//480px
|
|
81
|
+
'max-xs:leading-[25px]'
|
|
67
82
|
}
|
|
68
83
|
>
|
|
69
|
-
|
|
70
|
-
|
|
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>
|
|
84
|
+
{content.tag_title}
|
|
85
|
+
</p>
|
|
100
86
|
<IconArrow
|
|
101
87
|
className={
|
|
102
|
-
'h-auto w-[
|
|
103
|
-
`${index === hoverNum ? 'fill-white ' : 'fill-[#
|
|
88
|
+
'mx-[6px] mt-2 h-auto w-[10px] shrink-0 ' +
|
|
89
|
+
`${index === hoverNum ? 'fill-white ' : 'fill-[#192555] '}` +
|
|
104
90
|
//1400px
|
|
105
|
-
'max-xxl:
|
|
106
|
-
//768px
|
|
107
|
-
'max-md:w-[17px] ' +
|
|
108
|
-
//520px
|
|
109
|
-
'max-2sm:w-[14px] ' +
|
|
110
|
-
//400px
|
|
111
|
-
'max-2xs:w-[12px] '
|
|
91
|
+
'max-xxl:mt-[4px] max-xxl:w-2 '
|
|
112
92
|
}
|
|
113
93
|
/>
|
|
114
94
|
</Link>
|