@daeryun/dr_components 1.2.69 → 1.2.71
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/components/SearchBar/SearchBar.jsx +8 -7
- package/dist/components/SearchBar/SearchBar.tsx +8 -7
- package/dist/components/page/Broadcast/BroadcastList.jsx +3 -1
- package/dist/components/page/Broadcast/BroadcastList.tsx +13 -9
- package/dist/components/page/Faq/FaqList.jsx +5 -3
- package/dist/components/page/Faq/FaqList.tsx +15 -12
- package/dist/components/page/Notice/NoticeList.jsx +3 -1
- package/dist/components/page/Notice/NoticeList.tsx +13 -9
- package/dist/components/page/Success/SuccessList.jsx +3 -2
- package/dist/components/page/Success/SuccessList.tsx +13 -10
- package/dist/styles/globals.css +24 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -9,13 +9,14 @@ const SearchBar = (props) => {
|
|
|
9
9
|
// placeholder 전환
|
|
10
10
|
const getPlaceholderText = (placeholder) => {
|
|
11
11
|
const placeholderMap = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
success: '업무사례를 검색해보세요',
|
|
13
|
+
info: '법률정보를 검색해보세요',
|
|
14
|
+
faq: '법률지식인을 검색해보세요',
|
|
15
|
+
reply: '고객후기를 검색해보세요',
|
|
16
|
+
broadcast: '언론보도를 검색해보세요',
|
|
17
|
+
notice: '공지사항을 검색해보세요',
|
|
18
|
+
archive: '법률서식을 검색해보세요',
|
|
19
|
+
integrate: '변호사, 승소사례, 법률정보 등을 검색해보세요'
|
|
19
20
|
};
|
|
20
21
|
return placeholderMap[placeholder] || placeholder;
|
|
21
22
|
};
|
|
@@ -39,13 +39,14 @@ const SearchBar = (props: {
|
|
|
39
39
|
// placeholder 전환
|
|
40
40
|
const getPlaceholderText = (placeholder: string) => {
|
|
41
41
|
const placeholderMap: { [key: string]: string } = {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
success: '업무사례를 검색해보세요',
|
|
43
|
+
info: '법률정보를 검색해보세요',
|
|
44
|
+
faq: '법률지식인을 검색해보세요',
|
|
45
|
+
reply: '고객후기를 검색해보세요',
|
|
46
|
+
broadcast: '언론보도를 검색해보세요',
|
|
47
|
+
notice: '공지사항을 검색해보세요',
|
|
48
|
+
archive: '법률서식을 검색해보세요',
|
|
49
|
+
integrate: '변호사, 승소사례, 법률정보 등을 검색해보세요'
|
|
49
50
|
};
|
|
50
51
|
return placeholderMap[placeholder] || placeholder;
|
|
51
52
|
};
|
|
@@ -26,7 +26,9 @@ const BroadcastList = ({ search, page, count, size, broadcastList }) => {
|
|
|
26
26
|
router.push(`/broadcast?page=1&search=${searchInput}`);
|
|
27
27
|
};
|
|
28
28
|
return (<PageWrapper>
|
|
29
|
-
<
|
|
29
|
+
<div className="sticky top-[100px] z-[45] mb-[20px] bg-white pb-[2px] pt-4 max-md:top-[60px]">
|
|
30
|
+
<SearchBar label={'언론보도 검색창'} onChange={handleInputChange} onClick={handleClick} search={searchInput} border={true} placeholder={'언론보도를 검색해보세요'} isKeyPress={true} marginTop={[70, 50, 50]} marginBottom={[40, 40, 20]}/>
|
|
31
|
+
</div>
|
|
30
32
|
<div className={'flex items-center justify-center border-t-[3px] border-solid border-[#252225]'}>
|
|
31
33
|
{broadcastList.length > 0 && broadcastList.length > 0 ? (<div className={'flex w-full flex-col lg:flex-row lg:flex-wrap lg:justify-between lg:gap-2 '}>
|
|
32
34
|
{broadcastList.map(item => {
|
|
@@ -57,15 +57,19 @@ const BroadcastList = ({
|
|
|
57
57
|
|
|
58
58
|
return (
|
|
59
59
|
<PageWrapper>
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
<div className="sticky top-[100px] z-[45] mb-[20px] bg-white pb-[2px] pt-4 max-md:top-[60px]">
|
|
61
|
+
<SearchBar
|
|
62
|
+
label={'언론보도 검색창'}
|
|
63
|
+
onChange={handleInputChange}
|
|
64
|
+
onClick={handleClick}
|
|
65
|
+
search={searchInput}
|
|
66
|
+
border={true}
|
|
67
|
+
placeholder={'언론보도를 검색해보세요'}
|
|
68
|
+
isKeyPress={true}
|
|
69
|
+
marginTop={[70, 50, 50]}
|
|
70
|
+
marginBottom={[40, 40, 20]}
|
|
71
|
+
/>
|
|
72
|
+
</div>
|
|
69
73
|
<div className={'flex items-center justify-center border-t-[3px] border-solid border-[#252225]'}>
|
|
70
74
|
{broadcastList.length > 0 && broadcastList.length > 0 ? (
|
|
71
75
|
<div className={'flex w-full flex-col lg:flex-row lg:flex-wrap lg:justify-between lg:gap-2 '}>
|
|
@@ -18,9 +18,11 @@ const FaqList = ({ SearchBarProps, PaginationProps, groupList, faqList, currentC
|
|
|
18
18
|
대륜의 전문변호사가 답변 드리겠습니다.
|
|
19
19
|
</span>} imgType={ImgTypes.FAQ} isUseHeaderComponent/>
|
|
20
20
|
<PageWrapper className={'tracking-[-0.5px]'}>
|
|
21
|
-
<
|
|
22
|
-
<
|
|
23
|
-
|
|
21
|
+
<div className="sticky top-[100px] z-[45] mb-[20px] bg-white pb-[2px] pt-4 max-md:top-[60px]">
|
|
22
|
+
<span className={'h-auto w-auto'}>
|
|
23
|
+
<SearchBar label={'법률지식인 검색창'} onChange={SearchBarProps.handleInputChange} onClick={SearchBarProps.handleSearch} search={SearchBarProps.searchInput} border={true} placeholder={'법률지식인을 검색해보세요'} isKeyPress={true} marginTop={[70, 50, 50]} marginBottom={[40, 40, 20]}/>
|
|
24
|
+
</span>
|
|
25
|
+
</div>
|
|
24
26
|
<section className={'mb-[50px] mt-[100px] w-full max-xl:mt-[80px] max-md:mt-[40px] '}>
|
|
25
27
|
<div className={'flex w-full gap-[84px] pb-10 max-xl:gap-0 max-xl:pb-0 max-md:flex-col max-md:gap-[58px]'}>
|
|
26
28
|
{/*pc 768px 이상*/}
|
|
@@ -56,18 +56,21 @@ const FaqList = ({
|
|
|
56
56
|
isUseHeaderComponent
|
|
57
57
|
/>
|
|
58
58
|
<PageWrapper className={'tracking-[-0.5px]'}>
|
|
59
|
-
<
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
59
|
+
<div className="sticky top-[100px] z-[45] mb-[20px] bg-white pb-[2px] pt-4 max-md:top-[60px]">
|
|
60
|
+
<span className={'h-auto w-auto'}>
|
|
61
|
+
<SearchBar
|
|
62
|
+
label={'법률지식인 검색창'}
|
|
63
|
+
onChange={SearchBarProps.handleInputChange}
|
|
64
|
+
onClick={SearchBarProps.handleSearch}
|
|
65
|
+
search={SearchBarProps.searchInput}
|
|
66
|
+
border={true}
|
|
67
|
+
placeholder={'법률지식인을 검색해보세요'}
|
|
68
|
+
isKeyPress={true}
|
|
69
|
+
marginTop={[70, 50, 50]}
|
|
70
|
+
marginBottom={[40, 40, 20]}
|
|
71
|
+
/>
|
|
72
|
+
</span>
|
|
73
|
+
</div>
|
|
71
74
|
<section className={'mb-[50px] mt-[100px] w-full max-xl:mt-[80px] max-md:mt-[40px] '}>
|
|
72
75
|
<div
|
|
73
76
|
className={
|
|
@@ -90,7 +90,9 @@ const NoticeList = ({ noticeList = [], noticeName = [] }) => {
|
|
|
90
90
|
다양한 새소식을 전달합니다
|
|
91
91
|
</>} imgType={ImgTypes.NOTICE} isUseHeaderComponent/>
|
|
92
92
|
<PageWrapper>
|
|
93
|
-
<
|
|
93
|
+
<div className="sticky top-[100px] z-[45] mb-[20px] bg-white pb-[2px] pt-4 max-md:top-[60px]">
|
|
94
|
+
<SearchBar label={'검색어를 입력해주세요.'} onChange={handleInputChange} onClick={handleSearch} border={true} search={searchInput} placeholder={'공지사항을 검색해보세요'} isKeyPress={true} marginTop={[70, 50, 50]} marginBottom={[40, 40, 20]}/>
|
|
95
|
+
</div>
|
|
94
96
|
<div className={'mb-10 flex w-full cursor-pointer border-[1px] border-solid border-[#DBDBDB] text-center '}>
|
|
95
97
|
<div tabIndex={0} className={`${nameFilter.code_name === '전체'
|
|
96
98
|
? 'bg-[#285FA7] text-[#fff]'
|
|
@@ -155,15 +155,19 @@ const NoticeList = ({ noticeList = [], noticeName = [] }: NoticeListProps) => {
|
|
|
155
155
|
isUseHeaderComponent
|
|
156
156
|
/>
|
|
157
157
|
<PageWrapper>
|
|
158
|
-
<
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
158
|
+
<div className="sticky top-[100px] z-[45] mb-[20px] bg-white pb-[2px] pt-4 max-md:top-[60px]">
|
|
159
|
+
<SearchBar
|
|
160
|
+
label={'검색어를 입력해주세요.'}
|
|
161
|
+
onChange={handleInputChange}
|
|
162
|
+
onClick={handleSearch}
|
|
163
|
+
border={true}
|
|
164
|
+
search={searchInput}
|
|
165
|
+
placeholder={'공지사항을 검색해보세요'}
|
|
166
|
+
isKeyPress={true}
|
|
167
|
+
marginTop={[70, 50, 50]}
|
|
168
|
+
marginBottom={[40, 40, 20]}
|
|
169
|
+
/>
|
|
170
|
+
</div>
|
|
167
171
|
<div
|
|
168
172
|
className={
|
|
169
173
|
'mb-10 flex w-full cursor-pointer border-[1px] border-solid border-[#DBDBDB] text-center '
|
|
@@ -46,8 +46,9 @@ const Index = (props) => {
|
|
|
46
46
|
});
|
|
47
47
|
return (<>
|
|
48
48
|
<PageWrapper>
|
|
49
|
-
<
|
|
50
|
-
|
|
49
|
+
<div className="sticky top-[100px] z-[45] mb-[20px] bg-white pb-[2px] pt-4 max-md:top-[60px]">
|
|
50
|
+
<SearchBar onChange={handleInputChange} onClick={handleClick} search={searchInput} border={true} placeholder={'업무사례를 검색해보세요'} isKeyPress={true} marginTop={[70, 50, 50]} marginBottom={[40, 40, 20]} label={'업무사례 검색창'}/>
|
|
51
|
+
</div>
|
|
51
52
|
{list && list.length > 0 ? (<div className={'mt-[95px] grid w-full grid-cols-3 gap-[34px] font-[Pretendard] ' +
|
|
52
53
|
'max-xl:mt-20 max-xl:grid-cols-2 max-xl:gap-8 ' +
|
|
53
54
|
'max-md:grid-cols-1 max-xs:mt-[60px]'}>
|
|
@@ -45,16 +45,19 @@ const Index = (props: { list: ISuccessListTypes[]; totalCount: number; currentPa
|
|
|
45
45
|
return (
|
|
46
46
|
<>
|
|
47
47
|
<PageWrapper>
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
<div className="sticky top-[100px] z-[45] mb-[20px] bg-white pb-[2px] pt-4 max-md:top-[60px]">
|
|
49
|
+
<SearchBar
|
|
50
|
+
onChange={handleInputChange}
|
|
51
|
+
onClick={handleClick}
|
|
52
|
+
search={searchInput}
|
|
53
|
+
border={true}
|
|
54
|
+
placeholder={'업무사례를 검색해보세요'}
|
|
55
|
+
isKeyPress={true}
|
|
56
|
+
marginTop={[70, 50, 50]}
|
|
57
|
+
marginBottom={[40, 40, 20]}
|
|
58
|
+
label={'업무사례 검색창'}
|
|
59
|
+
/>
|
|
60
|
+
</div>
|
|
58
61
|
{list && list.length > 0 ? (
|
|
59
62
|
<div
|
|
60
63
|
className={
|
package/dist/styles/globals.css
CHANGED
|
@@ -818,6 +818,10 @@ html {
|
|
|
818
818
|
position: relative;
|
|
819
819
|
}
|
|
820
820
|
|
|
821
|
+
.sticky {
|
|
822
|
+
position: sticky;
|
|
823
|
+
}
|
|
824
|
+
|
|
821
825
|
.inset-0 {
|
|
822
826
|
inset: 0px;
|
|
823
827
|
}
|
|
@@ -1226,6 +1230,10 @@ html {
|
|
|
1226
1230
|
top: 10%;
|
|
1227
1231
|
}
|
|
1228
1232
|
|
|
1233
|
+
.top-\[100px\] {
|
|
1234
|
+
top: 100px;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1229
1237
|
.top-\[120px\] {
|
|
1230
1238
|
top: 120px;
|
|
1231
1239
|
}
|
|
@@ -1386,6 +1394,10 @@ html {
|
|
|
1386
1394
|
z-index: 3000;
|
|
1387
1395
|
}
|
|
1388
1396
|
|
|
1397
|
+
.z-\[45\] {
|
|
1398
|
+
z-index: 45;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1389
1401
|
.z-\[50\] {
|
|
1390
1402
|
z-index: 50;
|
|
1391
1403
|
}
|
|
@@ -7459,6 +7471,10 @@ html {
|
|
|
7459
7471
|
padding-bottom: 239px;
|
|
7460
7472
|
}
|
|
7461
7473
|
|
|
7474
|
+
.pb-\[2px\] {
|
|
7475
|
+
padding-bottom: 2px;
|
|
7476
|
+
}
|
|
7477
|
+
|
|
7462
7478
|
.pb-\[30px\] {
|
|
7463
7479
|
padding-bottom: 30px;
|
|
7464
7480
|
}
|
|
@@ -7715,6 +7731,10 @@ html {
|
|
|
7715
7731
|
padding-top: 0.75rem;
|
|
7716
7732
|
}
|
|
7717
7733
|
|
|
7734
|
+
.pt-4 {
|
|
7735
|
+
padding-top: 1rem;
|
|
7736
|
+
}
|
|
7737
|
+
|
|
7718
7738
|
.pt-8 {
|
|
7719
7739
|
padding-top: 2rem;
|
|
7720
7740
|
}
|
|
@@ -15846,6 +15866,10 @@ body {
|
|
|
15846
15866
|
top: 30px;
|
|
15847
15867
|
}
|
|
15848
15868
|
|
|
15869
|
+
.max-md\:top-\[60px\] {
|
|
15870
|
+
top: 60px;
|
|
15871
|
+
}
|
|
15872
|
+
|
|
15849
15873
|
.max-md\:top-\[unset\] {
|
|
15850
15874
|
top: unset;
|
|
15851
15875
|
}
|