@daeryun/dr_components 0.7.95 → 0.7.97
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/asset/images/success_new/arrow.svg +13 -0
- package/dist/asset/images/success_new/arrow_full.webp +0 -0
- package/dist/asset/images/success_new/arrow_line.webp +0 -0
- package/dist/asset/images/success_new/dia_dot.svg +3 -0
- package/dist/asset/images/success_new/field_icon.webp +0 -0
- package/dist/asset/images/success_new/label.svg +10 -0
- package/dist/asset/images/success_new/left.webp +0 -0
- package/dist/asset/images/success_new/right.webp +0 -0
- package/dist/asset/images/success_new/right_arrow.svg +4 -0
- package/dist/asset/images/success_new/up_right.svg +3 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/Daeryuntalk/ChatConversation.jsx +1 -0
- package/dist/components/Daeryuntalk/ChatConversation.tsx +1 -0
- package/dist/components/Daeryuntalk/ChatHomeView.jsx +2 -2
- package/dist/components/Daeryuntalk/ChatHomeView.tsx +2 -2
- package/dist/components/Daeryuntalk/ChatWidget.jsx +2 -0
- package/dist/components/Daeryuntalk/ChatWidget.tsx +2 -0
- package/dist/components/Daeryuntalk/History/AuthForm.jsx +2 -2
- package/dist/components/Daeryuntalk/History/AuthForm.tsx +2 -4
- package/dist/components/Daeryuntalk/Toast/DaeryuntalkToastProvider.d.ts +17 -7
- package/dist/components/Daeryuntalk/Toast/DaeryuntalkToastProvider.jsx +14 -18
- package/dist/components/Daeryuntalk/Toast/DaeryuntalkToastProvider.tsx +25 -38
- package/dist/components/Daeryuntalk/Toast/ToastRender.d.ts +1 -0
- package/dist/components/Daeryuntalk/Toast/ToastRender.jsx +17 -0
- package/dist/components/Daeryuntalk/Toast/ToastRender.tsx +27 -0
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.js +2 -2
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.ts +2 -3
- package/dist/components/Daeryuntalk/index.tsx +1 -0
- package/dist/components/page/SuccessNew/SuccessNew.d.ts +3 -0
- package/dist/components/page/SuccessNew/SuccessNew.jsx +234 -0
- package/dist/components/page/SuccessNew/SuccessNew.tsx +430 -0
- package/dist/components/page/SuccessNew/SuccessNewType.d.ts +143 -0
- package/dist/components/page/SuccessNew/SuccessNewType.js +1 -0
- package/dist/components/page/SuccessNew/SuccessNewType.ts +155 -0
- package/dist/components/page/SuccessNew/components/ContentList.d.ts +9 -0
- package/dist/components/page/SuccessNew/components/ContentList.jsx +45 -0
- package/dist/components/page/SuccessNew/components/ContentList.tsx +124 -0
- package/dist/components/page/SuccessNew/components/FieldCase.d.ts +5 -0
- package/dist/components/page/SuccessNew/components/FieldCase.jsx +59 -0
- package/dist/components/page/SuccessNew/components/FieldCase.tsx +101 -0
- package/dist/components/page/SuccessNew/components/H2Contents.d.ts +7 -0
- package/dist/components/page/SuccessNew/components/H2Contents.jsx +19 -0
- package/dist/components/page/SuccessNew/components/H2Contents.tsx +49 -0
- package/dist/components/page/SuccessNew/components/H3Contents.d.ts +6 -0
- package/dist/components/page/SuccessNew/components/H3Contents.jsx +24 -0
- package/dist/components/page/SuccessNew/components/H3Contents.tsx +58 -0
- package/dist/components/page/SuccessNew/components/LawInfoContentList.d.ts +8 -0
- package/dist/components/page/SuccessNew/components/LawInfoContentList.jsx +77 -0
- package/dist/components/page/SuccessNew/components/LawInfoContentList.tsx +122 -0
- package/dist/components/page/SuccessNew/components/SeoAdditionalLink.d.ts +7 -0
- package/dist/components/page/SuccessNew/components/SeoAdditionalLink.jsx +80 -0
- package/dist/components/page/SuccessNew/components/SeoAdditionalLink.tsx +125 -0
- package/dist/components/page/SuccessNew/components/SuccessCase.d.ts +5 -0
- package/dist/components/page/SuccessNew/components/SuccessCase.jsx +64 -0
- package/dist/components/page/SuccessNew/components/SuccessCase.tsx +105 -0
- package/dist/styles/globals.css +524 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,33 +1,29 @@
|
|
|
1
|
+
// ./Toast/DaeryuntalkToastProvider.tsx
|
|
2
|
+
'use client';
|
|
1
3
|
import { createContext, useContext, useState } from 'react';
|
|
2
|
-
|
|
3
|
-
export const
|
|
4
|
-
const
|
|
5
|
-
if (!
|
|
6
|
-
throw new Error('
|
|
7
|
-
|
|
8
|
-
return context;
|
|
4
|
+
export const ToastContext = createContext(undefined);
|
|
5
|
+
export const useDaeryunTalkToast = () => {
|
|
6
|
+
const ctx = useContext(ToastContext);
|
|
7
|
+
if (!ctx)
|
|
8
|
+
throw new Error('ToastContext가 없습니다.');
|
|
9
|
+
return ctx;
|
|
9
10
|
};
|
|
10
|
-
const ToastContext = createContext(undefined);
|
|
11
11
|
export const DaeryuntalkToastProvider = ({ children }) => {
|
|
12
12
|
const [toast, setToast] = useState(null);
|
|
13
13
|
const [isVisible, setIsVisible] = useState(false);
|
|
14
|
+
const hideToast = () => setIsVisible(false);
|
|
14
15
|
const showToast = (type, title, description, duration = 3000) => {
|
|
15
16
|
setToast({ type, title, description, duration });
|
|
16
17
|
setIsVisible(true);
|
|
17
18
|
setTimeout(() => {
|
|
18
19
|
setIsVisible(false);
|
|
19
|
-
setTimeout(() => setToast(null), 300);
|
|
20
|
+
setTimeout(() => setToast(null), 300);
|
|
20
21
|
}, duration);
|
|
21
22
|
};
|
|
22
|
-
const success = (title,
|
|
23
|
-
const warning = (title,
|
|
24
|
-
const error = (title,
|
|
25
|
-
return (<ToastContext.Provider value={{ success, warning, error }}>
|
|
23
|
+
const success = (title, d, t) => showToast('success', title, d, t);
|
|
24
|
+
const warning = (title, d, t) => showToast('warning', title, d, t);
|
|
25
|
+
const error = (title, d, t) => showToast('error', title, d, t);
|
|
26
|
+
return (<ToastContext.Provider value={{ toast, isVisible, hideToast, success, warning, error }}>
|
|
26
27
|
{children}
|
|
27
|
-
<div className="absolute bottom-0 left-1/2 z-50 w-[90%] -translate-x-1/2 rounded-[25px]">
|
|
28
|
-
<div className={`transition-all duration-300 ${isVisible ? '-translate-y-[96px] opacity-100' : 'pointer-events-none translate-y-0 opacity-0'}`}>
|
|
29
|
-
{toast && <DaeryunTalkToast {...toast} onClose={() => setIsVisible(false)}/>}
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
28
|
</ToastContext.Provider>);
|
|
33
29
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type ToastType = 'success' | 'warning' | 'error';
|
|
1
|
+
// ./Toast/DaeryuntalkToastProvider.tsx
|
|
2
|
+
'use client';
|
|
5
3
|
|
|
4
|
+
import { createContext, useContext, useState, ReactNode } from 'react';
|
|
5
|
+
export type ToastType = 'success' | 'warning' | 'error';
|
|
6
6
|
interface ToastItem {
|
|
7
7
|
type: ToastType;
|
|
8
8
|
title: string;
|
|
@@ -11,57 +11,44 @@ interface ToastItem {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
interface ToastContextProps {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
toast: ToastItem | null;
|
|
15
|
+
isVisible: boolean;
|
|
16
|
+
hideToast: () => void;
|
|
17
|
+
success: (title: string, desc?: string, duration?: number) => void;
|
|
18
|
+
warning: (title: string, desc?: string, duration?: number) => void;
|
|
19
|
+
error: (title: string, desc?: string, duration?: number) => void;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
|
-
export const
|
|
20
|
-
const context = useContext(ToastContext);
|
|
21
|
-
if (!context) {
|
|
22
|
-
throw new Error('토스트 프로바이더 설정이 필요합니다.');
|
|
23
|
-
}
|
|
24
|
-
return context;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const ToastContext = createContext<ToastContextProps | undefined>(undefined);
|
|
22
|
+
export const ToastContext = createContext<ToastContextProps | undefined>(undefined);
|
|
28
23
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
export const useDaeryunTalkToast = () => {
|
|
25
|
+
const ctx = useContext(ToastContext);
|
|
26
|
+
if (!ctx) throw new Error('ToastContext가 없습니다.');
|
|
27
|
+
return ctx;
|
|
28
|
+
};
|
|
32
29
|
|
|
33
|
-
export const DaeryuntalkToastProvider = ({ children }:
|
|
30
|
+
export const DaeryuntalkToastProvider = ({ children }: { children: ReactNode }) => {
|
|
34
31
|
const [toast, setToast] = useState<ToastItem | null>(null);
|
|
35
32
|
const [isVisible, setIsVisible] = useState(false);
|
|
36
33
|
|
|
37
|
-
const
|
|
34
|
+
const hideToast = () => setIsVisible(false);
|
|
35
|
+
|
|
36
|
+
const showToast = (type: ToastType, title: string, description?: string, duration = 3000) => {
|
|
38
37
|
setToast({ type, title, description, duration });
|
|
39
38
|
setIsVisible(true);
|
|
40
39
|
setTimeout(() => {
|
|
41
40
|
setIsVisible(false);
|
|
42
|
-
setTimeout(() => setToast(null), 300);
|
|
41
|
+
setTimeout(() => setToast(null), 300);
|
|
43
42
|
}, duration);
|
|
44
43
|
};
|
|
45
44
|
|
|
46
|
-
const success = (title: string,
|
|
47
|
-
|
|
48
|
-
const
|
|
49
|
-
showToast('warning', title, description, duration);
|
|
50
|
-
const error = (title: string, description?: string, duration?: number) =>
|
|
51
|
-
showToast('error', title, description, duration);
|
|
45
|
+
const success = (title: string, d?: string, t?: number) => showToast('success', title, d, t);
|
|
46
|
+
const warning = (title: string, d?: string, t?: number) => showToast('warning', title, d, t);
|
|
47
|
+
const error = (title: string, d?: string, t?: number) => showToast('error', title, d, t);
|
|
52
48
|
|
|
53
49
|
return (
|
|
54
|
-
<ToastContext.Provider value={{ success, warning, error }}>
|
|
50
|
+
<ToastContext.Provider value={{ toast, isVisible, hideToast, success, warning, error }}>
|
|
55
51
|
{children}
|
|
56
|
-
<div className="absolute bottom-0 left-1/2 z-50 w-[90%] -translate-x-1/2 rounded-[25px]">
|
|
57
|
-
<div
|
|
58
|
-
className={`transition-all duration-300 ${
|
|
59
|
-
isVisible ? '-translate-y-[96px] opacity-100' : 'pointer-events-none translate-y-0 opacity-0'
|
|
60
|
-
}`}
|
|
61
|
-
>
|
|
62
|
-
{toast && <DaeryunTalkToast {...toast} onClose={() => setIsVisible(false)} />}
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
52
|
</ToastContext.Provider>
|
|
66
53
|
);
|
|
67
54
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function ToastRenderer(): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// ./Toast/ToastRenderer.tsx
|
|
2
|
+
'use client';
|
|
3
|
+
import { useContext } from 'react';
|
|
4
|
+
import { ToastContext } from './DaeryuntalkToastProvider';
|
|
5
|
+
import DaeryunTalkToast from './Toast';
|
|
6
|
+
export default function ToastRenderer() {
|
|
7
|
+
const context = useContext(ToastContext);
|
|
8
|
+
if (!context)
|
|
9
|
+
return null;
|
|
10
|
+
const { toast, isVisible, hideToast } = context;
|
|
11
|
+
console.log('isVisible', isVisible);
|
|
12
|
+
return (<div className="absolute bottom-0 left-1/2 z-[50] w-[90%] -translate-x-1/2">
|
|
13
|
+
<div className={`transition-all duration-300 ${isVisible ? '-translate-y-[96px] opacity-100' : 'pointer-events-none translate-y-0 opacity-0'}`}>
|
|
14
|
+
{toast && <DaeryunTalkToast {...toast} onClose={hideToast}/>}
|
|
15
|
+
</div>
|
|
16
|
+
</div>);
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// ./Toast/ToastRenderer.tsx
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
import { useContext } from 'react';
|
|
5
|
+
import { ToastContext } from './DaeryuntalkToastProvider';
|
|
6
|
+
import DaeryunTalkToast from './Toast';
|
|
7
|
+
|
|
8
|
+
export default function ToastRenderer() {
|
|
9
|
+
const context = useContext(ToastContext);
|
|
10
|
+
|
|
11
|
+
if (!context) return null;
|
|
12
|
+
|
|
13
|
+
const { toast, isVisible, hideToast } = context;
|
|
14
|
+
console.log('isVisible', isVisible);
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<div className="absolute bottom-0 left-1/2 z-[50] w-[90%] -translate-x-1/2">
|
|
18
|
+
<div
|
|
19
|
+
className={`transition-all duration-300 ${
|
|
20
|
+
isVisible ? '-translate-y-[96px] opacity-100' : 'pointer-events-none translate-y-0 opacity-0'
|
|
21
|
+
}`}
|
|
22
|
+
>
|
|
23
|
+
{toast && <DaeryunTalkToast {...toast} onClose={hideToast} />}
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -10,9 +10,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import { useCallback } from 'react';
|
|
11
11
|
import { chatUserUpdate as apiChatUserUpdate, chatWorkFlow, chatWorkFlowBack, generateChatInquiry, getChatInquiryDetailNew, getChatInquiryMessageList, sendChatMessage } from '../../_api';
|
|
12
12
|
import { convertApiMessageObjectToUiMessageObject, convertApiMessageToUiMessage } from '../../_lib';
|
|
13
|
-
import {
|
|
13
|
+
import { useDaeryunTalkToast } from '../../Toast/DaeryuntalkToastProvider';
|
|
14
14
|
export const useChatHandler = ({ setIsLoading, inquiryMainData, setChatInquiryNumber, setMessages, setInquiryStatus, setMessageObject, chatInquiryNumber, setIsNextPage, setWorkFlowStack, setInquiryMainData }) => {
|
|
15
|
-
const toast =
|
|
15
|
+
const toast = useDaeryunTalkToast();
|
|
16
16
|
// 채팅 시작 (문의하기 버튼 클릭 시)
|
|
17
17
|
const startChat = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
@@ -13,8 +13,7 @@ import { convertApiMessageObjectToUiMessageObject, convertApiMessageToUiMessage
|
|
|
13
13
|
import { IChatInquiryMainDataResponse } from '../../_api/daeryuntalk/type/response';
|
|
14
14
|
import { Message } from '../../_types/message';
|
|
15
15
|
import { MessageObject } from '../../_types/message_object';
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import { useDaeryunTalkToast } from '../../Toast/DaeryuntalkToastProvider';
|
|
18
17
|
interface props {
|
|
19
18
|
setIsLoading: Dispatch<SetStateAction<boolean>>;
|
|
20
19
|
inquiryMainData: IChatInquiryMainDataResponse | null;
|
|
@@ -40,7 +39,7 @@ export const useChatHandler = ({
|
|
|
40
39
|
setWorkFlowStack,
|
|
41
40
|
setInquiryMainData
|
|
42
41
|
}: props) => {
|
|
43
|
-
const toast =
|
|
42
|
+
const toast = useDaeryunTalkToast();
|
|
44
43
|
// 채팅 시작 (문의하기 버튼 클릭 시)
|
|
45
44
|
const startChat = useCallback(async () => {
|
|
46
45
|
try {
|
|
@@ -6,6 +6,7 @@ import ChatWidget from './ChatWidget';
|
|
|
6
6
|
import { DaeryuntalkProvider } from './DaeryuntalkContext';
|
|
7
7
|
import ImageViewer from './Viewer/ImageViewer';
|
|
8
8
|
import { DaeryuntalkToastProvider } from './Toast/DaeryuntalkToastProvider';
|
|
9
|
+
import ToastRenderer from './Toast/ToastRender';
|
|
9
10
|
|
|
10
11
|
type DaeryuntalkProps = {
|
|
11
12
|
tel: string;
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import ContentList from './components/ContentList';
|
|
3
|
+
import { useEffect, useRef, useState } from 'react';
|
|
4
|
+
import useBrowser from '../../hook/useBrowser';
|
|
5
|
+
import { htmlUrlDecode } from '../../../lib';
|
|
6
|
+
import H2Contents from './components/H2Contents';
|
|
7
|
+
import H3Contents from './components/H3Contents';
|
|
8
|
+
import SeoAdditionalLink from './components/SeoAdditionalLink';
|
|
9
|
+
import PdfPrintCopyLink from '../../PdfPrintCopyLink/PdfPrintCopyLink';
|
|
10
|
+
import SeoYoutube from '../../Seo/SeoYoutube';
|
|
11
|
+
import Image from 'next/image';
|
|
12
|
+
import SeoStrength from '../../Seo/SeoStrength';
|
|
13
|
+
import SeoConsulting from '../../Seo/SeoConsulting';
|
|
14
|
+
import { Lawyer } from '../../Seo/Lawyer';
|
|
15
|
+
import LawInfoContentList from './components/LawInfoContentList';
|
|
16
|
+
import Link from 'next/link';
|
|
17
|
+
import Arrow from '../../../asset/images/success_new/left.webp';
|
|
18
|
+
import RightArrow from '../../../asset/images/success_new/right.webp';
|
|
19
|
+
import { SuccessCase } from './components/SuccessCase';
|
|
20
|
+
import { FieldCase } from './components/FieldCase';
|
|
21
|
+
const SuccessNew = ({ data, tel }) => {
|
|
22
|
+
var _a;
|
|
23
|
+
const { template, contentsList, h2List, imgData, lawyerData, fieldData, successData, groupTopTenLawyerList, referenceLinkList, newsLinkList, shortsLinkList, youtubeLinkList, pn, initialData } = data;
|
|
24
|
+
const { width } = useBrowser(true);
|
|
25
|
+
const [relatedCaseLawyerList, setRelatedCaseLawyerList] = useState(lawyerData);
|
|
26
|
+
const [isFaqActive, setIsFaqActive] = useState(false);
|
|
27
|
+
const printRef = useRef(null);
|
|
28
|
+
const typeIdxNum = template && template[0].type_idx;
|
|
29
|
+
const successDataFiltered = successData.filter(data => Number(data.type_idx) !== typeIdxNum);
|
|
30
|
+
const legalDocumentImageObject = imgData && imgData.length > 0 ? imgData[0] : null;
|
|
31
|
+
const h1Title = template
|
|
32
|
+
.map(temp => temp.tag === 'h1' && temp.tag_title)
|
|
33
|
+
.filter(temp => temp !== false)
|
|
34
|
+
.toString();
|
|
35
|
+
const h1Description = template
|
|
36
|
+
.map(temp => temp.tag === 'h1' && temp.description)
|
|
37
|
+
.filter(temp => temp !== false)
|
|
38
|
+
.toString();
|
|
39
|
+
//이미지 url
|
|
40
|
+
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
41
|
+
const handleScrollToElement = (idx) => {
|
|
42
|
+
if (typeof window != 'undefined') {
|
|
43
|
+
const element = document.getElementById(idx.toString());
|
|
44
|
+
if (element) {
|
|
45
|
+
const topOffset = element.getBoundingClientRect().top;
|
|
46
|
+
window.scrollTo({
|
|
47
|
+
top: window.scrollY + topOffset - 130,
|
|
48
|
+
behavior: 'smooth'
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const handleClickGoImg = () => {
|
|
54
|
+
var _a, _b;
|
|
55
|
+
const imgLocation = (_b = (_a = document.getElementById('img_wrap')) === null || _a === void 0 ? void 0 : _a.offsetTop) !== null && _b !== void 0 ? _b : 0;
|
|
56
|
+
window.scrollTo({ top: imgLocation + (width > 680 ? 300 : 200), behavior: 'smooth' });
|
|
57
|
+
};
|
|
58
|
+
// 변호사 6명 맞추기
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
const originLawyerLength = lawyerData.length;
|
|
61
|
+
const maxCount = 6; // 최대 변호사 수
|
|
62
|
+
const sliceCount = maxCount - originLawyerLength;
|
|
63
|
+
if (originLawyerLength < maxCount) {
|
|
64
|
+
// 중복되지 않은 변호사 리스트 생성
|
|
65
|
+
const additionalLawyers = groupTopTenLawyerList
|
|
66
|
+
.filter(topLawyer => !lawyerData.some(lawyer => lawyer.lawyer_name === topLawyer.lawyer_name))
|
|
67
|
+
.slice(0, sliceCount);
|
|
68
|
+
// 변호사 리스트 업데이트 (중복 방지)
|
|
69
|
+
setRelatedCaseLawyerList([...lawyerData, ...additionalLawyers]);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
// 변호사 수가 충분하면 최대 6명만 설정
|
|
73
|
+
setRelatedCaseLawyerList(lawyerData.slice(0, maxCount));
|
|
74
|
+
}
|
|
75
|
+
}, [lawyerData, groupTopTenLawyerList]);
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
if (template) {
|
|
78
|
+
// 초기화
|
|
79
|
+
setIsFaqActive(false);
|
|
80
|
+
for (const data of template) {
|
|
81
|
+
// console.log("faq 활성화: ", data['active_faq']);
|
|
82
|
+
if (data['active_faq']) {
|
|
83
|
+
setIsFaqActive(true);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}, [template]);
|
|
88
|
+
return (<div itemScope={isFaqActive ? undefined : true} itemType={isFaqActive ? undefined : 'https://schema.org/FAQPage'} ref={printRef}>
|
|
89
|
+
<div className="relative m-auto mb-[100px] w-[90%] max-w-screen-2xl font-[SUIT] max-xs:mb-[30px]">
|
|
90
|
+
<div className={'m-auto mt-[100px] flex gap-[120px] ' +
|
|
91
|
+
//1500px
|
|
92
|
+
'max-3xl:gap-[80px] ' +
|
|
93
|
+
//1280px
|
|
94
|
+
'max-xl:mt-0 max-xl:flex-col max-xl:gap-0 ' +
|
|
95
|
+
//600px
|
|
96
|
+
'max-sm:mt-[10px] '}>
|
|
97
|
+
<div>
|
|
98
|
+
<div>
|
|
99
|
+
{template && width < 1280 ? (<PdfPrintCopyLink fileName={h1Title} printRef={printRef}/>) : null}
|
|
100
|
+
<div className={'max-xl:mt-[25px] max-xs:mt-[15px]'}>
|
|
101
|
+
{/* h1 제목 */}
|
|
102
|
+
<h1 className={' text-[52.5px] font-[800] tracking-[-2.1px] text-[#285FA7] max-3xl:text-5xl max-md:text-4xl max-xs:text-[28px]'} key={h1Title}>
|
|
103
|
+
{h1Title}
|
|
104
|
+
</h1>
|
|
105
|
+
|
|
106
|
+
{/* h1 설명글 */}
|
|
107
|
+
<div className={'mb-[54px] mt-[16px] text-[16px] font-normal tracking-[-0.96px] xs:text-[18px] sm:mb-[62px] sm:mt-[26px] sm:text-[20px] lg:mb-[75px] lg:mt-[37.5px] lg:text-[24px]'}>
|
|
108
|
+
<div id={'ck-content'} dangerouslySetInnerHTML={{
|
|
109
|
+
__html: htmlUrlDecode(h1Description.replace('../../UploadFile', '/SE2/upload'))
|
|
110
|
+
}}/>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
<article className={`w-full max-w-[1076px] overflow-hidden`}>
|
|
116
|
+
{/*목차*/}
|
|
117
|
+
<ContentList template={template} h2List={h2List ? h2List : []} onImageMove={handleClickGoImg} onScrollToElement={handleScrollToElement}/>
|
|
118
|
+
|
|
119
|
+
{/*h2*/}
|
|
120
|
+
{h2List &&
|
|
121
|
+
h2List.map((h2Template, index) => {
|
|
122
|
+
return (<section className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'} key={'h2영역' + h2Template.idx}>
|
|
123
|
+
<H2Contents h2Template={h2Template} index={index}/>
|
|
124
|
+
|
|
125
|
+
{/*h3*/}
|
|
126
|
+
{template
|
|
127
|
+
.filter(t => t.parent === h2Template.idx)
|
|
128
|
+
.map((h3Template, h3Index) => {
|
|
129
|
+
return (<H3Contents key={'h3영역 ' + h3Index} h3Template={h3Template}/>);
|
|
130
|
+
})}
|
|
131
|
+
<span className={'flex flex-col gap-[26px] ' +
|
|
132
|
+
//520px
|
|
133
|
+
'max-2sm:gap-[16px]'}>
|
|
134
|
+
{h2Template.reference_is_use && referenceLinkList.length > 0 && (<SeoAdditionalLink type={'참고'} linkList={referenceLinkList.filter(i => i.tag_idx === h2Template.idx)}/>)}
|
|
135
|
+
{h2Template.news_is_use && newsLinkList.length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h2Template.idx)}/>)}
|
|
136
|
+
{h2Template.youtube_is_use && (<>
|
|
137
|
+
{shortsLinkList.length > 0 && (<SeoYoutube type={'shorts'} linkList={shortsLinkList.filter(i => i.tag_idx === h2Template.idx)}/>)}
|
|
138
|
+
{youtubeLinkList.length > 0 && (<SeoYoutube type={'youtube'} linkList={youtubeLinkList.filter(i => i.tag_idx === h2Template.idx)}/>)}
|
|
139
|
+
</>)}
|
|
140
|
+
</span>
|
|
141
|
+
</section>);
|
|
142
|
+
})}
|
|
143
|
+
{/*이미지------*/}
|
|
144
|
+
{imgData && imgData.length > 0 && (<section id={'img_wrap'} className={'relative flex min-h-[400px] items-center gap-[100px] px-[30px] xl:mb-[100px] ' +
|
|
145
|
+
'mt-[100px] justify-start 2xs:mb-[60px] ' +
|
|
146
|
+
//768px
|
|
147
|
+
'max-md:flex-col max-md:gap-[0px]'}>
|
|
148
|
+
{/*판결문이미지*/}
|
|
149
|
+
<div className={'h-fit w-[400px] border-[30px] border-solid border-[#e9e9e9] bg-[#e9e9e9] ' +
|
|
150
|
+
//1280px
|
|
151
|
+
'max-xl:w-[350px] max-xl:border-[25px] ' +
|
|
152
|
+
//480px
|
|
153
|
+
'max-sm:w-full max-sm:max-w-[350px]'}>
|
|
154
|
+
<Image src={imagePath + (legalDocumentImageObject === null || legalDocumentImageObject === void 0 ? void 0 : legalDocumentImageObject.img_url)} alt={(_a = legalDocumentImageObject === null || legalDocumentImageObject === void 0 ? void 0 : legalDocumentImageObject.alt) !== null && _a !== void 0 ? _a : ''} width={382} height={510} className={'h-auto w-full'} quality={100} draggable={false}/>
|
|
155
|
+
</div>
|
|
156
|
+
</section>)}
|
|
157
|
+
</article>
|
|
158
|
+
|
|
159
|
+
{width >= 1280 ? (<div className={'flex flex-col gap-[60px] lg:mt-[60px]'}>
|
|
160
|
+
<div className={'relative w-full '}>
|
|
161
|
+
<SeoStrength initialData={initialData}/>
|
|
162
|
+
</div>
|
|
163
|
+
<SeoConsulting tel={tel}/>
|
|
164
|
+
|
|
165
|
+
<LawInfoContentList contentsList={contentsList} template={template} className={''}/>
|
|
166
|
+
</div>) : (<></>)}
|
|
167
|
+
</div>
|
|
168
|
+
|
|
169
|
+
{(fieldData.length > 0 || relatedCaseLawyerList.length > 0 || successDataFiltered.length > 0) && (<span className={'relative mb-[30px] mt-[30px] w-[340px] shrink-0 ' +
|
|
170
|
+
//1500px
|
|
171
|
+
'max-3xl:mt-[10px] max-3xl:w-[300px] ' +
|
|
172
|
+
//1280px
|
|
173
|
+
'max-xl:mt-[50px] max-xl:w-full max-xl:pt-0'}>
|
|
174
|
+
<span id={'fixSideBar'} className={'top-[140px] flex w-[340px] flex-col gap-[50px] xl:sticky ' +
|
|
175
|
+
'max-3xl:w-[300px] max-xl:w-full'}>
|
|
176
|
+
{template && width >= 1280 ? (<PdfPrintCopyLink fileName={template.filter(t => t.tag === 'h1')[0].tag_title} printRef={printRef}/>) : null}
|
|
177
|
+
{successDataFiltered.length > 0 && <SuccessCase successData={successDataFiltered}/>}
|
|
178
|
+
{fieldData.length > 0 && <FieldCase fieldData={fieldData}/>}
|
|
179
|
+
{relatedCaseLawyerList.length > 0 && <Lawyer lawyerData={relatedCaseLawyerList}/>}
|
|
180
|
+
</span>
|
|
181
|
+
</span>)}
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
|
|
185
|
+
<div className="m-auto mt-[7em] max-w-screen-2xl max-md2:mt-[0] max-xs:mb-[30px] lg:mt-[5em] ">
|
|
186
|
+
{width < 1280 ? (<>
|
|
187
|
+
<div className="m-auto flex flex-col gap-[60px] max-4xl:w-[90%]">
|
|
188
|
+
<div className={'relative w-full '}>
|
|
189
|
+
<SeoStrength initialData={initialData}/>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<SeoConsulting tel={tel}/>
|
|
193
|
+
|
|
194
|
+
<LawInfoContentList contentsList={contentsList} template={template}/>
|
|
195
|
+
</div>
|
|
196
|
+
</>) : (<></>)}
|
|
197
|
+
{/* 이전글 다음글 */}
|
|
198
|
+
<div className="m-auto mt-[60px] max-4xl:w-[90%] max-md:mb-[30px]">
|
|
199
|
+
<div className={'flex flex-col items-start justify-between md:mb-[60px] lg:flex-row lg:items-center '}>
|
|
200
|
+
<div className={'mb-6 flex w-full flex-col gap-[8px] lg:mb-0 lg:w-auto lg:flex-row lg:items-center lg:gap-[20px] lg2:gap-[28px]'}>
|
|
201
|
+
<Image src={Arrow} alt={'화살표'} title={'화살표'} width={15} height={15} className={'m-auto hidden lg:block'}/>
|
|
202
|
+
<p className={'shrink-0 text-[18px] text-[#285FA7] '}>이전글</p>
|
|
203
|
+
{pn.prev ? (<Link href={`${pn.prev.pathname}${pn.prev.id}`}>
|
|
204
|
+
<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] '}>
|
|
205
|
+
{pn.prev.title}
|
|
206
|
+
</p>
|
|
207
|
+
</Link>) : (<p className={'truncate text-[16px] xs:text-[18px] lg:w-[14em] lg2:w-[18em] xxl:w-[18em] xxl:text-[20px] 5xl:w-[20em] '}>
|
|
208
|
+
이전글이 없습니다.
|
|
209
|
+
</p>)}
|
|
210
|
+
</div>
|
|
211
|
+
|
|
212
|
+
<Link href={`/success`} className={'hidden shrink-0 lg:block'}>
|
|
213
|
+
<button className={'rounded-[30px] border-[1px] border-solid border-[#b0b0b0] bg-[#41464C] px-[40px] py-[10px] text-[#fff] xxl:px-[70px] xxl:py-[15px]'}>
|
|
214
|
+
목록보기
|
|
215
|
+
</button>
|
|
216
|
+
</Link>
|
|
217
|
+
|
|
218
|
+
<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]'}>
|
|
219
|
+
<p className={'shrink-0 text-[18px] text-[#285FA7]'}>다음글</p>
|
|
220
|
+
{pn.next ? (<Link href={`${pn.next.pathname}${pn.next.id}`}>
|
|
221
|
+
<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] '}>
|
|
222
|
+
{pn.next.title}
|
|
223
|
+
</p>
|
|
224
|
+
</Link>) : (<p className={'truncate text-[16px] xs:text-[18px] lg:w-[14em] lg2:w-[18em] xxl:w-[18em] xxl:text-[20px] 5xl:w-[20em]'}>
|
|
225
|
+
다음글이 없습니다.
|
|
226
|
+
</p>)}
|
|
227
|
+
<Image src={RightArrow} alt={'화살표'} title={'화살표'} width={15} height={15} className={'m-auto hidden lg:block'}/>
|
|
228
|
+
</div>
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
232
|
+
</div>);
|
|
233
|
+
};
|
|
234
|
+
export default SuccessNew;
|