@daeryun/dr_components 0.8.57 → 0.8.59
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.
- package/dist/components/Daeryuntalk/ChatHomeView.jsx +1 -2
- package/dist/components/Daeryuntalk/ChatHomeView.tsx +1 -2
- package/dist/components/Daeryuntalk/ChatWidget.jsx +0 -1
- package/dist/components/Daeryuntalk/ChatWidget.tsx +0 -1
- package/dist/components/Daeryuntalk/Viewer/MobileViewer.jsx +2 -2
- package/dist/components/Daeryuntalk/Viewer/MobileViewer.tsx +2 -2
- package/dist/components/Daeryuntalk/Viewer/TbPcViewer.jsx +1 -1
- package/dist/components/Daeryuntalk/Viewer/TbPcViewer.tsx +1 -1
- package/dist/components/Daeryuntalk/_api/daeryuntalk/index.js +5 -5
- package/dist/components/Daeryuntalk/_api/daeryuntalk/index.ts +6 -5
- package/dist/components/page/FieldNew/FieldNew.jsx +1 -1
- package/dist/components/page/FieldNew/FieldNew.tsx +1 -1
- package/dist/components/page/FieldNew/FieldNewView.jsx +1 -1
- package/dist/components/page/FieldNew/FieldNewView.tsx +1 -1
- package/dist/components/page/LawInfoNew/LawInfoNew.jsx +1 -1
- package/dist/components/page/LawInfoNew/LawInfoNew.tsx +1 -1
- package/dist/components/page/LawInfoNew/LawInfoNewView.jsx +1 -1
- package/dist/components/page/LawInfoNew/LawInfoNewView.tsx +1 -1
- package/dist/components/page/SuccessNew/SuccessNew.jsx +1 -1
- package/dist/components/page/SuccessNew/SuccessNew.tsx +1 -1
- package/dist/components/page/SuccessNew/SuccessNewView.jsx +1 -1
- package/dist/components/page/SuccessNew/SuccessNewView.tsx +1 -1
- package/dist/components/page/SuccessNew/components/Lawyer.d.ts +4 -0
- package/dist/components/page/SuccessNew/components/Lawyer.jsx +66 -0
- package/dist/components/page/SuccessNew/components/Lawyer.tsx +150 -0
- package/dist/styles/globals.css +4 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -76,9 +76,8 @@ const ChatHomeView = ({ hashValue, onClose, isMobile, isHash }) => {
|
|
|
76
76
|
`}
|
|
77
77
|
|
|
78
78
|
`}>
|
|
79
|
-
<div className="flex h-full flex-col">
|
|
79
|
+
<div className="flex h-full flex-col ">
|
|
80
80
|
<div className="flex-1 overflow-hidden">{content}</div>
|
|
81
|
-
|
|
82
81
|
<NavigationFooter activeView={activeView} onHomeClick={handleBackToHome} onHistoryClick={handleHistoryClick} historyList={historyList} isAuthenticated={isAuthenticated}/>
|
|
83
82
|
</div>
|
|
84
83
|
</div>
|
|
@@ -137,9 +137,8 @@ const ChatHomeView: React.FC<ChatHomeViewProps> = ({ hashValue, onClose, isMobil
|
|
|
137
137
|
|
|
138
138
|
`}
|
|
139
139
|
>
|
|
140
|
-
<div className="flex h-full flex-col">
|
|
140
|
+
<div className="flex h-full flex-col ">
|
|
141
141
|
<div className="flex-1 overflow-hidden">{content}</div>
|
|
142
|
-
|
|
143
142
|
<NavigationFooter
|
|
144
143
|
activeView={activeView}
|
|
145
144
|
onHomeClick={handleBackToHome}
|
|
@@ -72,7 +72,6 @@ const ChatWidget = ({ isOpen, isMobile, onClose, hashValue, setHashValue }) => {
|
|
|
72
72
|
{/*className={`${isMobile ? 'rounded-none' : 'rounded-[30px]'} no-scrollbar relative flex h-full items-center justify-center overflow-auto bg-white`}*/}
|
|
73
73
|
<ChatHomeView hashValue={hashValue} isMobile={isMobile} isHash={isHash} onClose={onClose}/>
|
|
74
74
|
</div>
|
|
75
|
-
<div className={``}></div>
|
|
76
75
|
|
|
77
76
|
{/*/!* 투명 그라데이션 그림자 표시 *!/*/}
|
|
78
77
|
{/*{isScroll && !isBottom && <ShadowBox />}*/}
|
|
@@ -99,7 +99,6 @@ const ChatWidget: React.FC<ChatWidgetProps> = ({ isOpen, isMobile, onClose, hash
|
|
|
99
99
|
{/*className={`${isMobile ? 'rounded-none' : 'rounded-[30px]'} no-scrollbar relative flex h-full items-center justify-center overflow-auto bg-white`}*/}
|
|
100
100
|
<ChatHomeView hashValue={hashValue} isMobile={isMobile} isHash={isHash} onClose={onClose} />
|
|
101
101
|
</div>
|
|
102
|
-
<div className={``}></div>
|
|
103
102
|
|
|
104
103
|
{/*/!* 투명 그라데이션 그림자 표시 *!/*/}
|
|
105
104
|
{/*{isScroll && !isBottom && <ShadowBox />}*/}
|
|
@@ -5,7 +5,7 @@ import DownloadIcon from '../../../asset/images/daeryuntalk/download.svg';
|
|
|
5
5
|
import Image from 'next/image';
|
|
6
6
|
import CloseIcon from '../../../asset/images/daeryuntalk/viewer/close.svg';
|
|
7
7
|
const MobileViewer = ({ imageViewerMessage, handleDownload, currentIndex, setCurrentIndex, currentImage, closeImageViewer, previewImages, setRotation, setZoomLevel }) => {
|
|
8
|
-
return (<div className={`
|
|
8
|
+
return (<div className={`md2:hidden`}>
|
|
9
9
|
<div className="flex h-[68px] w-full items-center justify-between bg-black/90 p-[20px] text-white">
|
|
10
10
|
<div className="flex w-[calc(100%-88px)] gap-[10px]">
|
|
11
11
|
<div className={`flex items-start gap-[10px] `}>
|
|
@@ -38,7 +38,7 @@ const MobileViewer = ({ imageViewerMessage, handleDownload, currentIndex, setCur
|
|
|
38
38
|
<div className={`mx-[20px] flex h-[calc(100dvh-68px-155px)] flex-col items-center justify-center overflow-auto`}>
|
|
39
39
|
{/* Main Image + Toolbar */}
|
|
40
40
|
<div className="group relative flex items-center justify-center overflow-auto">
|
|
41
|
-
<div className="relative h-auto w-full">
|
|
41
|
+
<div className="relative h-auto max-h-[500px] w-full">
|
|
42
42
|
<Image src={currentImage.url} alt={currentImage.file.name} width={500} height={500} className="h-auto w-full rounded-[20px] object-contain" unoptimized style={{
|
|
43
43
|
// maxWidth: '800px',
|
|
44
44
|
// maxHeight: '500px'
|
|
@@ -29,7 +29,7 @@ const MobileViewer = ({
|
|
|
29
29
|
setZoomLevel
|
|
30
30
|
}: IMobileViewerProps) => {
|
|
31
31
|
return (
|
|
32
|
-
<div className={`
|
|
32
|
+
<div className={`md2:hidden`}>
|
|
33
33
|
<div className="flex h-[68px] w-full items-center justify-between bg-black/90 p-[20px] text-white">
|
|
34
34
|
<div className="flex w-[calc(100%-88px)] gap-[10px]">
|
|
35
35
|
<div className={`flex items-start gap-[10px] `}>
|
|
@@ -64,7 +64,7 @@ const MobileViewer = ({
|
|
|
64
64
|
>
|
|
65
65
|
{/* Main Image + Toolbar */}
|
|
66
66
|
<div className="group relative flex items-center justify-center overflow-auto">
|
|
67
|
-
<div className="relative h-auto w-full">
|
|
67
|
+
<div className="relative h-auto max-h-[500px] w-full">
|
|
68
68
|
<Image
|
|
69
69
|
src={currentImage.url}
|
|
70
70
|
alt={currentImage.file.name}
|
|
@@ -10,7 +10,7 @@ import MoveSwipingIcon from '../../../asset/images/daeryuntalk/viewer/move-butto
|
|
|
10
10
|
import DaeryunLogoIcon from '../../../asset/images/daeryuntalk/daeryun-logo.svg';
|
|
11
11
|
import { formatDateToKorean } from '../_lib/utils';
|
|
12
12
|
const TbPcViewer = ({ imageViewerMessage, handleDownload, currentIndex, setCurrentIndex, rotation, currentZoom, currentImage, closeImageViewer, previewImages, setRotation, setZoomLevel, rotateImage, zoomIn, zoomOut, zoomLevel }) => {
|
|
13
|
-
return (<div className={`hidden
|
|
13
|
+
return (<div className={`hidden md2:block`}>
|
|
14
14
|
<div className={`flex h-[100dvh] flex-col items-center justify-center gap-[60px] px-[88px]`}>
|
|
15
15
|
{/* Main Image + Toolbar */}
|
|
16
16
|
<div className="group relative flex max-h-[80vh] max-w-[90vw] items-center justify-center md2:w-[800px] ">
|
|
@@ -47,7 +47,7 @@ const TbPcViewer = ({
|
|
|
47
47
|
zoomLevel
|
|
48
48
|
}: ITbPcViewerProps) => {
|
|
49
49
|
return (
|
|
50
|
-
<div className={`hidden
|
|
50
|
+
<div className={`hidden md2:block`}>
|
|
51
51
|
<div className={`flex h-[100dvh] flex-col items-center justify-center gap-[60px] px-[88px]`}>
|
|
52
52
|
{/* Main Image + Toolbar */}
|
|
53
53
|
<div className="group relative flex max-h-[80vh] max-w-[90vw] items-center justify-center md2:w-[800px] ">
|
|
@@ -153,11 +153,11 @@ export function authenticateUser(centerCode, version) {
|
|
|
153
153
|
method: 'POST',
|
|
154
154
|
body: JSON.stringify(body)
|
|
155
155
|
}, version);
|
|
156
|
-
// 빈 응답인 경우에도 성공으로 처리
|
|
157
|
-
if (Object.keys(response).length === 0) {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
156
|
+
// 빈 응답인 경우에도 성공으로 처리 -> 이거 지워야함
|
|
157
|
+
// if (Object.keys(response).length === 0) {
|
|
158
|
+
// console.log('[인증 성공] 사용자 인증 완료 - 빈 응답 (쿠키만 설정됨)');
|
|
159
|
+
// return { success: true, status: 'authenticated' };
|
|
160
|
+
// }
|
|
161
161
|
if (typeof window !== 'undefined' && ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.token)) {
|
|
162
162
|
localStorage.setItem('daeryunchatinquirytoken', response.data.token);
|
|
163
163
|
}
|
|
@@ -180,6 +180,7 @@ export async function authenticateUser(centerCode: string, version?: string): Pr
|
|
|
180
180
|
center_code: centerCode
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
|
+
|
|
183
184
|
// 인증 API 호출
|
|
184
185
|
const response = await fetchWithCookies<IAuthConnectionDataResponse>(
|
|
185
186
|
`${API_BASE_URL}${ENDPOINTS.AUTHENTICATE}`,
|
|
@@ -190,11 +191,11 @@ export async function authenticateUser(centerCode: string, version?: string): Pr
|
|
|
190
191
|
version
|
|
191
192
|
);
|
|
192
193
|
|
|
193
|
-
// 빈 응답인 경우에도 성공으로 처리
|
|
194
|
-
if (Object.keys(response).length === 0) {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
194
|
+
// 빈 응답인 경우에도 성공으로 처리 -> 이거 지워야함
|
|
195
|
+
// if (Object.keys(response).length === 0) {
|
|
196
|
+
// console.log('[인증 성공] 사용자 인증 완료 - 빈 응답 (쿠키만 설정됨)');
|
|
197
|
+
// return { success: true, status: 'authenticated' };
|
|
198
|
+
// }
|
|
198
199
|
|
|
199
200
|
if (typeof window !== 'undefined' && response?.data?.token) {
|
|
200
201
|
localStorage.setItem('daeryunchatinquirytoken', response.data.token);
|
|
@@ -10,7 +10,7 @@ import PdfPrintCopyLink from '../../PdfPrintCopyLink/PdfPrintCopyLink';
|
|
|
10
10
|
import SeoYoutube from '../../Seo/SeoYoutube';
|
|
11
11
|
import SeoStrength from '../../Seo/SeoStrength';
|
|
12
12
|
import SeoConsulting from '../../Seo/SeoConsulting';
|
|
13
|
-
import { Lawyer } from '
|
|
13
|
+
import { Lawyer } from '../SuccessNew/components/Lawyer';
|
|
14
14
|
import LawInfoContentList from '../SuccessNew/components/LawInfoContentList';
|
|
15
15
|
import { SuccessCase } from '../SuccessNew/components/SuccessCase';
|
|
16
16
|
import { FieldCase } from '../SuccessNew/components/FieldCase';
|
|
@@ -11,7 +11,7 @@ import PdfPrintCopyLink from '../../PdfPrintCopyLink/PdfPrintCopyLink';
|
|
|
11
11
|
import SeoYoutube from '../../Seo/SeoYoutube';
|
|
12
12
|
import SeoStrength from '../../Seo/SeoStrength';
|
|
13
13
|
import SeoConsulting from '../../Seo/SeoConsulting';
|
|
14
|
-
import { Lawyer } from '
|
|
14
|
+
import { Lawyer } from '../SuccessNew/components/Lawyer';
|
|
15
15
|
import LawInfoContentList from '../SuccessNew/components/LawInfoContentList';
|
|
16
16
|
import { SuccessCase } from '../SuccessNew/components/SuccessCase';
|
|
17
17
|
import { FieldCase } from '../SuccessNew/components/FieldCase';
|
|
@@ -10,7 +10,7 @@ import PdfPrintCopyLink from '../../PdfPrintCopyLink/PdfPrintCopyLink';
|
|
|
10
10
|
import SeoYoutube from '../../Seo/SeoYoutube';
|
|
11
11
|
import SeoStrength from '../../Seo/SeoStrength';
|
|
12
12
|
import SeoConsulting from '../../Seo/SeoConsulting';
|
|
13
|
-
import { Lawyer } from '
|
|
13
|
+
import { Lawyer } from '../SuccessNew/components/Lawyer';
|
|
14
14
|
import LawInfoContentList from '../SuccessNew/components/LawInfoContentList';
|
|
15
15
|
import { SuccessCase } from '../SuccessNew/components/SuccessCase';
|
|
16
16
|
import { FieldCase } from '../SuccessNew/components/FieldCase';
|
|
@@ -11,7 +11,7 @@ import PdfPrintCopyLink from '../../PdfPrintCopyLink/PdfPrintCopyLink';
|
|
|
11
11
|
import SeoYoutube from '../../Seo/SeoYoutube';
|
|
12
12
|
import SeoStrength from '../../Seo/SeoStrength';
|
|
13
13
|
import SeoConsulting from '../../Seo/SeoConsulting';
|
|
14
|
-
import { Lawyer } from '
|
|
14
|
+
import { Lawyer } from '../SuccessNew/components/Lawyer';
|
|
15
15
|
import LawInfoContentList from '../SuccessNew/components/LawInfoContentList';
|
|
16
16
|
import { SuccessCase } from '../SuccessNew/components/SuccessCase';
|
|
17
17
|
import { FieldCase } from '../SuccessNew/components/FieldCase';
|
|
@@ -10,7 +10,7 @@ import PdfPrintCopyLink from '../../PdfPrintCopyLink/PdfPrintCopyLink';
|
|
|
10
10
|
import SeoYoutube from '../../Seo/SeoYoutube';
|
|
11
11
|
import SeoStrength from '../../Seo/SeoStrength';
|
|
12
12
|
import SeoConsulting from '../../Seo/SeoConsulting';
|
|
13
|
-
import { Lawyer } from '
|
|
13
|
+
import { Lawyer } from '../SuccessNew/components/Lawyer';
|
|
14
14
|
import LawInfoContentList from '../SuccessNew/components/LawInfoContentList';
|
|
15
15
|
import { SuccessCase } from '../SuccessNew/components/SuccessCase';
|
|
16
16
|
import { FieldCase } from '../SuccessNew/components/FieldCase';
|
|
@@ -12,7 +12,7 @@ import PdfPrintCopyLink from '../../PdfPrintCopyLink/PdfPrintCopyLink';
|
|
|
12
12
|
import SeoYoutube from '../../Seo/SeoYoutube';
|
|
13
13
|
import SeoStrength from '../../Seo/SeoStrength';
|
|
14
14
|
import SeoConsulting from '../../Seo/SeoConsulting';
|
|
15
|
-
import { Lawyer } from '
|
|
15
|
+
import { Lawyer } from '../SuccessNew/components/Lawyer';
|
|
16
16
|
import LawInfoContentList from '../SuccessNew/components/LawInfoContentList';
|
|
17
17
|
import { SuccessCase } from '../SuccessNew/components/SuccessCase';
|
|
18
18
|
import { FieldCase } from '../SuccessNew/components/FieldCase';
|
|
@@ -10,7 +10,7 @@ import PdfPrintCopyLink from '../../PdfPrintCopyLink/PdfPrintCopyLink';
|
|
|
10
10
|
import SeoYoutube from '../../Seo/SeoYoutube';
|
|
11
11
|
import SeoStrength from '../../Seo/SeoStrength';
|
|
12
12
|
import SeoConsulting from '../../Seo/SeoConsulting';
|
|
13
|
-
import { Lawyer } from '
|
|
13
|
+
import { Lawyer } from '../SuccessNew/components/Lawyer';
|
|
14
14
|
import LawInfoContentList from '../SuccessNew/components/LawInfoContentList';
|
|
15
15
|
import { SuccessCase } from '../SuccessNew/components/SuccessCase';
|
|
16
16
|
import { FieldCase } from '../SuccessNew/components/FieldCase';
|
|
@@ -12,7 +12,7 @@ import PdfPrintCopyLink from '../../PdfPrintCopyLink/PdfPrintCopyLink';
|
|
|
12
12
|
import SeoYoutube from '../../Seo/SeoYoutube';
|
|
13
13
|
import SeoStrength from '../../Seo/SeoStrength';
|
|
14
14
|
import SeoConsulting from '../../Seo/SeoConsulting';
|
|
15
|
-
import { Lawyer } from '
|
|
15
|
+
import { Lawyer } from '../SuccessNew/components/Lawyer';
|
|
16
16
|
import LawInfoContentList from '../SuccessNew/components/LawInfoContentList';
|
|
17
17
|
import { SuccessCase } from '../SuccessNew/components/SuccessCase';
|
|
18
18
|
import { FieldCase } from '../SuccessNew/components/FieldCase';
|
|
@@ -11,7 +11,7 @@ import SeoYoutube from '../../Seo/SeoYoutube';
|
|
|
11
11
|
import Image from 'next/image';
|
|
12
12
|
import SeoStrength from '../../Seo/SeoStrength';
|
|
13
13
|
import SeoConsulting from '../../Seo/SeoConsulting';
|
|
14
|
-
import { Lawyer } from '
|
|
14
|
+
import { Lawyer } from './components/Lawyer';
|
|
15
15
|
import LawInfoContentList from './components/LawInfoContentList';
|
|
16
16
|
import Link from 'next/link';
|
|
17
17
|
import Arrow from '../../../asset/images/success_new/left.webp';
|
|
@@ -13,7 +13,7 @@ import SeoYoutube from '../../Seo/SeoYoutube';
|
|
|
13
13
|
import Image from 'next/image';
|
|
14
14
|
import SeoStrength from '../../Seo/SeoStrength';
|
|
15
15
|
import SeoConsulting from '../../Seo/SeoConsulting';
|
|
16
|
-
import { Lawyer } from '
|
|
16
|
+
import { Lawyer } from './components/Lawyer';
|
|
17
17
|
import LawInfoContentList from './components/LawInfoContentList';
|
|
18
18
|
import Link from 'next/link';
|
|
19
19
|
import Arrow from '../../../asset/images/success_new/left.webp';
|
|
@@ -11,7 +11,7 @@ import SeoYoutube from '../../Seo/SeoYoutube';
|
|
|
11
11
|
import Image from 'next/image';
|
|
12
12
|
import SeoStrength from '../../Seo/SeoStrength';
|
|
13
13
|
import SeoConsulting from '../../Seo/SeoConsulting';
|
|
14
|
-
import { Lawyer } from '
|
|
14
|
+
import { Lawyer } from './components/Lawyer';
|
|
15
15
|
import LawInfoContentList from './components/LawInfoContentList';
|
|
16
16
|
import Link from 'next/link';
|
|
17
17
|
import Arrow from '../../../asset/images/success_new/left.webp';
|
|
@@ -13,7 +13,7 @@ import SeoYoutube from '../../Seo/SeoYoutube';
|
|
|
13
13
|
import Image from 'next/image';
|
|
14
14
|
import SeoStrength from '../../Seo/SeoStrength';
|
|
15
15
|
import SeoConsulting from '../../Seo/SeoConsulting';
|
|
16
|
-
import { Lawyer } from '
|
|
16
|
+
import { Lawyer } from './components/Lawyer';
|
|
17
17
|
import LawInfoContentList from './components/LawInfoContentList';
|
|
18
18
|
import Link from 'next/link';
|
|
19
19
|
import Arrow from '../../../asset/images/success_new/left.webp';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import Link from 'next/link';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import Mark from '../../../Mark/Mark';
|
|
5
|
+
import { lawyerCode } from '../../../../lib';
|
|
6
|
+
import IconRightArrow from '../../asset/images/seo/successCase/right_arrow.svg';
|
|
7
|
+
export const Lawyer = ({ lawyerData }) => {
|
|
8
|
+
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
9
|
+
const lawyerImagePath = imagePath + '/upload/lawyer';
|
|
10
|
+
return (<div id={'related_lawyer'} className={'relative h-auto w-full border-l-[1px] border-t-[1px] border-solid border-[#B9B9B9] pb-[45px] pl-[26px] pt-[30px] ' +
|
|
11
|
+
'before:absolute before:left-0 before:top-0 before:block before:aspect-square before:w-[15px] before:bg-[#B9B9B9] before:content-[""] '}>
|
|
12
|
+
<span className={'flex h-fit w-full items-center justify-between'}>
|
|
13
|
+
<p className={'text-[26px] tracking-[-0.5px] max-3xl:text-[24px] max-xl:text-[26px] ' +
|
|
14
|
+
'font-[800] text-[#80377A] '}>
|
|
15
|
+
관련 구성원
|
|
16
|
+
</p>
|
|
17
|
+
<Link href={'/lawyer'} title={'구성원 더보기'} className={'flex h-[35px] w-[100px] items-center justify-center gap-[4px] bg-[#5D5D5D] ' +
|
|
18
|
+
'hover:bg-[#722D6D] ' +
|
|
19
|
+
//1500px
|
|
20
|
+
'w-[100px] max-3xl:h-[30px] max-3xl:w-[90px] '}>
|
|
21
|
+
<p className={'w-fit text-[18px] font-[600] leading-none text-white max-3xl:text-[16px] '}>
|
|
22
|
+
더보기
|
|
23
|
+
</p>
|
|
24
|
+
<IconRightArrow className={'h-auto w-[14px] max-3xl:w-[12px] '}/>
|
|
25
|
+
</Link>
|
|
26
|
+
</span>
|
|
27
|
+
<span className={'mt-[46px] flex flex-col gap-[40px] ' +
|
|
28
|
+
//1280px
|
|
29
|
+
'max-xl:grid max-xl:grid-cols-2 max-xl:gap-x-[10px] ' +
|
|
30
|
+
//768px
|
|
31
|
+
'max-md:grid-cols-1'} itemScope itemType="https://schema.org/ItemList" data-item-list-order="https://schema.org/ItemListUnordered" data-number-of-items={lawyerData.length}>
|
|
32
|
+
{lawyerData === null || lawyerData === void 0 ? void 0 : lawyerData.map((i, idx) => (<div className={'relative flex min-h-[125px] w-full gap-[12px]'} key={'lawyer_name_' + i.lawyer_name} itemScope itemProp="itemListElement" itemType="https://schema.org/ListItem">
|
|
33
|
+
<meta itemProp="position" content={String(idx + 1)}/>
|
|
34
|
+
<Link href={'/lawyer/' + i.l_id} title={`${i.lawyer_name} 변호사 프로필 페이지 바로가기`} className={'absolute z-10 h-full w-full'} itemProp="url"/>
|
|
35
|
+
<div className={'relative h-[125px] w-[110px] shrink-0 overflow-hidden bg-[#F8F8F8]'} itemScope itemType="https://schema.org/Person">
|
|
36
|
+
<Image src={lawyerImagePath + '/' + i.img_url} alt={i.lawyer_name + '변호사님'} fill sizes={'110px'} className={'h-full w-full translate-y-[5%] scale-95 object-contain'} itemProp="image"/>
|
|
37
|
+
<Mark type={i.mark} color={'#e8bb71'} className={'absolute bottom-[5px] right-[5px] h-auto w-[25%]'}/>
|
|
38
|
+
</div>
|
|
39
|
+
<span className={'flex flex-1 flex-col justify-between gap-[5px]'}>
|
|
40
|
+
<span className={'relative flex w-full flex-col gap-[5px]'}>
|
|
41
|
+
<meta itemProp="name" content={`${i.lawyer_name} 변호사`}/>
|
|
42
|
+
<p className={'text-[23px] font-bold leading-none tracking-[-0.46px] text-[#434343]'}>
|
|
43
|
+
{i.lawyer_name}
|
|
44
|
+
</p>
|
|
45
|
+
<p className={'text-[14px] font-medium leading-none tracking-[-0.4px] text-[#818181]'} itemProp="jobTitle">
|
|
46
|
+
{i.lawyer_position}
|
|
47
|
+
</p>
|
|
48
|
+
{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 + '변호사에게 메일보내기'}>
|
|
49
|
+
<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]'}/>
|
|
50
|
+
</Link>) : (<></>)}
|
|
51
|
+
</span>
|
|
52
|
+
<p className={'whitespace-pre-line text-[17px] font-[600] leading-[1.3] tracking-[-0.34px] text-[#285FA7] ' +
|
|
53
|
+
//1500px
|
|
54
|
+
'max-3xl:text-[15px] ' +
|
|
55
|
+
//1280px
|
|
56
|
+
'max-xl:text-[17px]'}>
|
|
57
|
+
{i.career_txt ? i.career_txt : i.l_ability}
|
|
58
|
+
</p>
|
|
59
|
+
{i.l_tel ? (<p className={'text-[15px] font-[600] tracking-[-0.3px] text-[#434343]'}>
|
|
60
|
+
T. {i.l_tel}
|
|
61
|
+
</p>) : ('')}
|
|
62
|
+
</span>
|
|
63
|
+
</div>))}
|
|
64
|
+
</span>
|
|
65
|
+
</div>);
|
|
66
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import Link from 'next/link';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import Mark from '../../../Mark/Mark';
|
|
5
|
+
import { lawyerCode } from '../../../../lib';
|
|
6
|
+
import IconRightArrow from '../../asset/images/seo/successCase/right_arrow.svg';
|
|
7
|
+
|
|
8
|
+
export const Lawyer = ({ lawyerData }: { lawyerData: any[] }) => {
|
|
9
|
+
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
10
|
+
const lawyerImagePath: string = imagePath + '/upload/lawyer';
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<div
|
|
14
|
+
id={'related_lawyer'}
|
|
15
|
+
className={
|
|
16
|
+
'relative h-auto w-full border-l-[1px] border-t-[1px] border-solid border-[#B9B9B9] pb-[45px] pl-[26px] pt-[30px] ' +
|
|
17
|
+
'before:absolute before:left-0 before:top-0 before:block before:aspect-square before:w-[15px] before:bg-[#B9B9B9] before:content-[""] '
|
|
18
|
+
}
|
|
19
|
+
>
|
|
20
|
+
<span className={'flex h-fit w-full items-center justify-between'}>
|
|
21
|
+
<p
|
|
22
|
+
className={
|
|
23
|
+
'text-[26px] tracking-[-0.5px] max-3xl:text-[24px] max-xl:text-[26px] ' +
|
|
24
|
+
'font-[800] text-[#80377A] '
|
|
25
|
+
}
|
|
26
|
+
>
|
|
27
|
+
관련 구성원
|
|
28
|
+
</p>
|
|
29
|
+
<Link
|
|
30
|
+
href={'/lawyer'}
|
|
31
|
+
title={'구성원 더보기'}
|
|
32
|
+
className={
|
|
33
|
+
'flex h-[35px] w-[100px] items-center justify-center gap-[4px] bg-[#5D5D5D] ' +
|
|
34
|
+
'hover:bg-[#722D6D] ' +
|
|
35
|
+
//1500px
|
|
36
|
+
'w-[100px] max-3xl:h-[30px] max-3xl:w-[90px] '
|
|
37
|
+
}
|
|
38
|
+
>
|
|
39
|
+
<p className={'w-fit text-[18px] font-[600] leading-none text-white max-3xl:text-[16px] '}>
|
|
40
|
+
더보기
|
|
41
|
+
</p>
|
|
42
|
+
<IconRightArrow className={'h-auto w-[14px] max-3xl:w-[12px] '} />
|
|
43
|
+
</Link>
|
|
44
|
+
</span>
|
|
45
|
+
<span
|
|
46
|
+
className={
|
|
47
|
+
'mt-[46px] flex flex-col gap-[40px] ' +
|
|
48
|
+
//1280px
|
|
49
|
+
'max-xl:grid max-xl:grid-cols-2 max-xl:gap-x-[10px] ' +
|
|
50
|
+
//768px
|
|
51
|
+
'max-md:grid-cols-1'
|
|
52
|
+
}
|
|
53
|
+
itemScope
|
|
54
|
+
itemType="https://schema.org/ItemList"
|
|
55
|
+
data-item-list-order="https://schema.org/ItemListUnordered"
|
|
56
|
+
data-number-of-items={lawyerData.length}
|
|
57
|
+
>
|
|
58
|
+
{lawyerData?.map((i, idx: number) => (
|
|
59
|
+
<div
|
|
60
|
+
className={'relative flex min-h-[125px] w-full gap-[12px]'}
|
|
61
|
+
key={'lawyer_name_' + i.lawyer_name}
|
|
62
|
+
itemScope
|
|
63
|
+
itemProp="itemListElement"
|
|
64
|
+
itemType="https://schema.org/ListItem"
|
|
65
|
+
>
|
|
66
|
+
<meta itemProp="position" content={String(idx + 1)} />
|
|
67
|
+
<Link
|
|
68
|
+
href={'/lawyer/' + i.l_id}
|
|
69
|
+
title={`${i.lawyer_name} 변호사 프로필 페이지 바로가기`}
|
|
70
|
+
className={'absolute z-10 h-full w-full'}
|
|
71
|
+
itemProp="url"
|
|
72
|
+
/>
|
|
73
|
+
<div
|
|
74
|
+
className={'relative h-[125px] w-[110px] shrink-0 overflow-hidden bg-[#F8F8F8]'}
|
|
75
|
+
itemScope
|
|
76
|
+
itemType="https://schema.org/Person"
|
|
77
|
+
>
|
|
78
|
+
<Image
|
|
79
|
+
src={lawyerImagePath + '/' + i.img_url}
|
|
80
|
+
alt={i.lawyer_name + '변호사님'}
|
|
81
|
+
fill
|
|
82
|
+
sizes={'110px'}
|
|
83
|
+
className={'h-full w-full translate-y-[5%] scale-95 object-contain'}
|
|
84
|
+
itemProp="image"
|
|
85
|
+
/>
|
|
86
|
+
<Mark
|
|
87
|
+
type={i.mark}
|
|
88
|
+
color={'#e8bb71'}
|
|
89
|
+
className={'absolute bottom-[5px] right-[5px] h-auto w-[25%]'}
|
|
90
|
+
/>
|
|
91
|
+
</div>
|
|
92
|
+
<span className={'flex flex-1 flex-col justify-between gap-[5px]'}>
|
|
93
|
+
<span className={'relative flex w-full flex-col gap-[5px]'}>
|
|
94
|
+
<meta itemProp="name" content={`${i.lawyer_name} 변호사`} />
|
|
95
|
+
<p className={'text-[23px] font-bold leading-none tracking-[-0.46px] text-[#434343]'}>
|
|
96
|
+
{i.lawyer_name}
|
|
97
|
+
</p>
|
|
98
|
+
<p
|
|
99
|
+
className={'text-[14px] font-medium leading-none tracking-[-0.4px] text-[#818181]'}
|
|
100
|
+
itemProp="jobTitle"
|
|
101
|
+
>
|
|
102
|
+
{i.lawyer_position}
|
|
103
|
+
</p>
|
|
104
|
+
{lawyerCode.find(code => code === i.lawyer_code) ? (
|
|
105
|
+
<Link
|
|
106
|
+
href={'https://www.daeryunlaw.com/mail?lawyer=' + i.lawyer_name}
|
|
107
|
+
target={'_blank'}
|
|
108
|
+
rel={'nofollow'}
|
|
109
|
+
className={
|
|
110
|
+
'absolute right-0 top-0 z-[11] block h-fit w-fit max-xl:right-[20px]'
|
|
111
|
+
}
|
|
112
|
+
aria-label={i.lawyer_name + '변호사에게 메일보내기'}
|
|
113
|
+
>
|
|
114
|
+
<Image
|
|
115
|
+
src={'https://d1tgonli21s4df.cloudfront.net/lawyer/email_icon.webp'}
|
|
116
|
+
alt={'이메일'}
|
|
117
|
+
width={64}
|
|
118
|
+
height={64}
|
|
119
|
+
className={'w-[32px] max-lg:w-[28px] max-xs:w-[25px]'}
|
|
120
|
+
/>
|
|
121
|
+
</Link>
|
|
122
|
+
) : (
|
|
123
|
+
<></>
|
|
124
|
+
)}
|
|
125
|
+
</span>
|
|
126
|
+
<p
|
|
127
|
+
className={
|
|
128
|
+
'whitespace-pre-line text-[17px] font-[600] leading-[1.3] tracking-[-0.34px] text-[#285FA7] ' +
|
|
129
|
+
//1500px
|
|
130
|
+
'max-3xl:text-[15px] ' +
|
|
131
|
+
//1280px
|
|
132
|
+
'max-xl:text-[17px]'
|
|
133
|
+
}
|
|
134
|
+
>
|
|
135
|
+
{i.career_txt ? i.career_txt : i.l_ability}
|
|
136
|
+
</p>
|
|
137
|
+
{i.l_tel ? (
|
|
138
|
+
<p className={'text-[15px] font-[600] tracking-[-0.3px] text-[#434343]'}>
|
|
139
|
+
T. {i.l_tel}
|
|
140
|
+
</p>
|
|
141
|
+
) : (
|
|
142
|
+
''
|
|
143
|
+
)}
|
|
144
|
+
</span>
|
|
145
|
+
</div>
|
|
146
|
+
))}
|
|
147
|
+
</span>
|
|
148
|
+
</div>
|
|
149
|
+
);
|
|
150
|
+
};
|
package/dist/styles/globals.css
CHANGED
|
@@ -17001,6 +17001,10 @@ body {
|
|
|
17001
17001
|
margin-top: 88px;
|
|
17002
17002
|
}
|
|
17003
17003
|
|
|
17004
|
+
.md2\:block {
|
|
17005
|
+
display: block;
|
|
17006
|
+
}
|
|
17007
|
+
|
|
17004
17008
|
.md2\:hidden {
|
|
17005
17009
|
display: none;
|
|
17006
17010
|
}
|