@daeryun/dr_components 0.8.43 → 0.8.45

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.
@@ -3,12 +3,28 @@ import Link from 'next/link';
3
3
  import Image from 'next/image';
4
4
  import btnImg from '../../asset/images/BrochureBtn/download_btn.webp';
5
5
  const BrochureBtn = (props) => {
6
+ var _a, _b;
6
7
  const { rounded = true, width = '100%', height = '100%', className = '', type = 'comp' } = props;
7
- const downloadUrl_comp = 'https://d1tgonli21s4df.cloudfront.net/comp/daeryunBrochure.pdf';
8
- const downloadUrl_estate = 'https://d1tgonli21s4df.cloudfront.net/estate-group/daeryunBrochure_estate.pdf';
9
- const link = type === 'comp' ? downloadUrl_comp : type === 'estate' ? downloadUrl_estate : '';
10
- const text = type === 'comp' ? '기업법무 브로슈어' : type === 'estate' ? '건설부동산그룹 브로슈어' : '';
11
- return (<Link href={link} rel={'nofollow'} target={'_blank'} style={{
8
+ const brochureMap = {
9
+ comp: {
10
+ text: '기업법무 브로슈어',
11
+ link: 'https://d1tgonli21s4df.cloudfront.net/comp/daeryunBrochure.pdf'
12
+ },
13
+ estate: {
14
+ text: '건설부동산그룹 브로슈어',
15
+ link: 'https://d1tgonli21s4df.cloudfront.net/estate-group/daeryunBrochure_estate.pdf'
16
+ },
17
+ military: {
18
+ text: '국방군사그룹 브로슈어',
19
+ link: 'https://d1tgonli21s4df.cloudfront.net/military/military_group_intro.pdf'
20
+ },
21
+ guard: {
22
+ text: '경호센터 브로슈어',
23
+ link: 'https://d1tgonli21s4df.cloudfront.net/guard/daeryunBrochure_guard.pdf'
24
+ }
25
+ };
26
+ const brochure = brochureMap[type];
27
+ return (<Link href={(_a = brochure.link) !== null && _a !== void 0 ? _a : '#'} rel={'nofollow'} target={'_blank'} style={{
12
28
  width: width,
13
29
  height: height,
14
30
  borderRadius: rounded ? '1000px' : '0'
@@ -25,7 +41,7 @@ const BrochureBtn = (props) => {
25
41
  Brochure <span className={'font-[800]'}>download</span>
26
42
  </p>
27
43
  <p className={'text-[14px] font-[800] leading-none max-[590px]:text-[13px] max-xs:text-[14px]'}>
28
- {text}
44
+ {(_b = brochure.text) !== null && _b !== void 0 ? _b : ''}
29
45
  </p>
30
46
  </span>
31
47
  </Link>);
@@ -7,7 +7,7 @@ const meta = {
7
7
  argTypes: {
8
8
  type: {
9
9
  control: 'select',
10
- options: ['comp', 'estate']
10
+ options: ['comp', 'estate', 'military', 'guard']
11
11
  }
12
12
  }
13
13
  };
@@ -10,7 +10,7 @@ const meta = {
10
10
  argTypes: {
11
11
  type: {
12
12
  control: 'select',
13
- options: ['comp', 'estate']
13
+ options: ['comp', 'estate', 'military', 'guard']
14
14
  }
15
15
  }
16
16
  } satisfies Meta<typeof BrochureBtn>;
@@ -11,15 +11,31 @@ const BrochureBtn = (props: {
11
11
  type?: string;
12
12
  }) => {
13
13
  const { rounded = true, width = '100%', height = '100%', className = '', type = 'comp' } = props;
14
- const downloadUrl_comp = 'https://d1tgonli21s4df.cloudfront.net/comp/daeryunBrochure.pdf';
15
- const downloadUrl_estate = 'https://d1tgonli21s4df.cloudfront.net/estate-group/daeryunBrochure_estate.pdf';
16
14
 
17
- const link = type === 'comp' ? downloadUrl_comp : type === 'estate' ? downloadUrl_estate : '';
18
- const text = type === 'comp' ? '기업법무 브로슈어' : type === 'estate' ? '건설부동산그룹 브로슈어' : '';
15
+ const brochureMap: Record<string, { text: string; link: string }> = {
16
+ comp: {
17
+ text: '기업법무 브로슈어',
18
+ link: 'https://d1tgonli21s4df.cloudfront.net/comp/daeryunBrochure.pdf'
19
+ },
20
+ estate: {
21
+ text: '건설부동산그룹 브로슈어',
22
+ link: 'https://d1tgonli21s4df.cloudfront.net/estate-group/daeryunBrochure_estate.pdf'
23
+ },
24
+ military: {
25
+ text: '국방군사그룹 브로슈어',
26
+ link: 'https://d1tgonli21s4df.cloudfront.net/military/military_group_intro.pdf'
27
+ },
28
+ guard: {
29
+ text: '경호센터 브로슈어',
30
+ link: 'https://d1tgonli21s4df.cloudfront.net/guard/daeryunBrochure_guard.pdf'
31
+ }
32
+ };
33
+
34
+ const brochure = brochureMap[type];
19
35
 
20
36
  return (
21
37
  <Link
22
- href={link}
38
+ href={brochure.link ?? '#'}
23
39
  rel={'nofollow'}
24
40
  target={'_blank'}
25
41
  style={{
@@ -53,7 +69,7 @@ const BrochureBtn = (props: {
53
69
  Brochure <span className={'font-[800]'}>download</span>
54
70
  </p>
55
71
  <p className={'text-[14px] font-[800] leading-none max-[590px]:text-[13px] max-xs:text-[14px]'}>
56
- {text}
72
+ {brochure.text ?? ''}
57
73
  </p>
58
74
  </span>
59
75
  </Link>
@@ -78,8 +78,10 @@ const LawInfoNew = ({ data, tel }) => {
78
78
  <div id={'sub_contents'}>
79
79
  <div className="font-[SUIT]] relative m-auto mb-[60px] w-[90%] max-w-screen-2xl max-xs:mb-[30px]">
80
80
  <div className={'m-auto mt-[100px] flex gap-[120px] lg:mt-[5em] ' +
81
+ //1700px
82
+ 'max-5xl:gap-[80px] ' +
81
83
  //1500px
82
- 'max-3xl:gap-[80px] ' +
84
+ 'max-3xl:gap-10 ' +
83
85
  //1280px
84
86
  'max-xl:mt-0 max-xl:flex-col max-xl:gap-0 ' +
85
87
  //600px
@@ -88,7 +90,7 @@ const LawInfoNew = ({ data, tel }) => {
88
90
  {template && width < 1280 ? (<PdfPrintCopyLink fileName={template.filter(t => t.tag === 'h1')[0].tag_title} printRef={printRef}/>) : null}
89
91
  <div className={'max-xl:mt-[25px] max-xs:mt-[15px]'}>
90
92
  {/* h1 제목 */}
91
- <h1 className={'break-keep text-[52.5px] font-[800] tracking-[-2.1px] text-[#285FA7] max-3xl:text-5xl max-md:text-4xl max-xs:text-[28px]'}>
93
+ <h1 className={'text-[52.5px] font-[800] tracking-[-2.1px] text-[#285FA7] max-3xl:text-5xl max-md:text-4xl max-xs:text-[28px]'}>
92
94
  {h1Title}
93
95
  </h1>
94
96
 
@@ -171,10 +173,10 @@ const LawInfoNew = ({ data, tel }) => {
171
173
  <Image src={Arrow} alt={'화살표'} title={'화살표'} width={15} height={15} className={'m-auto hidden lg:block'}/>
172
174
  <p className={'text-[18px] text-[#285FA7]'}>이전글</p>
173
175
  {prevPost ? (<Link href={prevPost ? prevPost.pathname + String(prevPost.idx) : '#'}>
174
- <p className={'w-full truncate text-[16px] xs:text-[18px] lg:w-[16em] lg2:w-[18em] xxl:w-[20em] xxl:text-[20px] '}>
176
+ <p className={'w-full truncate text-[16px] xs:text-[18px] lg:w-[14em] lg2:w-[18em] xxl:w-[18em] xxl:text-[20px] 5xl:w-[20em] '}>
175
177
  {prevPost.title}
176
178
  </p>
177
- </Link>) : (<p className={'truncate md:w-[11em] lg:w-[14em] lg2:w-[18em] '}>
179
+ </Link>) : (<p className={'truncate text-[16px] xs:text-[18px] lg:w-[14em] lg2:w-[18em] xxl:w-[18em] xxl:text-[20px] 5xl:w-[20em] '}>
178
180
  이전글이 없습니다.
179
181
  </p>)}
180
182
  </div>
@@ -188,10 +190,10 @@ const LawInfoNew = ({ data, tel }) => {
188
190
  <div className={'flex w-full flex-col justify-end gap-[8px] lg:w-auto lg:flex-row lg:items-center lg:gap-[20px] lg2:gap-[28px]'}>
189
191
  <p className={'text-[18px] text-[#285FA7]'}>다음글</p>
190
192
  {nextPost ? (<Link href={nextPost ? nextPost.pathname + String(nextPost.idx) : '#'}>
191
- <p className={'w-full truncate text-[16px] xs:text-[18px] lg:w-[16em] lg2:w-[18em] xxl:w-[20em] xxl:text-[20px] '}>
193
+ <p className={'w-full truncate text-[16px] xs:text-[18px] lg:w-[14em] lg2:w-[18em] xxl:w-[18em] xxl:text-[20px] 5xl:w-[20em] '}>
192
194
  {nextPost.title}
193
195
  </p>
194
- </Link>) : (<p className={'truncate md:w-[11em] lg:w-[14em] lg2:w-[18em] '}>
196
+ </Link>) : (<p className={'truncate text-[16px] xs:text-[18px] lg:w-[14em] lg2:w-[18em] xxl:w-[18em] xxl:text-[20px] 5xl:w-[20em]'}>
195
197
  다음글이 없습니다.
196
198
  </p>)}
197
199
  <Image src={RightArrow} alt={'화살표'} title={'화살표'} width={15} height={15} className={'m-auto hidden lg:block'}/>
@@ -112,8 +112,10 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
112
112
  <div
113
113
  className={
114
114
  'm-auto mt-[100px] flex gap-[120px] lg:mt-[5em] ' +
115
+ //1700px
116
+ 'max-5xl:gap-[80px] ' +
115
117
  //1500px
116
- 'max-3xl:gap-[80px] ' +
118
+ 'max-3xl:gap-10 ' +
117
119
  //1280px
118
120
  'max-xl:mt-0 max-xl:flex-col max-xl:gap-0 ' +
119
121
  //600px
@@ -131,7 +133,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
131
133
  {/* h1 제목 */}
132
134
  <h1
133
135
  className={
134
- 'break-keep text-[52.5px] font-[800] tracking-[-2.1px] text-[#285FA7] max-3xl:text-5xl max-md:text-4xl max-xs:text-[28px]'
136
+ 'text-[52.5px] font-[800] tracking-[-2.1px] text-[#285FA7] max-3xl:text-5xl max-md:text-4xl max-xs:text-[28px]'
135
137
  }
136
138
  >
137
139
  {h1Title}
@@ -315,14 +317,18 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
315
317
  <Link href={prevPost ? prevPost.pathname + String(prevPost.idx) : '#'}>
316
318
  <p
317
319
  className={
318
- 'w-full truncate text-[16px] xs:text-[18px] lg:w-[16em] lg2:w-[18em] xxl:w-[20em] xxl:text-[20px] '
320
+ 'w-full truncate text-[16px] xs:text-[18px] lg:w-[14em] lg2:w-[18em] xxl:w-[18em] xxl:text-[20px] 5xl:w-[20em] '
319
321
  }
320
322
  >
321
323
  {prevPost.title}
322
324
  </p>
323
325
  </Link>
324
326
  ) : (
325
- <p className={'truncate md:w-[11em] lg:w-[14em] lg2:w-[18em] '}>
327
+ <p
328
+ className={
329
+ 'truncate text-[16px] xs:text-[18px] lg:w-[14em] lg2:w-[18em] xxl:w-[18em] xxl:text-[20px] 5xl:w-[20em] '
330
+ }
331
+ >
326
332
  이전글이 없습니다.
327
333
  </p>
328
334
  )}
@@ -348,14 +354,18 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
348
354
  <Link href={nextPost ? nextPost.pathname + String(nextPost.idx) : '#'}>
349
355
  <p
350
356
  className={
351
- 'w-full truncate text-[16px] xs:text-[18px] lg:w-[16em] lg2:w-[18em] xxl:w-[20em] xxl:text-[20px] '
357
+ 'w-full truncate text-[16px] xs:text-[18px] lg:w-[14em] lg2:w-[18em] xxl:w-[18em] xxl:text-[20px] 5xl:w-[20em] '
352
358
  }
353
359
  >
354
360
  {nextPost.title}
355
361
  </p>
356
362
  </Link>
357
363
  ) : (
358
- <p className={'truncate md:w-[11em] lg:w-[14em] lg2:w-[18em] '}>
364
+ <p
365
+ className={
366
+ 'truncate text-[16px] xs:text-[18px] lg:w-[14em] lg2:w-[18em] xxl:w-[18em] xxl:text-[20px] 5xl:w-[20em]'
367
+ }
368
+ >
359
369
  다음글이 없습니다.
360
370
  </p>
361
371
  )}
@@ -9554,10 +9554,6 @@ body {
9554
9554
  gap: 60px;
9555
9555
  }
9556
9556
 
9557
- .max-3xl\:gap-\[80px\] {
9558
- gap: 80px;
9559
- }
9560
-
9561
9557
  .max-3xl\:gap-x-2 {
9562
9558
  -moz-column-gap: 0.5rem;
9563
9559
  column-gap: 0.5rem;
@@ -17088,10 +17084,6 @@ body {
17088
17084
  width: 15.93%;
17089
17085
  }
17090
17086
 
17091
- .lg\:w-\[16em\] {
17092
- width: 16em;
17093
- }
17094
-
17095
17087
  .lg\:w-\[16px\] {
17096
17088
  width: 16px;
17097
17089
  }
@@ -17710,10 +17702,6 @@ body {
17710
17702
  width: 18em;
17711
17703
  }
17712
17704
 
17713
- .xxl\:w-\[20em\] {
17714
- width: 20em;
17715
- }
17716
-
17717
17705
  .xxl\:w-\[21\.43\%\] {
17718
17706
  width: 21.43%;
17719
17707
  }