@daeryun/dr_components 1.2.70 → 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.
@@ -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
- <SearchBar label={'언론보도 검색창'} onChange={handleInputChange} onClick={handleClick} search={searchInput} placeholder={'검색어를 입력해주세요.'} isKeyPress={true} marginTop={[70, 50, 50]}/>
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
- <SearchBar
61
- label={'언론보도 검색창'}
62
- onChange={handleInputChange}
63
- onClick={handleClick}
64
- search={searchInput}
65
- placeholder={'검색어를 입력해주세요.'}
66
- isKeyPress={true}
67
- marginTop={[70, 50, 50]}
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
- <span className={'h-auto w-auto'}>
22
- <SearchBar label={'법률지식인 검색창'} onChange={SearchBarProps.handleInputChange} onClick={SearchBarProps.handleSearch} search={SearchBarProps.searchInput} placeholder={''} isKeyPress={true} marginTop={[70, 50, 50]} marginBottom={0}/>
23
- </span>
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
- <span className={'h-auto w-auto'}>
60
- <SearchBar
61
- label={'법률지식인 검색창'}
62
- onChange={SearchBarProps.handleInputChange}
63
- onClick={SearchBarProps.handleSearch}
64
- search={SearchBarProps.searchInput}
65
- placeholder={''}
66
- isKeyPress={true}
67
- marginTop={[70, 50, 50]}
68
- marginBottom={0}
69
- />
70
- </span>
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
- <SearchBar label={'검색어를 입력해주세요.'} onChange={handleInputChange} onClick={handleSearch} search={searchInput} placeholder={'검색어를 입력해주세요.'} isKeyPress={true} marginTop={[70, 50, 50]}/>
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
- <SearchBar
159
- label={'검색어를 입력해주세요.'}
160
- onChange={handleInputChange}
161
- onClick={handleSearch}
162
- search={searchInput}
163
- placeholder={'검색어를 입력해주세요.'}
164
- isKeyPress={true}
165
- marginTop={[70, 50, 50]}
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
- <SearchBar onChange={handleInputChange} onClick={handleClick} search={searchInput} placeholder={'검색어를 입력해주세요.'} isKeyPress={true} marginTop={[70, 50, 50]} label={'업무사례 검색창'}/>
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
- <SearchBar
49
- onChange={handleInputChange}
50
- onClick={handleClick}
51
- search={searchInput}
52
- placeholder={'검색어를 입력해주세요.'}
53
- isKeyPress={true}
54
- marginTop={[70, 50, 50]}
55
- label={'업무사례 검색창'}
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={
@@ -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
  }