@daeryun/dr_components 0.4.96 → 0.4.99
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/header/head_link.svg +3 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/Header/HeaderWrapper.d.ts +8 -0
- package/dist/components/Header/HeaderWrapper.jsx +8 -0
- package/dist/components/Header/HeaderWrapper.tsx +22 -0
- package/dist/components/Header/MobileHeader.jsx +3 -3
- package/dist/components/Header/MobileHeader.tsx +3 -3
- package/dist/components/Header/PcHeader.jsx +6 -4
- package/dist/components/Header/PcHeader.tsx +13 -4
- package/dist/components/index.js +1 -0
- package/dist/components/index.ts +1 -0
- package/dist/components/page/LawyerDetail/BasicInfo.d.ts +8 -0
- package/dist/components/page/LawyerDetail/BasicInfo.jsx +127 -0
- package/dist/components/page/LawyerDetail/BasicInfo.tsx +265 -0
- package/dist/components/page/LawyerDetail/CareerList.d.ts +20 -0
- package/dist/components/page/LawyerDetail/CareerList.jsx +289 -0
- package/dist/components/page/LawyerDetail/CareerList.tsx +544 -0
- package/dist/components/page/LawyerDetail/ILawyerDetailTypes.d.ts +48 -0
- package/dist/components/page/LawyerDetail/ILawyerDetailTypes.jsx +1 -0
- package/dist/components/page/LawyerDetail/ILawyerDetailTypes.tsx +53 -0
- package/dist/components/page/LawyerDetail/Introduce.d.ts +7 -0
- package/dist/components/page/LawyerDetail/Introduce.jsx +25 -0
- package/dist/components/page/LawyerDetail/Introduce.tsx +41 -0
- package/dist/components/page/LawyerDetail/LawyerDetail.d.ts +11 -0
- package/dist/components/page/LawyerDetail/LawyerDetail.jsx +117 -0
- package/dist/components/page/LawyerDetail/LawyerDetail.stories.d.ts +6 -0
- package/dist/components/page/LawyerDetail/LawyerDetail.stories.jsx +2485 -0
- package/dist/components/page/LawyerDetail/LawyerDetail.stories.tsx +2495 -0
- package/dist/components/page/LawyerDetail/LawyerDetail.tsx +180 -0
- package/dist/components/page/LawyerDetail/MobileRelatedPage.d.ts +10 -0
- package/dist/components/page/LawyerDetail/MobileRelatedPage.jsx +45 -0
- package/dist/components/page/LawyerDetail/MobileRelatedPage.tsx +118 -0
- package/dist/components/page/LawyerDetail/MobileSpeciality.d.ts +9 -0
- package/dist/components/page/LawyerDetail/MobileSpeciality.jsx +59 -0
- package/dist/components/page/LawyerDetail/MobileSpeciality.tsx +113 -0
- package/dist/components/page/LawyerDetail/MobileTabButton.d.ts +5 -0
- package/dist/components/page/LawyerDetail/MobileTabButton.jsx +20 -0
- package/dist/components/page/LawyerDetail/MobileTabButton.tsx +35 -0
- package/dist/components/page/LawyerDetail/PcTabButton.d.ts +8 -0
- package/dist/components/page/LawyerDetail/PcTabButton.jsx +102 -0
- package/dist/components/page/LawyerDetail/PcTabButton.tsx +182 -0
- package/dist/components/page/LawyerDetail/detail.module.css +602 -0
- package/dist/styles/globals.css +692 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
const PcTabButton = ({ careerList, targetRefs, targetTitleRefs }) => {
|
|
4
|
+
const [tab, setTab] = useState('career');
|
|
5
|
+
const scrollToTarget = (targetRef) => {
|
|
6
|
+
if (targetRef.current) {
|
|
7
|
+
targetRef.current.scrollIntoView({ behavior: 'smooth' });
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
return (<div className={'grid grid-cols-[repeat(5,minmax(0,190px))] gap-[10px] ' +
|
|
11
|
+
//1024px
|
|
12
|
+
'max-lg:grid-cols-[repeat(3,1fr)] max-lg:gap-[15px] ' +
|
|
13
|
+
//640px
|
|
14
|
+
'max-sm:hidden'}>
|
|
15
|
+
{careerList.filter((item) => item.career_code === 'LC002').length > 0 ? (<div className={'cursor-pointer rounded-[100px] text-center ' +
|
|
16
|
+
`${tab === 'career' ? 'bg-[#285FA7] font-[700] text-[#fff] ' : 'bg-[#F8F8F8] font-[500]'}`}>
|
|
17
|
+
<button
|
|
18
|
+
// href="#career_list"
|
|
19
|
+
className={'block h-full w-full p-[12px] text-[22px] tracking-[-1.6px] ' +
|
|
20
|
+
//1280px
|
|
21
|
+
'max-xl:text-[18px] ' +
|
|
22
|
+
//1024px
|
|
23
|
+
'max-lg:text-[16px] '} onClick={() => {
|
|
24
|
+
var _a;
|
|
25
|
+
setTab('career');
|
|
26
|
+
scrollToTarget(targetRefs['career']);
|
|
27
|
+
(_a = targetTitleRefs.career.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
28
|
+
}} aria-label={'경력으로 스크롤 이동'}>
|
|
29
|
+
경력
|
|
30
|
+
</button>
|
|
31
|
+
</div>) : ('')}
|
|
32
|
+
{careerList.filter((item) => item.career_code === 'LC003').length > 0 ? (<div className={'cursor-pointer rounded-[100px] text-center ' +
|
|
33
|
+
`${tab === 'act' ? 'bg-[#285FA7] font-[700] text-[#fff] ' : 'bg-[#F8F8F8] font-[500]'}`}>
|
|
34
|
+
<button
|
|
35
|
+
// href="#act_list"
|
|
36
|
+
className={'block h-full w-full p-[12px] text-[22px] tracking-[-1.6px] ' +
|
|
37
|
+
//1280px
|
|
38
|
+
'max-xl:text-[18px] ' +
|
|
39
|
+
//1024px
|
|
40
|
+
'max-lg:text-[16px] '} onClick={() => {
|
|
41
|
+
var _a;
|
|
42
|
+
setTab('act');
|
|
43
|
+
scrollToTarget(targetRefs['act']);
|
|
44
|
+
(_a = targetTitleRefs.act.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
45
|
+
}} aria-label={'주요업무 및 활동으로 스크롤 이동'}>
|
|
46
|
+
주요업무 및 활동
|
|
47
|
+
</button>
|
|
48
|
+
</div>) : ('')}
|
|
49
|
+
{careerList.filter((item) => item.career_code === 'LC006').length > 0 ? (<div className={'cursor-pointer rounded-[100px] text-center ' +
|
|
50
|
+
`${tab === 'success' ? 'bg-[#285FA7] font-[700] text-[#fff] ' : 'bg-[#F8F8F8] font-[500]'}`}>
|
|
51
|
+
<button
|
|
52
|
+
// href="#suc_list"
|
|
53
|
+
className={'block h-full w-full p-[12px] text-[22px] tracking-[-1.6px] ' +
|
|
54
|
+
//1280px
|
|
55
|
+
'max-xl:text-[18px] ' +
|
|
56
|
+
//1024px
|
|
57
|
+
'max-lg:text-[16px] '} onClick={() => {
|
|
58
|
+
var _a;
|
|
59
|
+
setTab('success');
|
|
60
|
+
scrollToTarget(targetRefs['success']);
|
|
61
|
+
(_a = targetTitleRefs.success.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
62
|
+
}} aria-label={'주요실적으로 스크롤 이동'}>
|
|
63
|
+
주요실적
|
|
64
|
+
</button>
|
|
65
|
+
</div>) : ('')}
|
|
66
|
+
{careerList.filter((item) => item.career_code === 'LC001').length > 0 ? (<div className={'cursor-pointer rounded-[100px] text-center ' +
|
|
67
|
+
`${tab === 'edu' ? 'bg-[#285FA7] font-[700] text-[#fff] ' : 'bg-[#F8F8F8] font-[500]'}`}>
|
|
68
|
+
<button
|
|
69
|
+
// href="#edu_list"
|
|
70
|
+
className={'block h-full w-full p-[12px] text-[22px] tracking-[-1.6px] ' +
|
|
71
|
+
//1280px
|
|
72
|
+
'max-xl:text-[18px] ' +
|
|
73
|
+
//1024px
|
|
74
|
+
'max-lg:text-[16px] '} onClick={() => {
|
|
75
|
+
var _a;
|
|
76
|
+
setTab('edu');
|
|
77
|
+
scrollToTarget(targetRefs['edu']);
|
|
78
|
+
(_a = targetTitleRefs.edu.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
79
|
+
}} aria-label={'학력으로 스크롤 이동'}>
|
|
80
|
+
학력
|
|
81
|
+
</button>
|
|
82
|
+
</div>) : ('')}
|
|
83
|
+
{careerList.filter((item) => item.career_code === 'LC004').length > 0 ? (<div className={'cursor-pointer rounded-[100px] text-center ' +
|
|
84
|
+
`${tab === 'book' ? 'bg-[#285FA7] font-[700] text-[#fff] ' : 'bg-[#F8F8F8] font-[500]'}`}>
|
|
85
|
+
<button
|
|
86
|
+
// href="#book_list"
|
|
87
|
+
className={'block h-full w-full p-[12px] text-[22px] tracking-[-1.6px] ' +
|
|
88
|
+
//1280px
|
|
89
|
+
'max-xl:text-[18px] ' +
|
|
90
|
+
//1024px
|
|
91
|
+
'max-lg:text-[16px] '} onClick={() => {
|
|
92
|
+
var _a;
|
|
93
|
+
setTab('book');
|
|
94
|
+
scrollToTarget(targetRefs['book']);
|
|
95
|
+
(_a = targetTitleRefs.book.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
96
|
+
}} aria-label={'저서로 스크롤 이동'}>
|
|
97
|
+
저서
|
|
98
|
+
</button>
|
|
99
|
+
</div>) : ('')}
|
|
100
|
+
</div>);
|
|
101
|
+
};
|
|
102
|
+
export default PcTabButton;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { useRouter } from 'next/navigation';
|
|
4
|
+
import { useTranslation } from 'next-i18next';
|
|
5
|
+
import { ILawyerCareer } from './ILawyerDetailTypes';
|
|
6
|
+
|
|
7
|
+
const PcTabButton = ({
|
|
8
|
+
careerList,
|
|
9
|
+
targetRefs,
|
|
10
|
+
targetTitleRefs
|
|
11
|
+
}: {
|
|
12
|
+
careerList: ILawyerCareer[];
|
|
13
|
+
targetRefs: any;
|
|
14
|
+
targetTitleRefs: any;
|
|
15
|
+
}) => {
|
|
16
|
+
const [tab, setTab] = useState('career');
|
|
17
|
+
|
|
18
|
+
const scrollToTarget = (targetRef: any) => {
|
|
19
|
+
if (targetRef.current) {
|
|
20
|
+
targetRef.current.scrollIntoView({ behavior: 'smooth' });
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<div
|
|
26
|
+
className={
|
|
27
|
+
'grid grid-cols-[repeat(5,minmax(0,190px))] gap-[10px] ' +
|
|
28
|
+
//1024px
|
|
29
|
+
'max-lg:grid-cols-[repeat(3,1fr)] max-lg:gap-[15px] ' +
|
|
30
|
+
//640px
|
|
31
|
+
'max-sm:hidden'
|
|
32
|
+
}
|
|
33
|
+
>
|
|
34
|
+
{careerList.filter((item: any) => item.career_code === 'LC002').length > 0 ? (
|
|
35
|
+
<div
|
|
36
|
+
className={
|
|
37
|
+
'cursor-pointer rounded-[100px] text-center ' +
|
|
38
|
+
`${tab === 'career' ? 'bg-[#285FA7] font-[700] text-[#fff] ' : 'bg-[#F8F8F8] font-[500]'}`
|
|
39
|
+
}
|
|
40
|
+
>
|
|
41
|
+
<button
|
|
42
|
+
// href="#career_list"
|
|
43
|
+
className={
|
|
44
|
+
'block h-full w-full p-[12px] text-[22px] tracking-[-1.6px] ' +
|
|
45
|
+
//1280px
|
|
46
|
+
'max-xl:text-[18px] ' +
|
|
47
|
+
//1024px
|
|
48
|
+
'max-lg:text-[16px] '
|
|
49
|
+
}
|
|
50
|
+
onClick={() => {
|
|
51
|
+
setTab('career');
|
|
52
|
+
scrollToTarget(targetRefs['career']);
|
|
53
|
+
targetTitleRefs.career.current?.focus();
|
|
54
|
+
}}
|
|
55
|
+
aria-label={'경력으로 스크롤 이동'}
|
|
56
|
+
>
|
|
57
|
+
경력
|
|
58
|
+
</button>
|
|
59
|
+
</div>
|
|
60
|
+
) : (
|
|
61
|
+
''
|
|
62
|
+
)}
|
|
63
|
+
{careerList.filter((item: any) => item.career_code === 'LC003').length > 0 ? (
|
|
64
|
+
<div
|
|
65
|
+
className={
|
|
66
|
+
'cursor-pointer rounded-[100px] text-center ' +
|
|
67
|
+
`${tab === 'act' ? 'bg-[#285FA7] font-[700] text-[#fff] ' : 'bg-[#F8F8F8] font-[500]'}`
|
|
68
|
+
}
|
|
69
|
+
>
|
|
70
|
+
<button
|
|
71
|
+
// href="#act_list"
|
|
72
|
+
className={
|
|
73
|
+
'block h-full w-full p-[12px] text-[22px] tracking-[-1.6px] ' +
|
|
74
|
+
//1280px
|
|
75
|
+
'max-xl:text-[18px] ' +
|
|
76
|
+
//1024px
|
|
77
|
+
'max-lg:text-[16px] '
|
|
78
|
+
}
|
|
79
|
+
onClick={() => {
|
|
80
|
+
setTab('act');
|
|
81
|
+
scrollToTarget(targetRefs['act']);
|
|
82
|
+
targetTitleRefs.act.current?.focus();
|
|
83
|
+
}}
|
|
84
|
+
aria-label={'주요업무 및 활동으로 스크롤 이동'}
|
|
85
|
+
>
|
|
86
|
+
주요업무 및 활동
|
|
87
|
+
</button>
|
|
88
|
+
</div>
|
|
89
|
+
) : (
|
|
90
|
+
''
|
|
91
|
+
)}
|
|
92
|
+
{careerList.filter((item: any) => item.career_code === 'LC006').length > 0 ? (
|
|
93
|
+
<div
|
|
94
|
+
className={
|
|
95
|
+
'cursor-pointer rounded-[100px] text-center ' +
|
|
96
|
+
`${tab === 'success' ? 'bg-[#285FA7] font-[700] text-[#fff] ' : 'bg-[#F8F8F8] font-[500]'}`
|
|
97
|
+
}
|
|
98
|
+
>
|
|
99
|
+
<button
|
|
100
|
+
// href="#suc_list"
|
|
101
|
+
className={
|
|
102
|
+
'block h-full w-full p-[12px] text-[22px] tracking-[-1.6px] ' +
|
|
103
|
+
//1280px
|
|
104
|
+
'max-xl:text-[18px] ' +
|
|
105
|
+
//1024px
|
|
106
|
+
'max-lg:text-[16px] '
|
|
107
|
+
}
|
|
108
|
+
onClick={() => {
|
|
109
|
+
setTab('success');
|
|
110
|
+
scrollToTarget(targetRefs['success']);
|
|
111
|
+
targetTitleRefs.success.current?.focus();
|
|
112
|
+
}}
|
|
113
|
+
aria-label={'주요실적으로 스크롤 이동'}
|
|
114
|
+
>
|
|
115
|
+
주요실적
|
|
116
|
+
</button>
|
|
117
|
+
</div>
|
|
118
|
+
) : (
|
|
119
|
+
''
|
|
120
|
+
)}
|
|
121
|
+
{careerList.filter((item: any) => item.career_code === 'LC001').length > 0 ? (
|
|
122
|
+
<div
|
|
123
|
+
className={
|
|
124
|
+
'cursor-pointer rounded-[100px] text-center ' +
|
|
125
|
+
`${tab === 'edu' ? 'bg-[#285FA7] font-[700] text-[#fff] ' : 'bg-[#F8F8F8] font-[500]'}`
|
|
126
|
+
}
|
|
127
|
+
>
|
|
128
|
+
<button
|
|
129
|
+
// href="#edu_list"
|
|
130
|
+
className={
|
|
131
|
+
'block h-full w-full p-[12px] text-[22px] tracking-[-1.6px] ' +
|
|
132
|
+
//1280px
|
|
133
|
+
'max-xl:text-[18px] ' +
|
|
134
|
+
//1024px
|
|
135
|
+
'max-lg:text-[16px] '
|
|
136
|
+
}
|
|
137
|
+
onClick={() => {
|
|
138
|
+
setTab('edu');
|
|
139
|
+
scrollToTarget(targetRefs['edu']);
|
|
140
|
+
targetTitleRefs.edu.current?.focus();
|
|
141
|
+
}}
|
|
142
|
+
aria-label={'학력으로 스크롤 이동'}
|
|
143
|
+
>
|
|
144
|
+
학력
|
|
145
|
+
</button>
|
|
146
|
+
</div>
|
|
147
|
+
) : (
|
|
148
|
+
''
|
|
149
|
+
)}
|
|
150
|
+
{careerList.filter((item: any) => item.career_code === 'LC004').length > 0 ? (
|
|
151
|
+
<div
|
|
152
|
+
className={
|
|
153
|
+
'cursor-pointer rounded-[100px] text-center ' +
|
|
154
|
+
`${tab === 'book' ? 'bg-[#285FA7] font-[700] text-[#fff] ' : 'bg-[#F8F8F8] font-[500]'}`
|
|
155
|
+
}
|
|
156
|
+
>
|
|
157
|
+
<button
|
|
158
|
+
// href="#book_list"
|
|
159
|
+
className={
|
|
160
|
+
'block h-full w-full p-[12px] text-[22px] tracking-[-1.6px] ' +
|
|
161
|
+
//1280px
|
|
162
|
+
'max-xl:text-[18px] ' +
|
|
163
|
+
//1024px
|
|
164
|
+
'max-lg:text-[16px] '
|
|
165
|
+
}
|
|
166
|
+
onClick={() => {
|
|
167
|
+
setTab('book');
|
|
168
|
+
scrollToTarget(targetRefs['book']);
|
|
169
|
+
targetTitleRefs.book.current?.focus();
|
|
170
|
+
}}
|
|
171
|
+
aria-label={'저서로 스크롤 이동'}
|
|
172
|
+
>
|
|
173
|
+
저서
|
|
174
|
+
</button>
|
|
175
|
+
</div>
|
|
176
|
+
) : (
|
|
177
|
+
''
|
|
178
|
+
)}
|
|
179
|
+
</div>
|
|
180
|
+
);
|
|
181
|
+
};
|
|
182
|
+
export default PcTabButton;
|