@daeryun/dr_components 1.1.43 → 1.1.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.
@@ -1,7 +1,6 @@
1
1
  'use client';
2
2
  import React, { useEffect, useRef, useState } from 'react';
3
3
  import { useRouter } from 'next/router';
4
- import classNames from 'classnames';
5
4
  import { PageWrapper, PdfPrintCopyLink } from '../../../index';
6
5
  import PostNavigation from '../../../postNavigation/PostNavigation';
7
6
  import TuiViewer from '../../../TuiViewer/TuiViewer';
@@ -49,14 +48,11 @@ const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr
49
48
  </div>
50
49
 
51
50
  <div className={styles.boxBody}>
52
- <div className={classNames({
53
- [styles.summary]: true,
54
- [styles.introduction]: true
55
- })}>
51
+ <div className={'px-[20px] ' + 'max-sm:px-[10px] '}>
56
52
  {fileList.map((file, index) => (<div key={index} style={{ marginBottom: '50px' }}>
57
53
  <img src={imagePath + file.file_path + '/' + file.save_file_name} className={styles.summaryImg} alt={file.file_alt}/>
58
54
  </div>))}
59
- {notice.gubun === 'ck' ? (<div id={'ck-content'} dangerouslySetInnerHTML={{
55
+ {notice.gubun === 'ck' ? (<div id={'ck-content'} className="py-[30px]" dangerouslySetInnerHTML={{
60
56
  __html: htmlUrlDecode(notice.contents.replace('../../UploadFile', '/SE2/upload'))
61
57
  }}/>) : (<TuiViewer initialValue={notice.contents.replace('../../UploadFile', '/SE2/upload')}/>)}
62
58
  </div>
@@ -89,12 +89,7 @@ const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr
89
89
  </div>
90
90
 
91
91
  <div className={styles.boxBody}>
92
- <div
93
- className={classNames({
94
- [styles.summary]: true,
95
- [styles.introduction]: true
96
- })}
97
- >
92
+ <div className={'px-[20px] ' + 'max-sm:px-[10px] '}>
98
93
  {fileList.map((file: FileData, index: number) => (
99
94
  <div key={index} style={{ marginBottom: '50px' }}>
100
95
  <img
@@ -107,6 +102,7 @@ const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr
107
102
  {notice.gubun === 'ck' ? (
108
103
  <div
109
104
  id={'ck-content'}
105
+ className="py-[30px]"
110
106
  dangerouslySetInnerHTML={{
111
107
  __html: htmlUrlDecode(notice.contents.replace('../../UploadFile', '/SE2/upload'))
112
108
  }}
@@ -41,14 +41,16 @@ export const Lawyer = ({ lawyerData }) => {
41
41
  </div>
42
42
  <span className={'flex flex-1 flex-col justify-between gap-[5px]'}>
43
43
  <span className={'relative flex w-full flex-col gap-[5px]'}>
44
- <meta itemProp="name" content={`${i.lawyer_name} ${i.lawyer_position}`}/>
45
- <p className={'text-[23px] font-bold leading-none tracking-[-0.46px] text-[#434343]'}>
46
- {i.lawyer_name}
44
+ <meta itemProp="name" content={`${i.lawyer_name} 변호사`}/>
45
+ <p className={'pr-[35px] text-[23px] font-bold leading-none tracking-[-0.46px] text-[#434343]'}>
46
+ {i.lawyer_name.includes('(')
47
+ ? i.lawyer_name.split('(')[1].replace(')', '')
48
+ : i.lawyer_name}
47
49
  </p>
48
50
  <p className={'text-[14px] font-medium leading-none tracking-[-0.4px] text-[#818181]'} itemProp="jobTitle">
49
51
  {i.lawyer_position}
50
52
  </p>
51
- {lawyerCode.find(code => code === i.lawyer_code) ? (<Link href={'https://www.daeryunlaw.com/mail?lawyer=' + i.lawyer_name} target={'_blank'} rel={'nofollow'} className={'absolute right-0 top-0 z-[11] block h-fit w-fit max-xl:right-[20px]'} aria-label={i.lawyer_name + '변호사에게 메일보내기'}>
53
+ {lawyerCode.find(code => code === i.lawyer_code) ? (<Link href={'https://www.daeryunlaw.com/mail?lawyer=' + i.lawyer_name} target={'_blank'} rel={'nofollow'} className={'absolute right-0 top-0 z-[11] block h-fit w-fit max-xl:right-[0px]'} aria-label={i.lawyer_name + '변호사에게 메일보내기'}>
52
54
  <Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/email_icon.webp'} alt={'이메일'} width={64} height={64} className={'w-[32px] max-lg:w-[28px] max-xs:w-[25px]'}/>
53
55
  </Link>) : (<></>)}
54
56
  </span>
@@ -91,9 +91,15 @@ export const Lawyer = ({ lawyerData }: { lawyerData: any[] }) => {
91
91
  </div>
92
92
  <span className={'flex flex-1 flex-col justify-between gap-[5px]'}>
93
93
  <span className={'relative flex w-full flex-col gap-[5px]'}>
94
- <meta itemProp="name" content={`${i.lawyer_name} ${i.lawyer_position}`} />
95
- <p className={'text-[23px] font-bold leading-none tracking-[-0.46px] text-[#434343]'}>
96
- {i.lawyer_name}
94
+ <meta itemProp="name" content={`${i.lawyer_name} 변호사`} />
95
+ <p
96
+ className={
97
+ 'pr-[35px] text-[23px] font-bold leading-none tracking-[-0.46px] text-[#434343]'
98
+ }
99
+ >
100
+ {i.lawyer_name.includes('(')
101
+ ? i.lawyer_name.split('(')[1].replace(')', '')
102
+ : i.lawyer_name}
97
103
  </p>
98
104
  <p
99
105
  className={'text-[14px] font-medium leading-none tracking-[-0.4px] text-[#818181]'}
@@ -106,9 +112,7 @@ export const Lawyer = ({ lawyerData }: { lawyerData: any[] }) => {
106
112
  href={'https://www.daeryunlaw.com/mail?lawyer=' + i.lawyer_name}
107
113
  target={'_blank'}
108
114
  rel={'nofollow'}
109
- className={
110
- 'absolute right-0 top-0 z-[11] block h-fit w-fit max-xl:right-[20px]'
111
- }
115
+ className={'absolute right-0 top-0 z-[11] block h-fit w-fit max-xl:right-[0px]'}
112
116
  aria-label={i.lawyer_name + '변호사에게 메일보내기'}
113
117
  >
114
118
  <Image