@daeryun/dr_components 0.5.62 → 0.5.64

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.
@@ -5,7 +5,7 @@ import Link from 'next/link';
5
5
  import IconHome from '../../asset/images/categoryMenu/House.svg';
6
6
  import IconArrow from '../../asset/images/categoryMenu/right_arrow.svg';
7
7
  import { categoryMenuName } from '../../lib';
8
- import { usePathname, useRouter } from 'next/navigation';
8
+ import { usePathname } from 'next/navigation';
9
9
 
10
10
  type CategoryMenuType = {
11
11
  className?: string;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  const SubPageTitle = (props) => {
3
3
  return (<div className={props.tailwindStyle ? props.tailwindStyle : ''}>
4
4
  <section className={'relative mx-auto flex w-full flex-row items-center justify-between '}>
5
- {props.isViewP ? (<p className={'relative block font-[SUIT] text-6xl font-[800] tracking-[-1.5px] ' +
5
+ {props.isViewP ? (<p className={'relative block font-[SUIT] text-[56px] font-[800] leading-[1.2] tracking-[-1.5px] ' +
6
6
  (props.isRed ? ' after:bg-mainRed ' : ' after:bg-[#285FA7] ') +
7
7
  //1500px
8
8
  'max-3xl:text-5xl max-3xl:after:right-[-20px] max-3xl:after:top-[-15px] max-3xl:after:h-[15px] max-3xl:after:w-[15px] ' +
@@ -11,7 +11,7 @@ const SubPageTitle = (props) => {
11
11
  //325px
12
12
  'max-3xs:text-[28px] max-3xs:after:right-[-15px] max-3xs:after:top-[-3px] max-3xs:after:h-[10px] max-3xs:after:w-[10px]'}>
13
13
  {props.titleTxt}
14
- </p>) : (<h1 className={'relative block font-[SUIT] text-6xl font-[800] tracking-[-1.5px] ' +
14
+ </p>) : (<h1 className={'relative block font-[SUIT] text-[56px] font-[800] leading-[1.2] tracking-[-1.5px] ' +
15
15
  (props.isRed ? ' after:bg-mainRed ' : ' after:bg-[#285FA7] ') +
16
16
  //1500px
17
17
  'max-3xl:text-5xl max-3xl:after:right-[-20px] max-3xl:after:top-[-15px] max-3xl:after:h-[15px] max-3xl:after:w-[15px] ' +
@@ -23,9 +23,9 @@ const SubPageTitle = (props) => {
23
23
  {props.titleTxt}
24
24
  </h1>)}
25
25
  </section>
26
- {props.subTxt ? (<div className={'mt-[17px] break-keep text-[26px] leading-[1.35] tracking-[-0.7px] text-[#58595B] ' +
26
+ {props.subTxt ? (<div className={'mt-[17px] text-[24px] leading-[1.4] tracking-[-0.7px] text-[#58595B] ' +
27
27
  //1500px
28
- 'max-3xl:text-[24px] ' +
28
+ 'max-3xl:text-[22px] ' +
29
29
  //768px
30
30
  'max-md:mt-[10px] max-md:text-[16px] ' +
31
31
  //325px
@@ -16,7 +16,7 @@ const SubPageTitle = (props: {
16
16
  {props.isViewP ? (
17
17
  <p
18
18
  className={
19
- 'relative block font-[SUIT] text-6xl font-[800] tracking-[-1.5px] ' +
19
+ 'relative block font-[SUIT] text-[56px] font-[800] leading-[1.2] tracking-[-1.5px] ' +
20
20
  (props.isRed ? ' after:bg-mainRed ' : ' after:bg-[#285FA7] ') +
21
21
  //1500px
22
22
  'max-3xl:text-5xl max-3xl:after:right-[-20px] max-3xl:after:top-[-15px] max-3xl:after:h-[15px] max-3xl:after:w-[15px] ' +
@@ -31,7 +31,7 @@ const SubPageTitle = (props: {
31
31
  ) : (
32
32
  <h1
33
33
  className={
34
- 'relative block font-[SUIT] text-6xl font-[800] tracking-[-1.5px] ' +
34
+ 'relative block font-[SUIT] text-[56px] font-[800] leading-[1.2] tracking-[-1.5px] ' +
35
35
  (props.isRed ? ' after:bg-mainRed ' : ' after:bg-[#285FA7] ') +
36
36
  //1500px
37
37
  'max-3xl:text-5xl max-3xl:after:right-[-20px] max-3xl:after:top-[-15px] max-3xl:after:h-[15px] max-3xl:after:w-[15px] ' +
@@ -49,9 +49,9 @@ const SubPageTitle = (props: {
49
49
  {props.subTxt ? (
50
50
  <div
51
51
  className={
52
- 'mt-[17px] break-keep text-[26px] leading-[1.35] tracking-[-0.7px] text-[#58595B] ' +
52
+ 'mt-[17px] text-[24px] leading-[1.4] tracking-[-0.7px] text-[#58595B] ' +
53
53
  //1500px
54
- 'max-3xl:text-[24px] ' +
54
+ 'max-3xl:text-[22px] ' +
55
55
  //768px
56
56
  'max-md:mt-[10px] max-md:text-[16px] ' +
57
57
  //325px
@@ -1,7 +1,7 @@
1
1
  export function categoryMenuName({ url }) {
2
2
  const NEXT_PUBLIC_KEYWORD = process.env.NEXT_PUBLIC_KEYWORD;
3
3
  const NEXT_PUBLIC_GROUPNAME = process.env.NEXT_PUBLIC_GROUPNAME;
4
- const CENTER_CODE = process.env.CENTER_CODE;
4
+ const allUrl = window.location.href;
5
5
  if (url.includes('/broadcast')) {
6
6
  return {
7
7
  title: '소식/자료',
@@ -11,9 +11,9 @@ export function categoryMenuName({ url }) {
11
11
  }
12
12
  else if (url.includes('/greeting')) {
13
13
  return {
14
- title: CENTER_CODE === 'CT0028'
14
+ title: allUrl.includes('debtcollection')
15
15
  ? '대륜소개'
16
- : CENTER_CODE === 'CT0023' || CENTER_CODE === 'CT0022'
16
+ : allUrl.includes('consulting') || allUrl.includes('mergers')
17
17
  ? '센터소개'
18
18
  : '그룹소개',
19
19
  subTitle: '비전',
@@ -38,7 +38,7 @@ export function categoryMenuName({ url }) {
38
38
  else if (url.includes('/success')) {
39
39
  return {
40
40
  title: '업무사례',
41
- subTitle: (CENTER_CODE === 'CT0005' ? '이혼변호사 ' : '') + '업무사례',
41
+ subTitle: (allUrl.includes('divorce') ? '이혼변호사 ' : '') + '업무사례',
42
42
  address: 'success'
43
43
  };
44
44
  }
@@ -48,7 +48,7 @@ export function categoryMenuName({ url }) {
48
48
  else if (url.includes('/reply')) {
49
49
  return {
50
50
  title: '업무사례',
51
- subTitle: CENTER_CODE === 'CT0005' ? '이혼소송·상담후기' : '고객후기',
51
+ subTitle: allUrl.includes('divorce') ? '이혼소송·상담후기' : '고객후기',
52
52
  address: 'reply'
53
53
  };
54
54
  }
@@ -58,7 +58,7 @@ export function categoryMenuName({ url }) {
58
58
  else if (url.includes('/youtube')) {
59
59
  return {
60
60
  title: 'SNS',
61
- subTitle: (CENTER_CODE === 'CT0005' ? '이혼변호사 ' : '') + '유튜브',
61
+ subTitle: (allUrl.includes('divorce') ? '이혼변호사 ' : '') + '유튜브',
62
62
  address: 'youtube'
63
63
  };
64
64
  }
@@ -68,7 +68,7 @@ export function categoryMenuName({ url }) {
68
68
  else if (url.includes('/choice')) {
69
69
  return {
70
70
  title: '대륜법률상담예약',
71
- subTitle: (CENTER_CODE === 'CT0005' ? '이혼전문 ' : '') + '법률상담접수',
71
+ subTitle: (allUrl.includes('divorce') ? '이혼전문 ' : '') + '법률상담접수',
72
72
  address: 'choice'
73
73
  };
74
74
  }
@@ -115,10 +115,18 @@ export function categoryMenuName({ url }) {
115
115
  return { title: '업무분야', subTitle: `업무분야`, address: 'field_new' };
116
116
  }
117
117
  else if (url.includes('/info')) {
118
- return { title: '업무사례', subTitle: (CENTER_CODE === 'CT0005' ? '이혼 ' : '') + '법률정보', address: 'info' };
118
+ return {
119
+ title: '업무사례',
120
+ subTitle: (allUrl.includes('divorce') ? '이혼 ' : '') + '법률정보',
121
+ address: 'info'
122
+ };
119
123
  }
120
124
  else if (url.includes('/lawInfo_new')) {
121
- return { title: '법률정보', subTitle: (CENTER_CODE === 'CT0005' ? '이혼 ' : '') + '법률정보', address: 'info' };
125
+ return {
126
+ title: '법률정보',
127
+ subTitle: (allUrl.includes('divorce') ? '이혼 ' : '') + '법률정보',
128
+ address: 'info'
129
+ };
122
130
  }
123
131
  else if (url.includes('/intro')) {
124
132
  return { title: '그룹소개', subTitle: '소개', address: 'intro' };
@@ -129,13 +137,13 @@ export function categoryMenuName({ url }) {
129
137
  else if (url.includes('/calculation')) {
130
138
  return {
131
139
  title: '업무분야',
132
- subTitle: CENTER_CODE === 'CT0005'
140
+ subTitle: allUrl.includes('divorce')
133
141
  ? '이혼 양육비계산기'
134
- : CENTER_CODE === 'CT0010'
142
+ : allUrl.includes('regener')
135
143
  ? '개인회생·개인파산 신청자격 사전검토'
136
- : CENTER_CODE === 'CT0006'
144
+ : allUrl.includes('inherit')
137
145
  ? '상속재산계산기(법정상속분)'
138
- : CENTER_CODE === 'CT0013'
146
+ : allUrl.includes('drug')
139
147
  ? '마약범죄 사전검토'
140
148
  : '',
141
149
  address: 'calculation'
@@ -5,7 +5,7 @@ export function categoryMenuName({ url }: { url: string }): {
5
5
  } {
6
6
  const NEXT_PUBLIC_KEYWORD = process.env.NEXT_PUBLIC_KEYWORD;
7
7
  const NEXT_PUBLIC_GROUPNAME = process.env.NEXT_PUBLIC_GROUPNAME;
8
- const CENTER_CODE = process.env.CENTER_CODE;
8
+ const allUrl = window.location.href;
9
9
 
10
10
  if (url.includes('/broadcast')) {
11
11
  return {
@@ -15,12 +15,11 @@ export function categoryMenuName({ url }: { url: string }): {
15
15
  };
16
16
  } else if (url.includes('/greeting')) {
17
17
  return {
18
- title:
19
- CENTER_CODE === 'CT0028'
20
- ? '대륜소개'
21
- : CENTER_CODE === 'CT0023' || CENTER_CODE === 'CT0022'
22
- ? '센터소개'
23
- : '그룹소개',
18
+ title: allUrl.includes('debtcollection')
19
+ ? '대륜소개'
20
+ : allUrl.includes('consulting') || allUrl.includes('mergers')
21
+ ? '센터소개'
22
+ : '그룹소개',
24
23
  subTitle: '비전',
25
24
  address: 'greeting'
26
25
  };
@@ -37,7 +36,7 @@ export function categoryMenuName({ url }: { url: string }): {
37
36
  } else if (url.includes('/success')) {
38
37
  return {
39
38
  title: '업무사례',
40
- subTitle: (CENTER_CODE === 'CT0005' ? '이혼변호사 ' : '') + '업무사례',
39
+ subTitle: (allUrl.includes('divorce') ? '이혼변호사 ' : '') + '업무사례',
41
40
  address: 'success'
42
41
  };
43
42
  } else if (url.includes('/archive')) {
@@ -45,7 +44,7 @@ export function categoryMenuName({ url }: { url: string }): {
45
44
  } else if (url.includes('/reply')) {
46
45
  return {
47
46
  title: '업무사례',
48
- subTitle: CENTER_CODE === 'CT0005' ? '이혼소송·상담후기' : '고객후기',
47
+ subTitle: allUrl.includes('divorce') ? '이혼소송·상담후기' : '고객후기',
49
48
  address: 'reply'
50
49
  };
51
50
  } else if (url.includes('/kin')) {
@@ -53,7 +52,7 @@ export function categoryMenuName({ url }: { url: string }): {
53
52
  } else if (url.includes('/youtube')) {
54
53
  return {
55
54
  title: 'SNS',
56
- subTitle: (CENTER_CODE === 'CT0005' ? '이혼변호사 ' : '') + '유튜브',
55
+ subTitle: (allUrl.includes('divorce') ? '이혼변호사 ' : '') + '유튜브',
57
56
  address: 'youtube'
58
57
  };
59
58
  } else if (url.includes('/lawyer')) {
@@ -61,7 +60,7 @@ export function categoryMenuName({ url }: { url: string }): {
61
60
  } else if (url.includes('/choice')) {
62
61
  return {
63
62
  title: '대륜법률상담예약',
64
- subTitle: (CENTER_CODE === 'CT0005' ? '이혼전문 ' : '') + '법률상담접수',
63
+ subTitle: (allUrl.includes('divorce') ? '이혼전문 ' : '') + '법률상담접수',
65
64
  address: 'choice'
66
65
  };
67
66
  } else if (url.includes('/consulting')) {
@@ -93,9 +92,17 @@ export function categoryMenuName({ url }: { url: string }): {
93
92
  } else if (url.includes('/field_new')) {
94
93
  return { title: '업무분야', subTitle: `업무분야`, address: 'field_new' };
95
94
  } else if (url.includes('/info')) {
96
- return { title: '업무사례', subTitle: (CENTER_CODE === 'CT0005' ? '이혼 ' : '') + '법률정보', address: 'info' };
95
+ return {
96
+ title: '업무사례',
97
+ subTitle: (allUrl.includes('divorce') ? '이혼 ' : '') + '법률정보',
98
+ address: 'info'
99
+ };
97
100
  } else if (url.includes('/lawInfo_new')) {
98
- return { title: '법률정보', subTitle: (CENTER_CODE === 'CT0005' ? '이혼 ' : '') + '법률정보', address: 'info' };
101
+ return {
102
+ title: '법률정보',
103
+ subTitle: (allUrl.includes('divorce') ? '이혼 ' : '') + '법률정보',
104
+ address: 'info'
105
+ };
99
106
  } else if (url.includes('/intro')) {
100
107
  return { title: '그룹소개', subTitle: '소개', address: 'intro' };
101
108
  } else if (url.includes('/selfcheck')) {
@@ -103,16 +110,15 @@ export function categoryMenuName({ url }: { url: string }): {
103
110
  } else if (url.includes('/calculation')) {
104
111
  return {
105
112
  title: '업무분야',
106
- subTitle:
107
- CENTER_CODE === 'CT0005'
108
- ? '이혼 양육비계산기'
109
- : CENTER_CODE === 'CT0010'
110
- ? '개인회생·개인파산 신청자격 사전검토'
111
- : CENTER_CODE === 'CT0006'
112
- ? '상속재산계산기(법정상속분)'
113
- : CENTER_CODE === 'CT0013'
114
- ? '마약범죄 사전검토'
115
- : '',
113
+ subTitle: allUrl.includes('divorce')
114
+ ? '이혼 양육비계산기'
115
+ : allUrl.includes('regener')
116
+ ? '개인회생·개인파산 신청자격 사전검토'
117
+ : allUrl.includes('inherit')
118
+ ? '상속재산계산기(법정상속분)'
119
+ : allUrl.includes('drug')
120
+ ? '마약범죄 사전검토'
121
+ : '',
116
122
  address: 'calculation'
117
123
  };
118
124
  } else if (url.includes('/solatium')) {
@@ -4546,11 +4546,6 @@ video {
4546
4546
  line-height: 2.25rem;
4547
4547
  }
4548
4548
 
4549
- .text-6xl {
4550
- font-size: 3.75rem;
4551
- line-height: 1;
4552
- }
4553
-
4554
4549
  .text-\[1\.2rem\] {
4555
4550
  font-size: 1.2rem;
4556
4551
  }