@daeryun/dr_components 0.9.7 → 0.9.9
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/ChatConversation.jsx +1 -1
- package/dist/components/Daeryuntalk/ChatConversation.tsx +3 -1
- package/dist/components/Daeryuntalk/HomeView.jsx +7 -5
- package/dist/components/Daeryuntalk/HomeView.tsx +6 -5
- package/dist/components/Daeryuntalk/_api/daeryuntalk/index.js +12 -2
- package/dist/components/Daeryuntalk/_api/daeryuntalk/index.ts +16 -2
- package/dist/components/Daeryuntalk/_hooks/useScrollShadow.d.ts +1 -0
- package/dist/components/Daeryuntalk/_hooks/useScrollShadow.js +20 -5
- package/dist/components/Daeryuntalk/_hooks/useScrollShadow.ts +23 -5
- package/dist/components/Daeryuntalk/index.jsx +2 -2
- package/dist/components/Daeryuntalk/index.tsx +2 -2
- package/dist/components/Seo/SeoStrength.jsx +7 -2
- package/dist/components/Seo/SeoStrength.tsx +16 -5
- package/dist/components/common/initialData/index.js +2 -1
- package/dist/components/common/initialData/index.ts +2 -1
- package/dist/components/common/strength/index.js +69 -118
- package/dist/components/common/strength/index.ts +69 -118
- package/dist/components/common/types/index.d.ts +1 -0
- package/dist/components/common/types/index.ts +1 -0
- package/dist/components/page/Login/_api/checkThirdPartyCookie.d.ts +4 -1
- package/dist/components/page/Login/_api/checkThirdPartyCookie.js +4 -1
- package/dist/components/page/Login/_api/checkThirdPartyCookie.ts +4 -1
- package/dist/components/page/Login/_fetch/serverFetch.js +3 -0
- package/dist/components/page/Login/_fetch/serverFetch.ts +3 -0
- package/dist/components/page/Login/_hooks/useAppLoginDetect.d.ts +3 -0
- package/dist/components/page/Login/_hooks/useAppLoginDetect.js +3 -0
- package/dist/components/page/Login/_hooks/useAppLoginDetect.ts +3 -0
- package/dist/components/page/Login/_hooks/useLogout.js +3 -0
- package/dist/components/page/Login/_hooks/useLogout.ts +3 -0
- package/dist/components/page/Login/_lib/goToAIDaeryun.js +3 -0
- package/dist/components/page/Login/_lib/goToAIDaeryun.ts +3 -0
- package/dist/components/page/Strength/Strength.d.ts +2 -1
- package/dist/components/page/Strength/Strength.jsx +2 -2
- package/dist/components/page/Strength/Strength.tsx +2 -2
- package/dist/components/page/Strength/StrengthIntro.jsx +105 -121
- package/dist/components/page/Strength/StrengthIntro.tsx +134 -156
- package/dist/components/page/Strength/StrengthList.d.ts +2 -1
- package/dist/components/page/Strength/StrengthList.jsx +12 -8
- package/dist/components/page/Strength/StrengthList.tsx +30 -7
- package/dist/lib/utils.js +2 -0
- package/dist/lib/utils.ts +2 -0
- package/dist/styles/globals.css +62 -489
- package/dist/styles/homepage_login.css +173 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
|
@@ -177,7 +177,7 @@ const ChatConversation = ({ onBackClick, onChatNew, isActive, isMobile, onClose,
|
|
|
177
177
|
{renderedMessages}
|
|
178
178
|
{/* 타이핑 UI */}
|
|
179
179
|
{isTyping && <TypingComp />}
|
|
180
|
-
{inquiryStatus === InquiryStatusEnum.CLOSED && (<div className={` dr_talk_body_medium2 text-center text-drTalkGrayscale1
|
|
180
|
+
{inquiryStatus === InquiryStatusEnum.CLOSED && (<div className={` dr_talk_body_medium2 pb-[16px] text-center text-drTalkGrayscale1`}>
|
|
181
181
|
문의가 종료되었습니다.
|
|
182
182
|
</div>)}
|
|
183
183
|
{isLoading && <ChatLoading />}
|
|
@@ -268,7 +268,9 @@ const ChatConversation: React.FC<ChatConversationProps> = ({
|
|
|
268
268
|
{/* 타이핑 UI */}
|
|
269
269
|
{isTyping && <TypingComp />}
|
|
270
270
|
{inquiryStatus === InquiryStatusEnum.CLOSED && (
|
|
271
|
-
<div
|
|
271
|
+
<div
|
|
272
|
+
className={` dr_talk_body_medium2 pb-[16px] text-center text-drTalkGrayscale1`}
|
|
273
|
+
>
|
|
272
274
|
문의가 종료되었습니다.
|
|
273
275
|
</div>
|
|
274
276
|
)}
|
|
@@ -11,7 +11,7 @@ import CloseSvgIcon from '../../asset/images/daeryuntalk/close.svg';
|
|
|
11
11
|
import { useScrollShadow } from './_hooks/useScrollShadow';
|
|
12
12
|
import Button3 from './_ui/buttons/Button3';
|
|
13
13
|
const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClose, isHash }) => {
|
|
14
|
-
const { containerRef, isScroll, isBottom, checkScroll } = useScrollShadow();
|
|
14
|
+
const { containerRef, isScroll, isBottom, checkScroll, isScrolling } = useScrollShadow();
|
|
15
15
|
const wrapperRef = useRef(null);
|
|
16
16
|
const [contentHeight, setContentHeight] = useState(210);
|
|
17
17
|
const currentHeightRef = useRef(210);
|
|
@@ -72,6 +72,9 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
72
72
|
setContentHeight(next);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
+
else {
|
|
76
|
+
setContentHeight(210);
|
|
77
|
+
}
|
|
75
78
|
}
|
|
76
79
|
};
|
|
77
80
|
let rafId;
|
|
@@ -111,11 +114,11 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
111
114
|
: ` w-full object-contain object-top will-change-transform `}`}/>
|
|
112
115
|
</div>
|
|
113
116
|
|
|
114
|
-
<div className={`relative z-10 px-[20px] ${isMobile ? 'flex w-full justify-center' : 'flex h-full w-full flex-col justify-center pb-[34px] xs:h-fit'}`}>
|
|
115
|
-
<section className={` flex flex-col rounded-[12px] bg-white px-[16px] py-[24px] ${isMobile ? 'w-full' : ''}`} style={{ boxShadow: '0px 4px 10px 0px #00000026' }}>
|
|
117
|
+
<div className={` relative z-10 px-[20px] ${isMobile ? 'flex w-full justify-center pb-[20px]' : 'flex h-full w-full flex-col justify-center pb-[34px] xs:h-fit'}`}>
|
|
118
|
+
<section className={` flex flex-col rounded-[12px] bg-white px-[16px] py-[24px] sm:h-fit ${isMobile ? 'w-full' : ''}`} style={{ boxShadow: '0px 4px 10px 0px #00000026' }}>
|
|
116
119
|
{/* 해당 컴포넌트의 최상위 부모와 브라우저 상단과 닿았을 때 우선적으로 해당 부분의 높이가 먼저 줄어들게 하고 싶다*/}
|
|
117
120
|
<div className="relative">
|
|
118
|
-
<div ref={containerRef} className=
|
|
121
|
+
<div ref={containerRef} className={`no-scrollbar flex max-h-[210px] min-h-[80px] flex-col overflow-auto`} style={{ maxHeight: `${contentHeight}px` }}>
|
|
119
122
|
<div className="flex items-center gap-[10px]">
|
|
120
123
|
{(inquiryMainData === null || inquiryMainData === void 0 ? void 0 : inquiryMainData.channel_logo_image_url) ? (<Image src={inquiryMainData.channel_logo_image_url} alt="로고" width={32} height={32}/>) : (<DaeryunLogoIcon width={24} height={24} className="mr-2"/>)}
|
|
121
124
|
<h1 className="dr_talk_title_small text-drTalkBlack">
|
|
@@ -144,7 +147,6 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
144
147
|
</div>
|
|
145
148
|
</section>
|
|
146
149
|
</div>
|
|
147
|
-
{isMobile && <div />}
|
|
148
150
|
</div>);
|
|
149
151
|
};
|
|
150
152
|
export default HomeView;
|
|
@@ -24,7 +24,7 @@ interface IHomeViewProps {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClose, isHash }: IHomeViewProps) => {
|
|
27
|
-
const { containerRef, isScroll, isBottom, checkScroll } = useScrollShadow<HTMLDivElement>();
|
|
27
|
+
const { containerRef, isScroll, isBottom, checkScroll, isScrolling } = useScrollShadow<HTMLDivElement>();
|
|
28
28
|
|
|
29
29
|
const wrapperRef = useRef<HTMLDivElement | null>(null);
|
|
30
30
|
const [contentHeight, setContentHeight] = useState(210);
|
|
@@ -88,6 +88,8 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
88
88
|
currentHeightRef.current = next;
|
|
89
89
|
setContentHeight(next);
|
|
90
90
|
}
|
|
91
|
+
} else {
|
|
92
|
+
setContentHeight(210);
|
|
91
93
|
}
|
|
92
94
|
}
|
|
93
95
|
};
|
|
@@ -150,17 +152,17 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
150
152
|
</div>
|
|
151
153
|
|
|
152
154
|
<div
|
|
153
|
-
className={`relative z-10 px-[20px] ${isMobile ? 'flex w-full justify-center' : 'flex h-full w-full flex-col justify-center pb-[34px] xs:h-fit'}`}
|
|
155
|
+
className={` relative z-10 px-[20px] ${isMobile ? 'flex w-full justify-center pb-[20px]' : 'flex h-full w-full flex-col justify-center pb-[34px] xs:h-fit'}`}
|
|
154
156
|
>
|
|
155
157
|
<section
|
|
156
|
-
className={` flex flex-col rounded-[12px] bg-white px-[16px] py-[24px] ${isMobile ? 'w-full' : ''}`}
|
|
158
|
+
className={` flex flex-col rounded-[12px] bg-white px-[16px] py-[24px] sm:h-fit ${isMobile ? 'w-full' : ''}`}
|
|
157
159
|
style={{ boxShadow: '0px 4px 10px 0px #00000026' }}
|
|
158
160
|
>
|
|
159
161
|
{/* 해당 컴포넌트의 최상위 부모와 브라우저 상단과 닿았을 때 우선적으로 해당 부분의 높이가 먼저 줄어들게 하고 싶다*/}
|
|
160
162
|
<div className="relative">
|
|
161
163
|
<div
|
|
162
164
|
ref={containerRef}
|
|
163
|
-
className=
|
|
165
|
+
className={`no-scrollbar flex max-h-[210px] min-h-[80px] flex-col overflow-auto`}
|
|
164
166
|
style={{ maxHeight: `${contentHeight}px` }}
|
|
165
167
|
>
|
|
166
168
|
<div className="flex items-center gap-[10px]">
|
|
@@ -208,7 +210,6 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
208
210
|
</div>
|
|
209
211
|
</section>
|
|
210
212
|
</div>
|
|
211
|
-
{isMobile && <div />}
|
|
212
213
|
</div>
|
|
213
214
|
);
|
|
214
215
|
};
|
|
@@ -71,7 +71,8 @@ function retryable(fn_1) {
|
|
|
71
71
|
* 쿠키 지원이 포함된 기본 fetch 함수
|
|
72
72
|
*/
|
|
73
73
|
function fetchWithCookies(url_1) {
|
|
74
|
-
return __awaiter(this, arguments, void 0, function* (url, options = {}, version = DEFAULT_API_VERSION
|
|
74
|
+
return __awaiter(this, arguments, void 0, function* (url, options = {}, version = DEFAULT_API_VERSION, timeoutMs = 10000 // ⏰ 기본 타임아웃 10초
|
|
75
|
+
) {
|
|
75
76
|
var _a, _b, _c, _d, _e;
|
|
76
77
|
const headers = new Headers(options.headers || {});
|
|
77
78
|
if (!headers.has('Content-Type')) {
|
|
@@ -84,10 +85,13 @@ function fetchWithCookies(url_1) {
|
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
headers.set('v', version);
|
|
88
|
+
const controller = new AbortController();
|
|
89
|
+
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
87
90
|
const mergedOptions = Object.assign(Object.assign({ credentials: 'include' }, options), { headers });
|
|
88
91
|
const isAuthRequest = url.includes(ENDPOINTS.AUTHENTICATE);
|
|
89
92
|
try {
|
|
90
93
|
const response = yield fetch(url, mergedOptions);
|
|
94
|
+
clearTimeout(timer); // ✅ 정상 응답이면 타이머 해제
|
|
91
95
|
const contentLength = response.headers.get('content-length');
|
|
92
96
|
const isEmpty = contentLength === '0';
|
|
93
97
|
let data = null;
|
|
@@ -122,12 +126,18 @@ function fetchWithCookies(url_1) {
|
|
|
122
126
|
};
|
|
123
127
|
}
|
|
124
128
|
catch (error) {
|
|
129
|
+
console.error(`[API 호출 실패] ${url}`, error);
|
|
130
|
+
clearTimeout(timer); // 💡 에러 발생 시에도 타이머 정리
|
|
125
131
|
console.error(`[API 호출 실패] ${url}`, error);
|
|
126
132
|
return {
|
|
127
133
|
result_info: {
|
|
128
134
|
result_cd: 'FETCH_ERROR',
|
|
129
135
|
result_type_cd: 'ERROR',
|
|
130
|
-
result_msg: error instanceof
|
|
136
|
+
result_msg: error instanceof DOMException && error.name === 'AbortError'
|
|
137
|
+
? '요청 시간이 초과되었습니다.'
|
|
138
|
+
: error instanceof Error
|
|
139
|
+
? error.message
|
|
140
|
+
: '알 수 없는 오류'
|
|
131
141
|
},
|
|
132
142
|
data: null
|
|
133
143
|
};
|
|
@@ -91,7 +91,8 @@ async function retryable<T>(fn: () => Promise<T>, maxAttempts = 3, delayMs = 350
|
|
|
91
91
|
async function fetchWithCookies<T>(
|
|
92
92
|
url: string,
|
|
93
93
|
options: RequestInit = {},
|
|
94
|
-
version: string = DEFAULT_API_VERSION
|
|
94
|
+
version: string = DEFAULT_API_VERSION,
|
|
95
|
+
timeoutMs: number = 10000 // ⏰ 기본 타임아웃 10초
|
|
95
96
|
): Promise<IDaeryunTalkResponseWrapper<T>> {
|
|
96
97
|
const headers = new Headers(options.headers || {});
|
|
97
98
|
|
|
@@ -108,6 +109,9 @@ async function fetchWithCookies<T>(
|
|
|
108
109
|
|
|
109
110
|
headers.set('v', version);
|
|
110
111
|
|
|
112
|
+
const controller = new AbortController();
|
|
113
|
+
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
114
|
+
|
|
111
115
|
const mergedOptions: RequestInit = {
|
|
112
116
|
credentials: 'include',
|
|
113
117
|
...options,
|
|
@@ -119,6 +123,8 @@ async function fetchWithCookies<T>(
|
|
|
119
123
|
try {
|
|
120
124
|
const response = await fetch(url, mergedOptions);
|
|
121
125
|
|
|
126
|
+
clearTimeout(timer); // ✅ 정상 응답이면 타이머 해제
|
|
127
|
+
|
|
122
128
|
const contentLength = response.headers.get('content-length');
|
|
123
129
|
const isEmpty = contentLength === '0';
|
|
124
130
|
|
|
@@ -155,12 +161,20 @@ async function fetchWithCookies<T>(
|
|
|
155
161
|
data: data?.data ?? ({} as T)
|
|
156
162
|
};
|
|
157
163
|
} catch (error) {
|
|
164
|
+
console.error(`[API 호출 실패] ${url}`, error);
|
|
165
|
+
clearTimeout(timer); // 💡 에러 발생 시에도 타이머 정리
|
|
166
|
+
|
|
158
167
|
console.error(`[API 호출 실패] ${url}`, error);
|
|
159
168
|
return {
|
|
160
169
|
result_info: {
|
|
161
170
|
result_cd: 'FETCH_ERROR',
|
|
162
171
|
result_type_cd: 'ERROR',
|
|
163
|
-
result_msg:
|
|
172
|
+
result_msg:
|
|
173
|
+
error instanceof DOMException && error.name === 'AbortError'
|
|
174
|
+
? '요청 시간이 초과되었습니다.'
|
|
175
|
+
: error instanceof Error
|
|
176
|
+
? error.message
|
|
177
|
+
: '알 수 없는 오류'
|
|
164
178
|
},
|
|
165
179
|
data: null as any
|
|
166
180
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { useEffect, useRef, useState
|
|
1
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
2
|
export function useScrollShadow() {
|
|
3
3
|
const containerRef = useRef(null);
|
|
4
4
|
const [isScroll, setIsScroll] = useState(false);
|
|
5
5
|
const [isBottom, setIsBottom] = useState(false);
|
|
6
|
+
const [isScrolling, setIsScrolling] = useState(false);
|
|
7
|
+
const scrollTimeoutRef = useRef(null);
|
|
6
8
|
const checkScroll = useCallback(() => {
|
|
7
9
|
const container = containerRef.current;
|
|
8
10
|
if (!container)
|
|
@@ -12,16 +14,29 @@ export function useScrollShadow() {
|
|
|
12
14
|
setIsScroll(scrollHeight > clientHeight);
|
|
13
15
|
setIsBottom(scrollPercentage >= 0.98);
|
|
14
16
|
}, []);
|
|
17
|
+
const handleScroll = useCallback(() => {
|
|
18
|
+
checkScroll();
|
|
19
|
+
setIsScrolling(true);
|
|
20
|
+
if (scrollTimeoutRef.current) {
|
|
21
|
+
clearTimeout(scrollTimeoutRef.current);
|
|
22
|
+
}
|
|
23
|
+
scrollTimeoutRef.current = setTimeout(() => {
|
|
24
|
+
setIsScrolling(false);
|
|
25
|
+
}, 800); // 스크롤 멈춘 후 800ms 뒤 isScrolling false
|
|
26
|
+
}, [checkScroll]);
|
|
15
27
|
useEffect(() => {
|
|
16
28
|
const container = containerRef.current;
|
|
17
29
|
if (!container)
|
|
18
30
|
return;
|
|
19
|
-
container.addEventListener('scroll',
|
|
31
|
+
container.addEventListener('scroll', handleScroll);
|
|
20
32
|
// mount 시 초기 상태 확인
|
|
21
33
|
checkScroll();
|
|
22
34
|
return () => {
|
|
23
|
-
container.removeEventListener('scroll',
|
|
35
|
+
container.removeEventListener('scroll', handleScroll);
|
|
36
|
+
if (scrollTimeoutRef.current) {
|
|
37
|
+
clearTimeout(scrollTimeoutRef.current);
|
|
38
|
+
}
|
|
24
39
|
};
|
|
25
|
-
}, [checkScroll]);
|
|
26
|
-
return { containerRef, isScroll, isBottom, checkScroll };
|
|
40
|
+
}, [handleScroll, checkScroll]);
|
|
41
|
+
return { containerRef, isScroll, isBottom, isScrolling, checkScroll };
|
|
27
42
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { useEffect, useRef, useState
|
|
1
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
2
|
|
|
3
3
|
export function useScrollShadow<T extends HTMLElement>() {
|
|
4
4
|
const containerRef = useRef<T | null>(null);
|
|
5
5
|
const [isScroll, setIsScroll] = useState(false);
|
|
6
6
|
const [isBottom, setIsBottom] = useState(false);
|
|
7
|
+
const [isScrolling, setIsScrolling] = useState(false);
|
|
8
|
+
const scrollTimeoutRef = useRef<NodeJS.Timeout | null>(null);
|
|
7
9
|
|
|
8
10
|
const checkScroll = useCallback(() => {
|
|
9
11
|
const container = containerRef.current;
|
|
@@ -16,19 +18,35 @@ export function useScrollShadow<T extends HTMLElement>() {
|
|
|
16
18
|
setIsBottom(scrollPercentage >= 0.98);
|
|
17
19
|
}, []);
|
|
18
20
|
|
|
21
|
+
const handleScroll = useCallback(() => {
|
|
22
|
+
checkScroll();
|
|
23
|
+
setIsScrolling(true);
|
|
24
|
+
|
|
25
|
+
if (scrollTimeoutRef.current) {
|
|
26
|
+
clearTimeout(scrollTimeoutRef.current);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
scrollTimeoutRef.current = setTimeout(() => {
|
|
30
|
+
setIsScrolling(false);
|
|
31
|
+
}, 800); // 스크롤 멈춘 후 800ms 뒤 isScrolling false
|
|
32
|
+
}, [checkScroll]);
|
|
33
|
+
|
|
19
34
|
useEffect(() => {
|
|
20
35
|
const container = containerRef.current;
|
|
21
36
|
if (!container) return;
|
|
22
37
|
|
|
23
|
-
container.addEventListener('scroll',
|
|
38
|
+
container.addEventListener('scroll', handleScroll);
|
|
24
39
|
|
|
25
40
|
// mount 시 초기 상태 확인
|
|
26
41
|
checkScroll();
|
|
27
42
|
|
|
28
43
|
return () => {
|
|
29
|
-
container.removeEventListener('scroll',
|
|
44
|
+
container.removeEventListener('scroll', handleScroll);
|
|
45
|
+
if (scrollTimeoutRef.current) {
|
|
46
|
+
clearTimeout(scrollTimeoutRef.current);
|
|
47
|
+
}
|
|
30
48
|
};
|
|
31
|
-
}, [checkScroll]);
|
|
49
|
+
}, [handleScroll, checkScroll]);
|
|
32
50
|
|
|
33
|
-
return { containerRef, isScroll, isBottom, checkScroll };
|
|
51
|
+
return { containerRef, isScroll, isBottom, isScrolling, checkScroll };
|
|
34
52
|
}
|
|
@@ -31,7 +31,7 @@ const Daeryuntalk = ({ tel = '1800-7905', centerCode = 'CT0000' }) => {
|
|
|
31
31
|
}, 300);
|
|
32
32
|
};
|
|
33
33
|
useEffect(() => {
|
|
34
|
-
if (isOpen
|
|
34
|
+
if (isOpen) {
|
|
35
35
|
document.body.style.overflow = 'hidden';
|
|
36
36
|
}
|
|
37
37
|
else {
|
|
@@ -74,7 +74,7 @@ const Daeryuntalk = ({ tel = '1800-7905', centerCode = 'CT0000' }) => {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}, []);
|
|
77
|
-
return (<div className="daeryuntalk-wrapper">
|
|
77
|
+
return (<div className="daeryuntalk-wrapper my-scroll-container">
|
|
78
78
|
<DaeryuntalkToastProvider>
|
|
79
79
|
<ViewportHandler />
|
|
80
80
|
<DaeryuntalkProvider propsTel={tel} isMobile={isMobile} onClose={closeModal} centerCode={centerCode}>
|
|
@@ -44,7 +44,7 @@ const Daeryuntalk: React.FC<DaeryuntalkProps> = ({ tel = '1800-7905', centerCode
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
useEffect(() => {
|
|
47
|
-
if (isOpen
|
|
47
|
+
if (isOpen) {
|
|
48
48
|
document.body.style.overflow = 'hidden';
|
|
49
49
|
} else {
|
|
50
50
|
document.body.style.overflow = '';
|
|
@@ -94,7 +94,7 @@ const Daeryuntalk: React.FC<DaeryuntalkProps> = ({ tel = '1800-7905', centerCode
|
|
|
94
94
|
}, []);
|
|
95
95
|
|
|
96
96
|
return (
|
|
97
|
-
<div className="daeryuntalk-wrapper">
|
|
97
|
+
<div className="daeryuntalk-wrapper my-scroll-container">
|
|
98
98
|
<DaeryuntalkToastProvider>
|
|
99
99
|
<ViewportHandler />
|
|
100
100
|
<DaeryuntalkProvider propsTel={tel} isMobile={isMobile} onClose={closeModal} centerCode={centerCode}>
|
|
@@ -11,7 +11,7 @@ const SeoStrength = ({ initialData }) => {
|
|
|
11
11
|
const data = [
|
|
12
12
|
'로펌 대륜만의 <b>AI·IT</b>\n기술 활용 소송 전략',
|
|
13
13
|
`<b>${initialData.pro_count}명 이상</b>의\n주요 구성원`,
|
|
14
|
-
|
|
14
|
+
`${initialData.consult_date}\n총 <b>${initialData.experience_cnt}+</b>건의\n사건수행건수` // Use template literal to inject initialData
|
|
15
15
|
];
|
|
16
16
|
const iconComponents = {
|
|
17
17
|
0: Icon1,
|
|
@@ -46,7 +46,12 @@ const SeoStrength = ({ initialData }) => {
|
|
|
46
46
|
})}
|
|
47
47
|
</div>
|
|
48
48
|
|
|
49
|
-
<
|
|
49
|
+
<span>
|
|
50
|
+
<div className="max-lg:w-[250px] max-lg:text-left max-sm:w-[180px]" dangerouslySetInnerHTML={{ __html: item.replace(/\n/g, '<br />') }}></div>
|
|
51
|
+
{index === 2 && (<p className={'mt-1 text-left text-[0.7em] text-[#666] max-lg:mt-[2px] max-md:text-[0.75em] '}>
|
|
52
|
+
*대한변협 광고 규정 제4조 제1호 준수
|
|
53
|
+
</p>)}
|
|
54
|
+
</span>
|
|
50
55
|
</div>))}
|
|
51
56
|
</div>
|
|
52
57
|
|
|
@@ -15,7 +15,7 @@ const SeoStrength = ({ initialData }: { initialData: IInitialDataTypes }) => {
|
|
|
15
15
|
const data = [
|
|
16
16
|
'로펌 대륜만의 <b>AI·IT</b>\n기술 활용 소송 전략',
|
|
17
17
|
`<b>${initialData.pro_count}명 이상</b>의\n주요 구성원`,
|
|
18
|
-
|
|
18
|
+
`${initialData.consult_date}\n총 <b>${initialData.experience_cnt}+</b>건의\n사건수행건수` // Use template literal to inject initialData
|
|
19
19
|
];
|
|
20
20
|
|
|
21
21
|
const iconComponents: any = {
|
|
@@ -69,10 +69,21 @@ const SeoStrength = ({ initialData }: { initialData: IInitialDataTypes }) => {
|
|
|
69
69
|
})}
|
|
70
70
|
</div>
|
|
71
71
|
|
|
72
|
-
<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
<span>
|
|
73
|
+
<div
|
|
74
|
+
className="max-lg:w-[250px] max-lg:text-left max-sm:w-[180px]"
|
|
75
|
+
dangerouslySetInnerHTML={{ __html: item.replace(/\n/g, '<br />') }}
|
|
76
|
+
></div>
|
|
77
|
+
{index === 2 && (
|
|
78
|
+
<p
|
|
79
|
+
className={
|
|
80
|
+
'mt-1 text-left text-[0.7em] text-[#666] max-lg:mt-[2px] max-md:text-[0.75em] '
|
|
81
|
+
}
|
|
82
|
+
>
|
|
83
|
+
*대한변협 광고 규정 제4조 제1호 준수
|
|
84
|
+
</p>
|
|
85
|
+
)}
|
|
86
|
+
</span>
|
|
76
87
|
</div>
|
|
77
88
|
))}
|
|
78
89
|
</div>
|