@daeryun/dr_components 1.3.2 → 1.3.4
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.
|
@@ -11,14 +11,16 @@ const CategoryComponent = (props) => {
|
|
|
11
11
|
let link = '';
|
|
12
12
|
if (isApp) {
|
|
13
13
|
link = `/${pathname}`;
|
|
14
|
+
return link + '/' + id;
|
|
14
15
|
}
|
|
15
16
|
else if (selectedCenter.code_desc === currentCenterTitle && !allMainCenterTargetBlank) {
|
|
16
17
|
link = `/${pathname}`;
|
|
18
|
+
return link + '/' + id;
|
|
17
19
|
}
|
|
18
20
|
else {
|
|
19
|
-
link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}
|
|
21
|
+
link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}`;
|
|
22
|
+
return link + '/' + id + getPowerLinkStr();
|
|
20
23
|
}
|
|
21
|
-
return link + '/' + id;
|
|
22
24
|
};
|
|
23
25
|
return (<div className={'flex h-auto w-full flex-col justify-between bg-[#FAFAFA] px-[30px] py-[20px] ' +
|
|
24
26
|
//1280px
|
|
@@ -36,28 +38,30 @@ const CategoryComponent = (props) => {
|
|
|
36
38
|
'max-md2:auto-rows-[minmax(0,60px)] max-md2:grid-cols-1 ' +
|
|
37
39
|
//520px
|
|
38
40
|
'max-2sm:auto-rows-[minmax(0,50px)]'}>
|
|
39
|
-
{showCategory.map((item, index) =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
41
|
+
{showCategory.map((item, index) => {
|
|
42
|
+
return (<Link href={{
|
|
43
|
+
pathname: linkString(item.idx, item.pathname)
|
|
44
|
+
}} key={index} className={'group/category flex h-full w-full items-center justify-between gap-[6px] rounded-[10px] border-[1px] border-solid border-[#D9D9D9] bg-[#fff] px-[20px] ' +
|
|
45
|
+
//900px
|
|
46
|
+
'max-md2:rounded-none max-md2:border-0' +
|
|
47
|
+
//520px
|
|
48
|
+
'max-2sm:px-[10px] '} target={(selectedCenter.code_desc === currentCenterTitle && !allMainCenterTargetBlank) || isApp
|
|
49
|
+
? '_self'
|
|
50
|
+
: '_blank'}>
|
|
51
|
+
<p className={'text-left text-[18px] tracking-[-1px] text-[#4B4B4B] ' +
|
|
52
|
+
//900px
|
|
53
|
+
'max-md2:text-[16px] ' +
|
|
54
|
+
//520px
|
|
55
|
+
'max-2sm:text-[13px]'}>
|
|
56
|
+
{item.title}
|
|
57
|
+
</p>
|
|
58
|
+
<Image src={Arrow3} alt={'arrow'} width={43} height={36} className={'h-auto w-[20px] transition-all group-hover/category:translate-x-[5px] ' +
|
|
59
|
+
//520px
|
|
60
|
+
'max-md2:w-[16px] ' +
|
|
61
|
+
//520px
|
|
62
|
+
'max-2sm:w-[13px]'}/>
|
|
63
|
+
</Link>);
|
|
64
|
+
})}
|
|
61
65
|
</span>
|
|
62
66
|
<span className={'mt-[18px] flex items-center gap-[20px] ' +
|
|
63
67
|
//900px
|
|
@@ -35,13 +35,14 @@ const CategoryComponent = (props: {
|
|
|
35
35
|
|
|
36
36
|
if (isApp) {
|
|
37
37
|
link = `/${pathname}`;
|
|
38
|
+
return link + '/' + id;
|
|
38
39
|
} else if (selectedCenter.code_desc === currentCenterTitle && !allMainCenterTargetBlank) {
|
|
39
40
|
link = `/${pathname}`;
|
|
41
|
+
return link + '/' + id;
|
|
40
42
|
} else {
|
|
41
|
-
link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}
|
|
43
|
+
link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}`;
|
|
44
|
+
return link + '/' + id + getPowerLinkStr();
|
|
42
45
|
}
|
|
43
|
-
|
|
44
|
-
return link + '/' + id;
|
|
45
46
|
};
|
|
46
47
|
return (
|
|
47
48
|
<div
|
|
@@ -68,51 +69,53 @@ const CategoryComponent = (props: {
|
|
|
68
69
|
'max-2sm:auto-rows-[minmax(0,50px)]'
|
|
69
70
|
}
|
|
70
71
|
>
|
|
71
|
-
{showCategory.map((item, index) =>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
'group/category flex h-full w-full items-center justify-between gap-[6px] rounded-[10px] border-[1px] border-solid border-[#D9D9D9] bg-[#fff] px-[20px] ' +
|
|
79
|
-
//900px
|
|
80
|
-
'max-md2:rounded-none max-md2:border-0' +
|
|
81
|
-
//520px
|
|
82
|
-
'max-2sm:px-[10px] '
|
|
83
|
-
}
|
|
84
|
-
target={
|
|
85
|
-
(selectedCenter.code_desc === currentCenterTitle && !allMainCenterTargetBlank) || isApp
|
|
86
|
-
? '_self'
|
|
87
|
-
: '_blank'
|
|
88
|
-
}
|
|
89
|
-
>
|
|
90
|
-
<p
|
|
72
|
+
{showCategory.map((item, index) => {
|
|
73
|
+
return (
|
|
74
|
+
<Link
|
|
75
|
+
href={{
|
|
76
|
+
pathname: linkString(item.idx, item.pathname)
|
|
77
|
+
}}
|
|
78
|
+
key={index}
|
|
91
79
|
className={
|
|
92
|
-
'
|
|
80
|
+
'group/category flex h-full w-full items-center justify-between gap-[6px] rounded-[10px] border-[1px] border-solid border-[#D9D9D9] bg-[#fff] px-[20px] ' +
|
|
93
81
|
//900px
|
|
94
|
-
'max-md2:
|
|
82
|
+
'max-md2:rounded-none max-md2:border-0' +
|
|
95
83
|
//520px
|
|
96
|
-
'max-2sm:
|
|
84
|
+
'max-2sm:px-[10px] '
|
|
97
85
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
src={Arrow3}
|
|
103
|
-
alt={'arrow'}
|
|
104
|
-
width={43}
|
|
105
|
-
height={36}
|
|
106
|
-
className={
|
|
107
|
-
'h-auto w-[20px] transition-all group-hover/category:translate-x-[5px] ' +
|
|
108
|
-
//520px
|
|
109
|
-
'max-md2:w-[16px] ' +
|
|
110
|
-
//520px
|
|
111
|
-
'max-2sm:w-[13px]'
|
|
86
|
+
target={
|
|
87
|
+
(selectedCenter.code_desc === currentCenterTitle && !allMainCenterTargetBlank) || isApp
|
|
88
|
+
? '_self'
|
|
89
|
+
: '_blank'
|
|
112
90
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
91
|
+
>
|
|
92
|
+
<p
|
|
93
|
+
className={
|
|
94
|
+
'text-left text-[18px] tracking-[-1px] text-[#4B4B4B] ' +
|
|
95
|
+
//900px
|
|
96
|
+
'max-md2:text-[16px] ' +
|
|
97
|
+
//520px
|
|
98
|
+
'max-2sm:text-[13px]'
|
|
99
|
+
}
|
|
100
|
+
>
|
|
101
|
+
{item.title}
|
|
102
|
+
</p>
|
|
103
|
+
<Image
|
|
104
|
+
src={Arrow3}
|
|
105
|
+
alt={'arrow'}
|
|
106
|
+
width={43}
|
|
107
|
+
height={36}
|
|
108
|
+
className={
|
|
109
|
+
'h-auto w-[20px] transition-all group-hover/category:translate-x-[5px] ' +
|
|
110
|
+
//520px
|
|
111
|
+
'max-md2:w-[16px] ' +
|
|
112
|
+
//520px
|
|
113
|
+
'max-2sm:w-[13px]'
|
|
114
|
+
}
|
|
115
|
+
/>
|
|
116
|
+
</Link>
|
|
117
|
+
);
|
|
118
|
+
})}
|
|
116
119
|
</span>
|
|
117
120
|
<span
|
|
118
121
|
className={
|