@daeryun/dr_components 0.8.74 → 0.8.75
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/common/integrate/index.d.ts +1 -1
- 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 +403 -425
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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>
|