@daeryun/dr_components 1.3.28 → 1.3.30

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.
@@ -9,4 +9,5 @@ export declare const ImgTypes: {
9
9
  readonly TREND: "trend";
10
10
  readonly FAQ: "faq";
11
11
  readonly LAWFIRM: "lawfirm";
12
+ readonly BLOG: "blog";
12
13
  };
@@ -8,5 +8,6 @@ export const ImgTypes = {
8
8
  SUCCESS: 'success',
9
9
  TREND: 'trend',
10
10
  FAQ: 'faq',
11
- LAWFIRM: 'lawfirm'
11
+ LAWFIRM: 'lawfirm',
12
+ BLOG: 'blog'
12
13
  };
@@ -8,5 +8,6 @@ export const ImgTypes = {
8
8
  SUCCESS: 'success',
9
9
  TREND: 'trend',
10
10
  FAQ: 'faq',
11
- LAWFIRM: 'lawfirm'
11
+ LAWFIRM: 'lawfirm',
12
+ BLOG: 'blog'
12
13
  } as const;
@@ -14,6 +14,7 @@ import replyImg from '../../asset/images/PageTitleBox/reply.webp';
14
14
  import successImg from '../../asset/images/PageTitleBox/success.webp';
15
15
  import trendImg from '../../asset/images/PageTitleBox/trend.webp';
16
16
  import faqImg from '../../asset/images/PageTitleBox/faq.webp';
17
+ import BlogImg from '../../asset/images/PageTitleBox/blog.webp';
17
18
  import lawfirmImg from '../../asset/images/PageTitleBox/lawfirm.webp';
18
19
  import archiveImgM from '../../asset/images/PageTitleBox/archive_m.webp';
19
20
  import broadcastImgM from '../../asset/images/PageTitleBox/broadcast_m.webp';
@@ -25,6 +26,7 @@ import successImgM from '../../asset/images/PageTitleBox/success_m.webp';
25
26
  import trendImgM from '../../asset/images/PageTitleBox/trend_m.webp';
26
27
  import faqImgM from '../../asset/images/PageTitleBox/faq_m.webp';
27
28
  import lawfirmImgM from '../../asset/images/PageTitleBox/lawfirm_m.webp';
29
+ import BlogImgM from '../../asset/images/PageTitleBox/blog_m.webp';
28
30
  import useBrowser from '../common/hook/useBrowser';
