@daeryun/dr_components 0.8.51 → 0.8.53
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/ChatButton.jsx +25 -2
- package/dist/components/Daeryuntalk/ChatButton.tsx +29 -3
- package/dist/components/Daeryuntalk/ChatHomeView.jsx +0 -1
- package/dist/components/Daeryuntalk/ChatHomeView.tsx +0 -1
- package/dist/components/Daeryuntalk/ChatWidget.jsx +5 -3
- package/dist/components/Daeryuntalk/ChatWidget.tsx +5 -2
- package/dist/components/Daeryuntalk/HomeView.jsx +1 -1
- package/dist/components/Daeryuntalk/HomeView.tsx +1 -1
- package/dist/components/Daeryuntalk/Tiptap/Tiptap.jsx +1 -1
- package/dist/components/Daeryuntalk/Tiptap/Tiptap.tsx +1 -1
- package/dist/components/page/FieldNew/FieldNewView.d.ts +3 -0
- package/dist/components/page/FieldNew/FieldNewView.jsx +170 -0
- package/dist/components/page/FieldNew/FieldNewView.tsx +304 -0
- package/dist/components/page/FieldNew/FieldWrapper.d.ts +8 -0
- package/dist/components/page/FieldNew/FieldWrapper.jsx +30 -0
- package/dist/components/page/FieldNew/FieldWrapper.tsx +36 -0
- package/dist/components/page/LawInfoNew/LawInfoNewView.d.ts +3 -0
- package/dist/components/page/LawInfoNew/LawInfoNewView.jsx +197 -0
- package/dist/components/page/LawInfoNew/LawInfoNewView.tsx +394 -0
- package/dist/components/page/LawInfoNew/LawInfoWrapper.d.ts +8 -0
- package/dist/components/page/LawInfoNew/LawInfoWrapper.jsx +30 -0
- package/dist/components/page/LawInfoNew/LawInfoWrapper.tsx +36 -0
- package/dist/components/page/SuccessNew/components/SuccessWrapper.jsx +3 -4
- package/dist/components/page/SuccessNew/components/SuccessWrapper.tsx +3 -4
- package/dist/styles/globals.css +25 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ import { useDaeryuntalk } from './DaeryuntalkContext';
|
|
|
12
12
|
const ChatButton = ({ isOpen, onClick, apiVersion, isMobile = false, hashValue = null }) => {
|
|
13
13
|
const { initializeDaeryuntalk } = useDaeryuntalk();
|
|
14
14
|
const handleClick = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
+
onClick();
|
|
15
16
|
if (!isOpen) {
|
|
16
17
|
try {
|
|
17
18
|
yield initializeDaeryuntalk('', isOpen, apiVersion);
|
|
@@ -20,7 +21,6 @@ const ChatButton = ({ isOpen, onClick, apiVersion, isMobile = false, hashValue =
|
|
|
20
21
|
console.error('Daeryuntalk 초기화 실패:', err);
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
|
-
onClick();
|
|
24
24
|
}), [isOpen, onClick, initializeDaeryuntalk, apiVersion]);
|
|
25
25
|
// 해쉬 있을 경우
|
|
26
26
|
useEffect(() => {
|
|
@@ -45,7 +45,14 @@ const ChatButton = ({ isOpen, onClick, apiVersion, isMobile = false, hashValue =
|
|
|
45
45
|
p-0 shadow-lg outline-none transition-all duration-300 ease-in-out
|
|
46
46
|
hover:${isOpen ? 'bg-gray-100' : 'bg-[#8A1729]'}
|
|
47
47
|
`}>
|
|
48
|
-
{
|
|
48
|
+
{!isOpen && (<span style={{
|
|
49
|
+
position: 'absolute',
|
|
50
|
+
inset: '0',
|
|
51
|
+
border: '2px solid #aa1d36',
|
|
52
|
+
borderRadius: '10px',
|
|
53
|
+
pointerEvents: 'none',
|
|
54
|
+
animation: 'pulseBox 1.5s infinite ease-out'
|
|
55
|
+
}}/>)}
|
|
49
56
|
|
|
50
57
|
<div className={`
|
|
51
58
|
absolute inset-0 flex items-center justify-center
|
|
@@ -72,6 +79,22 @@ const ChatButton = ({ isOpen, onClick, apiVersion, isMobile = false, hashValue =
|
|
|
72
79
|
<path d="M18 6L6 18" stroke="#777777" strokeWidth="2" strokeLinecap="round"/>
|
|
73
80
|
</svg>
|
|
74
81
|
</div>
|
|
82
|
+
|
|
83
|
+
{/* 어디든 1회 선언 필요 */}
|
|
84
|
+
<style>
|
|
85
|
+
{`
|
|
86
|
+
@keyframes pulseBox {
|
|
87
|
+
0% {
|
|
88
|
+
transform: scale(1);
|
|
89
|
+
opacity: 0.6;
|
|
90
|
+
}
|
|
91
|
+
100% {
|
|
92
|
+
transform: scale(1.3);
|
|
93
|
+
opacity: 0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
`}
|
|
97
|
+
</style>
|
|
75
98
|
</button>);
|
|
76
99
|
};
|
|
77
100
|
export default ChatButton;
|
|
@@ -13,6 +13,7 @@ const ChatButton: React.FC<ChatButtonProps> = ({ isOpen, onClick, apiVersion, is
|
|
|
13
13
|
const { initializeDaeryuntalk } = useDaeryuntalk();
|
|
14
14
|
|
|
15
15
|
const handleClick = useCallback(async () => {
|
|
16
|
+
onClick();
|
|
16
17
|
if (!isOpen) {
|
|
17
18
|
try {
|
|
18
19
|
await initializeDaeryuntalk('', isOpen, apiVersion);
|
|
@@ -20,8 +21,6 @@ const ChatButton: React.FC<ChatButtonProps> = ({ isOpen, onClick, apiVersion, is
|
|
|
20
21
|
console.error('Daeryuntalk 초기화 실패:', err);
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
-
onClick();
|
|
25
24
|
}, [isOpen, onClick, initializeDaeryuntalk, apiVersion]);
|
|
26
25
|
|
|
27
26
|
// 해쉬 있을 경우
|
|
@@ -51,7 +50,18 @@ const ChatButton: React.FC<ChatButtonProps> = ({ isOpen, onClick, apiVersion, is
|
|
|
51
50
|
hover:${isOpen ? 'bg-gray-100' : 'bg-[#8A1729]'}
|
|
52
51
|
`}
|
|
53
52
|
>
|
|
54
|
-
{
|
|
53
|
+
{!isOpen && (
|
|
54
|
+
<span
|
|
55
|
+
style={{
|
|
56
|
+
position: 'absolute',
|
|
57
|
+
inset: '0',
|
|
58
|
+
border: '2px solid #aa1d36',
|
|
59
|
+
borderRadius: '10px',
|
|
60
|
+
pointerEvents: 'none',
|
|
61
|
+
animation: 'pulseBox 1.5s infinite ease-out'
|
|
62
|
+
}}
|
|
63
|
+
/>
|
|
64
|
+
)}
|
|
55
65
|
|
|
56
66
|
<div
|
|
57
67
|
className={`
|
|
@@ -91,6 +101,22 @@ const ChatButton: React.FC<ChatButtonProps> = ({ isOpen, onClick, apiVersion, is
|
|
|
91
101
|
<path d="M18 6L6 18" stroke="#777777" strokeWidth="2" strokeLinecap="round" />
|
|
92
102
|
</svg>
|
|
93
103
|
</div>
|
|
104
|
+
|
|
105
|
+
{/* 어디든 1회 선언 필요 */}
|
|
106
|
+
<style>
|
|
107
|
+
{`
|
|
108
|
+
@keyframes pulseBox {
|
|
109
|
+
0% {
|
|
110
|
+
transform: scale(1);
|
|
111
|
+
opacity: 0.6;
|
|
112
|
+
}
|
|
113
|
+
100% {
|
|
114
|
+
transform: scale(1.3);
|
|
115
|
+
opacity: 0;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
`}
|
|
119
|
+
</style>
|
|
94
120
|
</button>
|
|
95
121
|
);
|
|
96
122
|
};
|
|
@@ -52,7 +52,6 @@ const ChatHomeView = ({ hashValue, onClose, isMobile, isHash }) => {
|
|
|
52
52
|
goGetHistoryList({});
|
|
53
53
|
}
|
|
54
54
|
}, [viewState, isAuthenticated]);
|
|
55
|
-
console.log('isConnected', isConnected);
|
|
56
55
|
const renderWithNavigation = (content, activeView) => {
|
|
57
56
|
return (<main className={`
|
|
58
57
|
relative flex justify-end
|
|
@@ -102,7 +102,6 @@ const ChatHomeView: React.FC<ChatHomeViewProps> = ({ hashValue, onClose, isMobil
|
|
|
102
102
|
goGetHistoryList({});
|
|
103
103
|
}
|
|
104
104
|
}, [viewState, isAuthenticated]);
|
|
105
|
-
console.log('isConnected', isConnected);
|
|
106
105
|
|
|
107
106
|
const renderWithNavigation = (content: React.ReactNode, activeView: 'home' | 'history' | 'conversation') => {
|
|
108
107
|
return (
|
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import ChatHomeView from './ChatHomeView';
|
|
3
3
|
import ImageViewer from './Viewer/ImageViewer';
|
|
4
4
|
import { useScrollShadow } from './_hooks/useScrollShadow';
|
|
5
|
-
import ShadowBox from './_ui/ShadowBox';
|
|
6
5
|
const ChatWidget = ({ isOpen, isMobile, onClose, hashValue, setHashValue }) => {
|
|
7
6
|
const { containerRef, isScroll, isBottom } = useScrollShadow();
|
|
8
7
|
const isHash = !!hashValue; // 해쉬 있을 경우
|
|
@@ -64,16 +63,19 @@ const ChatWidget = ({ isOpen, isMobile, onClose, hashValue, setHashValue }) => {
|
|
|
64
63
|
|
|
65
64
|
`}>
|
|
66
65
|
{/*모바일일 경우 전체 를 차지*/}
|
|
66
|
+
{/*1. 여기서 브라우저 세로 줄이면 스크롤 생김 */}
|
|
67
67
|
<div ref={containerRef} className={`
|
|
68
68
|
no-scrollbar relative flex h-full items-center justify-center overflow-auto
|
|
69
69
|
${isMobile ? `${innerMobileWrapperCss}` : `${innerWebSmallWrapperCss} ${innerWebTbPCWrapperCss}`}
|
|
70
70
|
`}>
|
|
71
|
+
{/* 요가가 컴포넌트 */}
|
|
71
72
|
{/*className={`${isMobile ? 'rounded-none' : 'rounded-[30px]'} no-scrollbar relative flex h-full items-center justify-center overflow-auto bg-white`}*/}
|
|
72
73
|
<ChatHomeView hashValue={hashValue} isMobile={isMobile} isHash={isHash} onClose={onClose}/>
|
|
73
74
|
</div>
|
|
75
|
+
<div className={``}></div>
|
|
74
76
|
|
|
75
|
-
{
|
|
76
|
-
{isScroll && !isBottom && <ShadowBox />}
|
|
77
|
+
{/*/!* 투명 그라데이션 그림자 표시 *!/*/}
|
|
78
|
+
{/*{isScroll && !isBottom && <ShadowBox />}*/}
|
|
77
79
|
</div>
|
|
78
80
|
</div>
|
|
79
81
|
</>);
|
|
@@ -87,6 +87,7 @@ const ChatWidget: React.FC<ChatWidgetProps> = ({ isOpen, isMobile, onClose, hash
|
|
|
87
87
|
`}
|
|
88
88
|
>
|
|
89
89
|
{/*모바일일 경우 전체 를 차지*/}
|
|
90
|
+
{/*1. 여기서 브라우저 세로 줄이면 스크롤 생김 */}
|
|
90
91
|
<div
|
|
91
92
|
ref={containerRef}
|
|
92
93
|
className={`
|
|
@@ -94,12 +95,14 @@ const ChatWidget: React.FC<ChatWidgetProps> = ({ isOpen, isMobile, onClose, hash
|
|
|
94
95
|
${isMobile ? `${innerMobileWrapperCss}` : `${innerWebSmallWrapperCss} ${innerWebTbPCWrapperCss}`}
|
|
95
96
|
`}
|
|
96
97
|
>
|
|
98
|
+
{/* 요가가 컴포넌트 */}
|
|
97
99
|
{/*className={`${isMobile ? 'rounded-none' : 'rounded-[30px]'} no-scrollbar relative flex h-full items-center justify-center overflow-auto bg-white`}*/}
|
|
98
100
|
<ChatHomeView hashValue={hashValue} isMobile={isMobile} isHash={isHash} onClose={onClose} />
|
|
99
101
|
</div>
|
|
102
|
+
<div className={``}></div>
|
|
100
103
|
|
|
101
|
-
{
|
|
102
|
-
{isScroll && !isBottom && <ShadowBox />}
|
|
104
|
+
{/*/!* 투명 그라데이션 그림자 표시 *!/*/}
|
|
105
|
+
{/*{isScroll && !isBottom && <ShadowBox />}*/}
|
|
103
106
|
</div>
|
|
104
107
|
</div>
|
|
105
108
|
</>
|
|
@@ -49,7 +49,7 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
49
49
|
`}
|
|
50
50
|
`}>
|
|
51
51
|
<section className={`
|
|
52
|
-
flex h-[408px] flex-col rounded-[12px] bg-white px-[16px] py-[24px]
|
|
52
|
+
flex h-[408px] flex-col overflow-auto rounded-[12px] bg-white px-[16px] py-[24px]
|
|
53
53
|
${isMobile ? `w-full` : ``}
|
|
54
54
|
`} style={{
|
|
55
55
|
boxShadow: '0px 4px 10px 0px #00000026'
|
|
@@ -80,7 +80,7 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
80
80
|
>
|
|
81
81
|
<section
|
|
82
82
|
className={`
|
|
83
|
-
flex h-[408px] flex-col rounded-[12px] bg-white px-[16px] py-[24px]
|
|
83
|
+
flex h-[408px] flex-col overflow-auto rounded-[12px] bg-white px-[16px] py-[24px]
|
|
84
84
|
${isMobile ? `w-full` : ``}
|
|
85
85
|
`}
|
|
86
86
|
style={{
|
|
@@ -36,7 +36,7 @@ const Tiptap = forwardRef(({ onChange, placeholder = '메시지를 입력하세
|
|
|
36
36
|
},
|
|
37
37
|
editorProps: {
|
|
38
38
|
attributes: {
|
|
39
|
-
class: 'focus:outline-none min-h-[34px] max-h-[72px] overflow-y-auto resize-none px-[10px] mt-[4px] pt-[
|
|
39
|
+
class: 'focus:outline-none min-h-[34px] max-h-[72px] overflow-y-auto resize-none px-[10px] mt-[4px] pt-[6px] pb-[4px] break-words whitespace-pre-wrap word-wrap break-word overflow-wrap-anywhere'
|
|
40
40
|
},
|
|
41
41
|
handleKeyDown: (view, event) => {
|
|
42
42
|
if (event.key === 'Enter') {
|
|
@@ -56,7 +56,7 @@ const Tiptap = forwardRef<TiptapEditorRef, TiptapProps>(
|
|
|
56
56
|
},
|
|
57
57
|
editorProps: {
|
|
58
58
|
attributes: {
|
|
59
|
-
class: 'focus:outline-none min-h-[34px] max-h-[72px] overflow-y-auto resize-none px-[10px] mt-[4px] pt-[
|
|
59
|
+
class: 'focus:outline-none min-h-[34px] max-h-[72px] overflow-y-auto resize-none px-[10px] mt-[4px] pt-[6px] pb-[4px] break-words whitespace-pre-wrap word-wrap break-word overflow-wrap-anywhere'
|
|
60
60
|
},
|
|
61
61
|
handleKeyDown: (view, event) => {
|
|
62
62
|
if (event.key === 'Enter') {
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import ContentList from '../SuccessNew/components/ContentList';
|
|
3
|
+
import { useEffect, useRef, useState } from 'react';
|
|
4
|
+
import useBrowser from '../../hook/useBrowser';
|
|
5
|
+
import { htmlUrlDecode } from '../../../lib';
|
|
6
|
+
import H2Contents from '../SuccessNew/components/H2Contents';
|
|
7
|
+
import H3Contents from '../SuccessNew/components/H3Contents';
|
|
8
|
+
import SeoAdditionalLink from '../SuccessNew/components/SeoAdditionalLink';
|
|
9
|
+
import SeoYoutube from '../../Seo/SeoYoutube';
|
|
10
|
+
import SeoStrength from '../../Seo/SeoStrength';
|
|
11
|
+
import SeoConsulting from '../../Seo/SeoConsulting';
|
|
12
|
+
import { Lawyer } from '../../Seo/Lawyer';
|
|
13
|
+
import LawInfoContentList from '../SuccessNew/components/LawInfoContentList';
|
|
14
|
+
import { SuccessCase } from '../SuccessNew/components/SuccessCase';
|
|
15
|
+
import { FieldCase } from '../SuccessNew/components/FieldCase';
|
|
16
|
+
import FieldWrapper from './FieldWrapper';
|
|
17
|
+
const FieldNewView = ({ data, tel }) => {
|
|
18
|
+
const { template, contentsList, h2List, lawyerData, fieldData, successData, groupTopTenLawyerList, referenceLinkList, newsLinkList, shortsLinkList, youtubeLinkList, initialData } = data;
|
|
19
|
+
const { width } = useBrowser(true);
|
|
20
|
+
const [relatedCaseLawyerList, setRelatedCaseLawyerList] = useState(lawyerData);
|
|
21
|
+
const [isFaqActive, setIsFaqActive] = useState(false);
|
|
22
|
+
const printRef = useRef(null);
|
|
23
|
+
const idxNum = template && template[0].type_idx;
|
|
24
|
+
const filteredFieldDataList = fieldData.filter(data => data.idx !== idxNum);
|
|
25
|
+
const h1Title = template
|
|
26
|
+
.map(temp => temp.tag === 'h1' && temp.tag_title)
|
|
27
|
+
.filter(temp => temp !== false)
|
|
28
|
+
.toString();
|
|
29
|
+
const h1Description = template
|
|
30
|
+
.map(temp => temp.tag === 'h1' && temp.description)
|
|
31
|
+
.filter(temp => temp !== false)
|
|
32
|
+
.toString();
|
|
33
|
+
const handleScrollToElement = (idx) => {
|
|
34
|
+
if (typeof window != 'undefined') {
|
|
35
|
+
const element = document.getElementById(idx.toString());
|
|
36
|
+
if (element) {
|
|
37
|
+
const topOffset = element.getBoundingClientRect().top;
|
|
38
|
+
window.scrollTo({
|
|
39
|
+
top: window.scrollY + topOffset - 130,
|
|
40
|
+
behavior: 'smooth'
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
// 변호사 6명 맞추기
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
const originLawyerLength = lawyerData.length;
|
|
48
|
+
const maxCount = 6; // 최대 변호사 수
|
|
49
|
+
const sliceCount = maxCount - originLawyerLength;
|
|
50
|
+
if (originLawyerLength < maxCount) {
|
|
51
|
+
// 중복되지 않은 변호사 리스트 생성
|
|
52
|
+
const additionalLawyers = groupTopTenLawyerList
|
|
53
|
+
.filter(topLawyer => !lawyerData.some(lawyer => lawyer.lawyer_name === topLawyer.lawyer_name))
|
|
54
|
+
.slice(0, sliceCount);
|
|
55
|
+
// 변호사 리스트 업데이트 (중복 방지)
|
|
56
|
+
setRelatedCaseLawyerList([...lawyerData, ...additionalLawyers]);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
// 변호사 수가 충분하면 최대 6명만 설정
|
|
60
|
+
setRelatedCaseLawyerList(lawyerData.slice(0, maxCount));
|
|
61
|
+
}
|
|
62
|
+
}, [lawyerData, groupTopTenLawyerList]);
|
|
63
|
+
useEffect(() => {
|
|
64
|
+
if (template) {
|
|
65
|
+
// 초기화
|
|
66
|
+
setIsFaqActive(false);
|
|
67
|
+
for (const data of template) {
|
|
68
|
+
// console.log("faq 활성화: ", data['active_faq']);
|
|
69
|
+
if (data['active_faq']) {
|
|
70
|
+
setIsFaqActive(true);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}, [template]);
|
|
75
|
+
return (<>
|
|
76
|
+
<div id={'sub_contents'}>
|
|
77
|
+
<FieldWrapper className="relative m-auto mb-[100px] mt-[7em] w-[90%] font-[SUIT] max-sm:mt-[70px] max-xs:mb-[30px] lg:mt-[5em]">
|
|
78
|
+
<div className={'m-auto mt-[3em] flex gap-[120px] ' +
|
|
79
|
+
//1700px
|
|
80
|
+
'max-5xl:gap-[80px] ' +
|
|
81
|
+
//1500px
|
|
82
|
+
'max-3xl:gap-10 ' +
|
|
83
|
+
'max-xl:flex-col max-xl:gap-0 lg:mt-[5em]'}>
|
|
84
|
+
<div>
|
|
85
|
+
{/* h1 제목 */}
|
|
86
|
+
<h1 className={'text-[52.5px] font-[800] tracking-[-2.1px] text-[#285FA7] max-3xl:text-5xl max-md:text-4xl max-xs:text-[28px]'}>
|
|
87
|
+
{h1Title}
|
|
88
|
+
</h1>
|
|
89
|
+
|
|
90
|
+
{/* h1 설명글 */}
|
|
91
|
+
<div className={'mb-[54px] mt-[16px] whitespace-break-spaces 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]'}>
|
|
92
|
+
<div id={'ck-content'} dangerouslySetInnerHTML={{
|
|
93
|
+
__html: htmlUrlDecode(h1Description.replace('../../UploadFile', '/SE2/upload'))
|
|
94
|
+
}}/>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<article>
|
|
98
|
+
{/* 목차 */}
|
|
99
|
+
<ContentList template={template} h2List={h2List || []} onScrollToElement={handleScrollToElement}/>
|
|
100
|
+
|
|
101
|
+
{/* h2 */}
|
|
102
|
+
{h2List === null || h2List === void 0 ? void 0 : h2List.map((h2Template, index) => (<section className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'} key={'h2영역' + h2Template.idx}>
|
|
103
|
+
<H2Contents h2Template={h2Template} index={index}/>
|
|
104
|
+
{/* h3 */}
|
|
105
|
+
{template
|
|
106
|
+
.filter(t => t.parent === h2Template.idx)
|
|
107
|
+
.map((h3Template, h3Index) => {
|
|
108
|
+
return (<>
|
|
109
|
+
<H3Contents h3Template={h3Template} key={'h3영역' + h3Template.idx}/>
|
|
110
|
+
{(h3Template.reference_is_use &&
|
|
111
|
+
referenceLinkList.length > 0) ||
|
|
112
|
+
(h3Template.news_is_use && newsLinkList.length > 0) ? (<span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
113
|
+
//520px
|
|
114
|
+
'max-2sm:gap-[16px]'}>
|
|
115
|
+
{h3Template.reference_is_use &&
|
|
116
|
+
referenceLinkList.length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
117
|
+
{h3Template.news_is_use && newsLinkList.length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
118
|
+
</span>) : (<></>)}
|
|
119
|
+
</>);
|
|
120
|
+
})}
|
|
121
|
+
<span className={'flex flex-col gap-[26px] ' +
|
|
122
|
+
// 520px
|
|
123
|
+
'max-2sm:gap-[16px]'}>
|
|
124
|
+
{h2Template.reference_is_use && referenceLinkList.length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h2Template.idx)}/>)}
|
|
125
|
+
{h2Template.news_is_use && newsLinkList.length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h2Template.idx)}/>)}
|
|
126
|
+
{h2Template.youtube_is_use && (<>
|
|
127
|
+
{shortsLinkList.length > 0 && (<SeoYoutube type={'shorts'} linkList={shortsLinkList.filter(i => i.tag_idx === h2Template.idx)}/>)}
|
|
128
|
+
{youtubeLinkList.length > 0 && (<SeoYoutube type={'youtube'} linkList={youtubeLinkList.filter(i => i.tag_idx === h2Template.idx)}/>)}
|
|
129
|
+
</>)}
|
|
130
|
+
</span>
|
|
131
|
+
</section>))}
|
|
132
|
+
</article>
|
|
133
|
+
{width >= 1280 ? (<div className={'flex flex-col gap-[60px] lg:mt-[60px]'}>
|
|
134
|
+
<div className={'relative w-full'}>
|
|
135
|
+
<SeoStrength initialData={initialData}/>
|
|
136
|
+
</div>
|
|
137
|
+
<SeoConsulting tel={tel}/>
|
|
138
|
+
<LawInfoContentList contentsList={contentsList} template={template} className={''}/>
|
|
139
|
+
</div>) : (<></>)}
|
|
140
|
+
</div>
|
|
141
|
+
|
|
142
|
+
{(filteredFieldDataList.length > 0 ||
|
|
143
|
+
relatedCaseLawyerList.length > 0 ||
|
|
144
|
+
successData.length > 0) && (<span className={'relative mb-[30px] mt-[170px] w-[340px] shrink-0 ' +
|
|
145
|
+
// 1500px
|
|
146
|
+
'max-3xl:mt-[150px] max-3xl:w-[300px] ' +
|
|
147
|
+
// 1280px
|
|
148
|
+
'max-xl:mt-[50px] max-xl:w-full max-xl:pt-0'}>
|
|
149
|
+
<span id={'fixSideBar'} className={'top-[140px] flex w-[340px] flex-col gap-[50px] xl:sticky ' +
|
|
150
|
+
'max-3xl:w-[300px] max-xl:w-full'}>
|
|
151
|
+
{successData.length > 0 && <SuccessCase successData={successData}/>}
|
|
152
|
+
{fieldData.length > 0 && <FieldCase fieldData={fieldData}/>}
|
|
153
|
+
{relatedCaseLawyerList.length > 0 && <Lawyer lawyerData={relatedCaseLawyerList}/>}
|
|
154
|
+
</span>
|
|
155
|
+
</span>)}
|
|
156
|
+
</div>
|
|
157
|
+
</FieldWrapper>
|
|
158
|
+
<FieldWrapper className="m-auto mb-[100px] max-xs:mb-[60px] lg:mt-[5em]">
|
|
159
|
+
{width < 1280 ? (<div className="m-auto flex flex-col gap-[60px] max-4xl:w-[90%]">
|
|
160
|
+
<div className={'relative w-full lg:mb-20'}>
|
|
161
|
+
<SeoStrength initialData={initialData}/>
|
|
162
|
+
</div>
|
|
163
|
+
<SeoConsulting tel={tel}/>
|
|
164
|
+
<LawInfoContentList contentsList={contentsList} template={template}/>
|
|
165
|
+
</div>) : (<></>)}
|
|
166
|
+
</FieldWrapper>
|
|
167
|
+
</div>
|
|
168
|
+
</>);
|
|
169
|
+
};
|
|
170
|
+
export default FieldNewView;
|