29
31
  const imageMap = {
30
32
  [ImgTypes.ARCHIVE]: archiveImg,
@@ -36,7 +38,8 @@ const imageMap = {
36
38
  [ImgTypes.SUCCESS]: successImg,
37
39
  [ImgTypes.TREND]: trendImg,
38
40
  [ImgTypes.FAQ]: faqImg,
39
- [ImgTypes.LAWFIRM]: lawfirmImg
41
+ [ImgTypes.LAWFIRM]: lawfirmImg,
42
+ [ImgTypes.BLOG]: BlogImg
40
43
  };
41
44
  const imageMapMobile = {
42
45
  [ImgTypes.ARCHIVE]: archiveImgM,
@@ -48,7 +51,8 @@ const imageMapMobile = {
48
51
  [ImgTypes.SUCCESS]: successImgM,
49
52
  [ImgTypes.TREND]: trendImgM,
50
53
  [ImgTypes.FAQ]: faqImgM,
51
- [ImgTypes.LAWFIRM]: lawfirmImgM
54
+ [ImgTypes.LAWFIRM]: lawfirmImgM,
55
+ [ImgTypes.BLOG]: BlogImgM
52
56
  };
53
57
  const PageTitleBox = ({ titleTxt, subTxt, imgType, isViewP, isSeo, isUseHeaderComponent, isWhiteText, isImgAlign }) => {
54
58
  var _a, _b;
@@ -16,6 +16,7 @@ import replyImg from '../../asset/images/PageTitleBox/reply.webp';
16
16
  import successImg from '../../asset/images/PageTitleBox/success.webp';
17
17
  import trendImg from '../../asset/images/PageTitleBox/trend.webp';
18
18
  import faqImg from '../../asset/images/PageTitleBox/faq.webp';
19
+ import BlogImg from '../../asset/images/PageTitleBox/blog.webp';
19
20
  import lawfirmImg from '../../asset/images/PageTitleBox/lawfirm.webp';
20
21
 
21
22
  import archiveImgM from '../../asset/images/PageTitleBox/archive_m.webp';
@@ -28,6 +29,8 @@ import successImgM from '../../asset/images/PageTitleBox/success_m.webp';
28
29
  import trendImgM from '../../asset/images/PageTitleBox/trend_m.webp';
29
30
  import faqImgM from '../../asset/images/PageTitleBox/faq_m.webp';
30
31
  import lawfirmImgM from '../../asset/images/PageTitleBox/lawfirm_m.webp';
32
+ import BlogImgM from '../../asset/images/PageTitleBox/blog_m.webp';
33
+
31
34
  import useBrowser from '../common/hook/useBrowser';
32
35
 
33
36
  export type ImgType = (typeof ImgTypes)[keyof typeof ImgTypes];
@@ -42,7 +45,8 @@ const imageMap: Record<ImgType, StaticImageData> = {
42
45
  [ImgTypes.SUCCESS]: successImg,
43
46
  [ImgTypes.TREND]: trendImg,
44
47
  [ImgTypes.FAQ]: faqImg,
45
- [ImgTypes.LAWFIRM]: lawfirmImg
48
+ [ImgTypes.LAWFIRM]: lawfirmImg,
49
+ [ImgTypes.BLOG]: BlogImg
46
50
  };
47
51
 
48
52
  const imageMapMobile: Record<ImgType, StaticImageData> = {
@@ -55,7 +59,8 @@ const imageMapMobile: Record<ImgType, StaticImageData> = {
55
59
  [ImgTypes.SUCCESS]: successImgM,
56
60
  [ImgTypes.TREND]: trendImgM,
57
61
  [ImgTypes.FAQ]: faqImgM,
58
- [ImgTypes.LAWFIRM]: lawfirmImgM
62
+ [ImgTypes.LAWFIRM]: lawfirmImgM,
63
+ [ImgTypes.BLOG]: BlogImgM
59
64
  };
60
65
 
61
66
  // 이미지 정렬 디테일
@@ -73,7 +73,7 @@ const TrendDetail = ({ data, tel }) => {
73
73
  return (<>
74
74
  <PageTitleBox titleTxt={'판결분석/최신동향'} subTxt={<>
75
75
  분야별 전문성을 갖춘 법무법인(유한) 대륜의 <br /> 판결과 법적이슈에 대한 분석을 전해드립니다.
76
- </>} imgType={ImgTypes.TREND} isViewP isSeo/>
76
+ </>} imgType={ImgTypes.TREND} isViewP isSeo isUseHeaderComponent/>
77
77
  <div id={'sub_contents'} ref={printRef} itemScope={isFaqActive ? undefined : true} itemType={isFaqActive ? undefined : 'https://schema.org/FAQPage'}>
78
78
  <div className="relative m-auto mb-[100px] w-[90%] max-w-screen-2xl max-md2:mb-[40px] max-xs:mb-[30px]">
79
79
  <div className={'m-auto mt-[100px] flex gap-[120px] ' +
@@ -109,6 +109,7 @@ const TrendDetail = ({ data, tel }: ITrendDetailPageTypes) => {
109
109
  imgType={ImgTypes.TREND}
110
110
  isViewP
111
111
  isSeo
112
+ isUseHeaderComponent
112
113
  />
113
114
  <div
114
115
  id={'sub_contents'}
@@ -49,7 +49,7 @@ const TrendList = ({ trend, page, size, search, count, tel }) => {
49
49
  return (<>
50
50
  <PageTitleBox titleTxt={'판결분석/최신동향'} subTxt={<>
51
51
  분야별 전문성을 갖춘 법무법인(유한) 대륜의 <br /> 판결과 법적이슈에 대한 분석을 전해드립니다.
52
- </>} imgType={ImgTypes.TREND}/>
52
+ </>} imgType={ImgTypes.TREND} isUseHeaderComponent/>
53
53
  <PageWrapper className={'mb-[200px] max-md:mb-[100px]'}>
54
54
  <div className="sticky top-[100px] z-[45] mb-[20px] bg-white pb-[2px] pt-4 max-md:top-[60px]">
55
55
  <SearchBar label={'판결분석 검색창'} onChange={e => {
@@ -69,6 +69,7 @@ const TrendList = ({ trend, page, size, search, count, tel }: ITrendListProps) =
69
69
  </>
70
70
  }
71
71
  imgType={ImgTypes.TREND}
72
+ isUseHeaderComponent
72
73
  />
73
74
  <PageWrapper className={'mb-[200px] max-md:mb-[100px]'}>
74
75
  <div className="sticky top-[100px] z-[45] mb-[20px] bg-white pb-[2px] pt-4 max-md:top-[60px]">