@daeryun/dr_components 1.2.13 → 1.2.14
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/Daeryuntalk/ChatButton.jsx +2 -2
- package/dist/components/Daeryuntalk/ChatButton.tsx +2 -2
- package/dist/components/Daeryuntalk/ChatConversation.d.ts +2 -0
- package/dist/components/Daeryuntalk/ChatConversation.jsx +23 -35
- package/dist/components/Daeryuntalk/ChatConversation.tsx +43 -51
- package/dist/components/Daeryuntalk/ChatConversationItem/ChatConversationHeader.jsx +12 -9
- package/dist/components/Daeryuntalk/ChatConversationItem/ChatConversationHeader.tsx +18 -8
- package/dist/components/Daeryuntalk/ChatHomeView.d.ts +5 -1
- package/dist/components/Daeryuntalk/ChatHomeView.jsx +5 -6
- package/dist/components/Daeryuntalk/ChatHomeView.tsx +28 -13
- package/dist/components/Daeryuntalk/ChatInput.jsx +12 -7
- package/dist/components/Daeryuntalk/ChatInput.tsx +14 -7
- package/dist/components/Daeryuntalk/ChatItem/AgeCheckBox.jsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/AgeCheckBox.tsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/ChatFile.jsx +11 -6
- package/dist/components/Daeryuntalk/ChatItem/ChatFile.tsx +19 -5
- package/dist/components/Daeryuntalk/ChatItem/ChatLoading.jsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/ChatLoading.tsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/ChatPrivacyAuth.jsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/ChatPrivacyAuth.tsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/ChatWrapper.jsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/ChatWrapper.tsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/RichText.jsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/RichText.tsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/TimeWrapper.jsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/TimeWrapper.tsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/TypingComp.jsx +7 -2
- package/dist/components/Daeryuntalk/ChatItem/TypingComp.tsx +7 -3
- package/dist/components/Daeryuntalk/ChatItem/WorkFlowAuthForm.jsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/WorkFlowAuthForm.tsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/WorkFlowClickData.jsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/WorkFlowClickData.tsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/WorkFlowImg.jsx +1 -0
- package/dist/components/Daeryuntalk/ChatItem/WorkFlowImg.tsx +1 -0
- package/dist/components/Daeryuntalk/ChatMessage.jsx +9 -5
- package/dist/components/Daeryuntalk/ChatMessage.tsx +11 -4
- package/dist/components/Daeryuntalk/ChatObject/FieldWorkObject.jsx +8 -3
- package/dist/components/Daeryuntalk/ChatObject/FieldWorkObject.tsx +12 -3
- package/dist/components/Daeryuntalk/ChatObject/ObjectBack.jsx +7 -4
- package/dist/components/Daeryuntalk/ChatObject/ObjectBack.tsx +13 -3
- package/dist/components/Daeryuntalk/ChatObject/ObjectButton.jsx +1 -0
- package/dist/components/Daeryuntalk/ChatObject/ObjectButton.tsx +1 -0
- package/dist/components/Daeryuntalk/ChatWidget.d.ts +2 -0
- package/dist/components/Daeryuntalk/ChatWidget.jsx +50 -5
- package/dist/components/Daeryuntalk/ChatWidget.tsx +71 -5
- package/dist/components/Daeryuntalk/DateSeparator.jsx +1 -0
- package/dist/components/Daeryuntalk/DateSeparator.tsx +1 -0
- package/dist/components/Daeryuntalk/History/AuthForm.jsx +1 -0
- package/dist/components/Daeryuntalk/History/AuthForm.tsx +1 -0
- package/dist/components/Daeryuntalk/HistoryView.jsx +18 -12
- package/dist/components/Daeryuntalk/HistoryView.tsx +29 -11
- package/dist/components/Daeryuntalk/HomeView.jsx +17 -12
- package/dist/components/Daeryuntalk/HomeView.tsx +29 -12
- package/dist/components/Daeryuntalk/NavigationFooter.jsx +8 -5
- package/dist/components/Daeryuntalk/NavigationFooter.tsx +10 -4
- package/dist/components/Daeryuntalk/NoticeMessage.jsx +10 -4
- package/dist/components/Daeryuntalk/NoticeMessage.tsx +10 -4
- package/dist/components/Daeryuntalk/Tiptap/Tiptap.jsx +1 -0
- package/dist/components/Daeryuntalk/Tiptap/Tiptap.tsx +1 -0
- package/dist/components/Daeryuntalk/Toast/Toast.jsx +1 -0
- package/dist/components/Daeryuntalk/Toast/Toast.tsx +1 -0
- package/dist/components/Daeryuntalk/Viewer/MobileViewer.jsx +10 -7
- package/dist/components/Daeryuntalk/Viewer/MobileViewer.tsx +19 -6
- package/dist/components/Daeryuntalk/Viewer/TbPcViewer.jsx +22 -14
- package/dist/components/Daeryuntalk/Viewer/TbPcViewer.tsx +59 -13
- package/dist/components/Daeryuntalk/ViewportHandler.jsx +2 -0
- package/dist/components/Daeryuntalk/ViewportHandler.tsx +1 -0
- package/dist/components/Daeryuntalk/_lib/utils.d.ts +1 -1
- package/dist/components/Daeryuntalk/_lib/utils.js +1 -1
- package/dist/components/Daeryuntalk/_lib/utils.ts +1 -1
- package/dist/components/Daeryuntalk/_ui/checkboxs/CheckBox2.jsx +3 -2
- package/dist/components/Daeryuntalk/_ui/checkboxs/CheckBox2.tsx +5 -2
- package/dist/components/Daeryuntalk/index.jsx +61 -34
- package/dist/components/Daeryuntalk/index.tsx +71 -40
- package/dist/styles/daeryuntalk.css +4 -4
- package/dist/styles/globals.css +0 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -4,13 +4,14 @@ import { useScrollShadow } from './_hooks/useScrollShadow';
|
|
|
4
4
|
import ShadowBox from './_ui/ShadowBox';
|
|
5
5
|
import { formatTimestamp } from './_lib/utils';
|
|
6
6
|
import { useHoverScrollbar } from './_hooks/useHoverScrollbar';
|
|
7
|
-
|
|
8
|
-
import LinkRight from '../../asset/images/daeryuntalk/link_right.svg';
|
|
9
|
-
import EmptyMessage from '../../asset/images/daeryuntalk/empty_message.svg';
|
|
10
|
-
import SendIcon from '../../asset/images/daeryuntalk/send.svg';
|
|
11
|
-
import CloseSvgIcon from '../../asset/images/daeryuntalk/close.svg';
|
|
12
|
-
import PrevIcon from '../../asset/images/daeryuntalk/prev.svg';
|
|
7
|
+
import Image from 'next/image';
|
|
13
8
|
const HistoryView = ({ onBackClick, onChatHistoryClick, onNewChatClick, isAuthenticated, historyLit, goGetHistoryList, isMobile, onClose, isHash, handleGoRequestPhone, handleGoHistoryPhoneAuth }) => {
|
|
9
|
+
const s3Url = process.env.NEXT_PUBLIC_S3_URL;
|
|
10
|
+
const LinkRight = `${s3Url}/daeryuntalk/link_right.svg`;
|
|
11
|
+
const EmptyMessage = `${s3Url}/daeryuntalk/empty_message.svg`;
|
|
12
|
+
const SendIcon = `${s3Url}/daeryuntalk/send.svg`;
|
|
13
|
+
const CloseSvgIcon = `${s3Url}/daeryuntalk/close.svg`;
|
|
14
|
+
const PrevIcon = `${s3Url}/daeryuntalk/prev.svg`;
|
|
14
15
|
const { containerRef, isScroll, isBottom, checkScroll } = useScrollShadow();
|
|
15
16
|
const { style: hoverStyle } = useHoverScrollbar(containerRef);
|
|
16
17
|
useEffect(() => {
|
|
@@ -20,14 +21,15 @@ const HistoryView = ({ onBackClick, onChatHistoryClick, onNewChatClick, isAuthen
|
|
|
20
21
|
return (<div className={`
|
|
21
22
|
no-scrollbar relative w-full rounded-t-[30px]
|
|
22
23
|
${isMobile
|
|
23
|
-
? ` flex h-[
|
|
24
|
+
? ` flex h-[100%] flex-col items-center justify-start `
|
|
24
25
|
: ' flex h-[calc(100dvh)] flex-col items-center xs:h-[calc(100vh-165px)] lg:h-[calc(100vh-110px)] ' +
|
|
25
26
|
' xs:max-h-[690px] xs:min-h-[320px] '}
|
|
26
27
|
`}>
|
|
27
28
|
{/* 헤더 */}
|
|
28
29
|
<div className={`sub_title top-0 z-10 flex h-[56px] w-full items-center justify-between border-b border-gray-200 p-[16px]`}>
|
|
29
30
|
<button className="flex h-7 w-7 items-center justify-center" aria-label="이전" onClick={onBackClick}>
|
|
30
|
-
<PrevIcon width={28} height={28}/>
|
|
31
|
+
<Image src={PrevIcon} alt="이전" width={28} height={28}/>
|
|
32
|
+
{/* <PrevIcon width={28} height={28} /> */}
|
|
31
33
|
</button>
|
|
32
34
|
<div className="flex items-center">
|
|
33
35
|
<p className=" dr_talk_title_small ">히스토리</p>
|
|
@@ -35,7 +37,8 @@ const HistoryView = ({ onBackClick, onChatHistoryClick, onNewChatClick, isAuthen
|
|
|
35
37
|
<div
|
|
36
38
|
// className={`${isHash ? 'pointer-events-none !opacity-0' : ''} ${isMobile ? 'block' : ' xs:pointer-events-none xs:!opacity-0 '} py-[14px] text-drTalkGrayscale2 hover:cursor-pointer`}
|
|
37
39
|
className={`py-[14px] text-black hover:cursor-pointer`} onClick={onClose}>
|
|
38
|
-
<CloseSvgIcon width={28} height={28}/>
|
|
40
|
+
<Image src={CloseSvgIcon} alt="닫기" width={28} height={28}/>
|
|
41
|
+
{/* <CloseSvgIcon width={28} height={28} /> */}
|
|
39
42
|
</div>
|
|
40
43
|
</div>
|
|
41
44
|
|
|
@@ -59,11 +62,13 @@ const HistoryView = ({ onBackClick, onChatHistoryClick, onNewChatClick, isAuthen
|
|
|
59
62
|
<p className={`${history.unread_message_count && history.unread_message_count > 0 ? 'text-black' : 'text-drTalkGrayscale2'} dr_talk_body_medium2 line-clamp-2 w-[calc(100%-24px)] `}>
|
|
60
63
|
{history.recent_message_content}
|
|
61
64
|
</p>
|
|
62
|
-
<LinkRight width={18} height={18} className="flex-shrink-0"/>
|
|
65
|
+
<Image src={LinkRight} alt="링크" width={18} height={18} className="flex-shrink-0"/>
|
|
66
|
+
{/* <LinkRight width={18} height={18} className="flex-shrink-0" /> */}
|
|
63
67
|
</div>
|
|
64
68
|
</div>))) : (<div className="flex h-full flex-col items-center justify-center p-4">
|
|
65
69
|
<div className="mb-4">
|
|
66
|
-
<EmptyMessage />
|
|
70
|
+
<Image src={EmptyMessage} alt="빈 메시지" width={82} height={64}/>
|
|
71
|
+
{/* <EmptyMessage /> */}
|
|
67
72
|
</div>
|
|
68
73
|
<p className="text-center text-gray-500">
|
|
69
74
|
이전 대화기록이 없습니다
|
|
@@ -80,7 +85,8 @@ const HistoryView = ({ onBackClick, onChatHistoryClick, onNewChatClick, isAuthen
|
|
|
80
85
|
{isAuthenticated && (<div className="w-full flex-shrink-0 border-t border-gray-100 bg-white p-4">
|
|
81
86
|
<button className="flex w-full items-center justify-center gap-2.5 rounded-[25px] bg-[#2E385B] px-6 py-3 text-white" onClick={onNewChatClick}>
|
|
82
87
|
새 문의하기
|
|
83
|
-
<SendIcon width={24} height={24}/>
|
|
88
|
+
<Image src={SendIcon} alt="전송" width={24} height={24}/>
|
|
89
|
+
{/* <SendIcon width={24} height={24} /> */}
|
|
84
90
|
</button>
|
|
85
91
|
</div>)}
|
|
86
92
|
</div>);
|
|
@@ -5,13 +5,14 @@ import { useScrollShadow } from './_hooks/useScrollShadow';
|
|
|
5
5
|
import ShadowBox from './_ui/ShadowBox';
|
|
6
6
|
import { formatTimestamp } from './_lib/utils';
|
|
7
7
|
import { useHoverScrollbar } from './_hooks/useHoverScrollbar';
|
|
8
|
+
import Image from 'next/image';
|
|
8
9
|
|
|
9
10
|
// 이미지
|
|
10
|
-
import LinkRight from '../../asset/images/daeryuntalk/link_right.svg';
|
|
11
|
-
import EmptyMessage from '../../asset/images/daeryuntalk/empty_message.svg';
|
|
12
|
-
import SendIcon from '../../asset/images/daeryuntalk/send.svg';
|
|
13
|
-
import CloseSvgIcon from '../../asset/images/daeryuntalk/close.svg';
|
|
14
|
-
import PrevIcon from '../../asset/images/daeryuntalk/prev.svg';
|
|
11
|
+
// import LinkRight from '../../asset/images/daeryuntalk/link_right.svg';
|
|
12
|
+
// import EmptyMessage from '../../asset/images/daeryuntalk/empty_message.svg';
|
|
13
|
+
// import SendIcon from '../../asset/images/daeryuntalk/send.svg';
|
|
14
|
+
// import CloseSvgIcon from '../../asset/images/daeryuntalk/close.svg';
|
|
15
|
+
// import PrevIcon from '../../asset/images/daeryuntalk/prev.svg';
|
|
15
16
|
|
|
16
17
|
type HistoryViewProps = {
|
|
17
18
|
onBackClick: () => void;
|
|
@@ -40,6 +41,12 @@ const HistoryView: React.FC<HistoryViewProps> = ({
|
|
|
40
41
|
handleGoRequestPhone,
|
|
41
42
|
handleGoHistoryPhoneAuth
|
|
42
43
|
}) => {
|
|
44
|
+
const s3Url = process.env.NEXT_PUBLIC_S3_URL;
|
|
45
|
+
const LinkRight = `${s3Url}/daeryuntalk/link_right.svg`;
|
|
46
|
+
const EmptyMessage = `${s3Url}/daeryuntalk/empty_message.svg`;
|
|
47
|
+
const SendIcon = `${s3Url}/daeryuntalk/send.svg`;
|
|
48
|
+
const CloseSvgIcon = `${s3Url}/daeryuntalk/close.svg`;
|
|
49
|
+
const PrevIcon = `${s3Url}/daeryuntalk/prev.svg`;
|
|
43
50
|
const { containerRef, isScroll, isBottom, checkScroll } = useScrollShadow<HTMLDivElement>();
|
|
44
51
|
const { style: hoverStyle } = useHoverScrollbar(containerRef);
|
|
45
52
|
|
|
@@ -55,7 +62,7 @@ const HistoryView: React.FC<HistoryViewProps> = ({
|
|
|
55
62
|
no-scrollbar relative w-full rounded-t-[30px]
|
|
56
63
|
${
|
|
57
64
|
isMobile
|
|
58
|
-
? ` flex h-[
|
|
65
|
+
? ` flex h-[100%] flex-col items-center justify-start `
|
|
59
66
|
: ' flex h-[calc(100dvh)] flex-col items-center xs:h-[calc(100vh-165px)] lg:h-[calc(100vh-110px)] ' +
|
|
60
67
|
' xs:max-h-[690px] xs:min-h-[320px] '
|
|
61
68
|
}
|
|
@@ -66,7 +73,8 @@ const HistoryView: React.FC<HistoryViewProps> = ({
|
|
|
66
73
|
className={`sub_title top-0 z-10 flex h-[56px] w-full items-center justify-between border-b border-gray-200 p-[16px]`}
|
|
67
74
|
>
|
|
68
75
|
<button className="flex h-7 w-7 items-center justify-center" aria-label="이전" onClick={onBackClick}>
|
|
69
|
-
<PrevIcon width={28} height={28} />
|
|
76
|
+
<Image src={PrevIcon} alt="이전" width={28} height={28} />
|
|
77
|
+
{/* <PrevIcon width={28} height={28} /> */}
|
|
70
78
|
</button>
|
|
71
79
|
<div className="flex items-center">
|
|
72
80
|
<p className=" dr_talk_title_small ">히스토리</p>
|
|
@@ -76,7 +84,8 @@ const HistoryView: React.FC<HistoryViewProps> = ({
|
|
|
76
84
|
className={`py-[14px] text-black hover:cursor-pointer`}
|
|
77
85
|
onClick={onClose}
|
|
78
86
|
>
|
|
79
|
-
<CloseSvgIcon width={28} height={28} />
|
|
87
|
+
<Image src={CloseSvgIcon} alt="닫기" width={28} height={28} />
|
|
88
|
+
{/* <CloseSvgIcon width={28} height={28} /> */}
|
|
80
89
|
</div>
|
|
81
90
|
</div>
|
|
82
91
|
|
|
@@ -123,14 +132,22 @@ const HistoryView: React.FC<HistoryViewProps> = ({
|
|
|
123
132
|
>
|
|
124
133
|
{history.recent_message_content}
|
|
125
134
|
</p>
|
|
126
|
-
<
|
|
135
|
+
<Image
|
|
136
|
+
src={LinkRight}
|
|
137
|
+
alt="링크"
|
|
138
|
+
width={18}
|
|
139
|
+
height={18}
|
|
140
|
+
className="flex-shrink-0"
|
|
141
|
+
/>
|
|
142
|
+
{/* <LinkRight width={18} height={18} className="flex-shrink-0" /> */}
|
|
127
143
|
</div>
|
|
128
144
|
</div>
|
|
129
145
|
))
|
|
130
146
|
) : (
|
|
131
147
|
<div className="flex h-full flex-col items-center justify-center p-4">
|
|
132
148
|
<div className="mb-4">
|
|
133
|
-
<EmptyMessage />
|
|
149
|
+
<Image src={EmptyMessage} alt="빈 메시지" width={82} height={64} />
|
|
150
|
+
{/* <EmptyMessage /> */}
|
|
134
151
|
</div>
|
|
135
152
|
<p className="text-center text-gray-500">
|
|
136
153
|
이전 대화기록이 없습니다
|
|
@@ -153,7 +170,8 @@ const HistoryView: React.FC<HistoryViewProps> = ({
|
|
|
153
170
|
onClick={onNewChatClick}
|
|
154
171
|
>
|
|
155
172
|
새 문의하기
|
|
156
|
-
<SendIcon width={24} height={24} />
|
|
173
|
+
<Image src={SendIcon} alt="전송" width={24} height={24} />
|
|
174
|
+
{/* <SendIcon width={24} height={24} /> */}
|
|
157
175
|
</button>
|
|
158
176
|
</div>
|
|
159
177
|
)}
|
|
@@ -6,15 +6,15 @@ import { useScrollShadow } from './_hooks/useScrollShadow';
|
|
|
6
6
|
import Button3 from './_ui/buttons/Button3';
|
|
7
7
|
import { useHoverScrollbar } from './_hooks/useHoverScrollbar';
|
|
8
8
|
import { useWindowSize } from './_hooks/useWindowSize';
|
|
9
|
-
// 이미지
|
|
10
|
-
import DaeryuntalkIntro from '../../asset/images/daeryuntalk/daeryuntalk_home_bg.png';
|
|
11
|
-
import TimeIcon from '../../asset/images/daeryuntalk/time.svg';
|
|
12
|
-
import DaeryunLogoIcon from '../../asset/images/daeryuntalk/daeryun-logo.svg';
|
|
13
|
-
import SendIcon from '../../asset/images/daeryuntalk/send.svg';
|
|
14
|
-
import InfoIcon from '../../asset/images/daeryuntalk/info.svg';
|
|
15
|
-
import CloseSvgIcon from '../../asset/images/daeryuntalk/close.svg';
|
|
16
9
|
const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClose, isHash }) => {
|
|
17
10
|
const { containerRef, isScroll, isBottom, checkScroll, isScrolling } = useScrollShadow();
|
|
11
|
+
const s3Url = process.env.NEXT_PUBLIC_S3_URL;
|
|
12
|
+
const DaeryuntalkIntro = `${s3Url}/daeryuntalk/daeryuntalk_home_bg.png`;
|
|
13
|
+
const TimeIcon = `${s3Url}/daeryuntalk/time.svg`;
|
|
14
|
+
const DaeryunLogoIcon = `${s3Url}/daeryuntalk/daeryun-logo.svg`;
|
|
15
|
+
const SendIcon = `${s3Url}/daeryuntalk/send.svg`;
|
|
16
|
+
const InfoIcon = `${s3Url}/daeryuntalk/info.svg`;
|
|
17
|
+
const CloseSvgIcon = `${s3Url}/daeryuntalk/close.svg`;
|
|
18
18
|
const wrapperRef = useRef(null);
|
|
19
19
|
const [contentHeight, setContentHeight] = useState(210);
|
|
20
20
|
const currentHeightRef = useRef(210);
|
|
@@ -117,11 +117,13 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
117
117
|
`}>
|
|
118
118
|
<header className="z-10 flex h-[56px] w-full justify-between rounded-t-[30px] px-[20px]">
|
|
119
119
|
<div className="dr_talk_subtitle_small flex items-center gap-[2px] pt-[31.5px] text-drTalkGrayscale1">
|
|
120
|
-
<TimeIcon width={20} height={20}/>
|
|
120
|
+
<Image src={TimeIcon} alt="시간" width={20} height={20}/>
|
|
121
|
+
{/* <TimeIcon width={20} height={20} /> */}
|
|
121
122
|
<span>24시간 운영</span>
|
|
122
123
|
</div>
|
|
123
124
|
<div className={`${isHash ? 'pointer-events-none !opacity-0' : ''} ${isMobile ? 'block' : 'xs:pointer-events-none xs:!opacity-0'} py-[14px] text-drTalkGrayscale2 hover:cursor-pointer`} onClick={onClose}>
|
|
124
|
-
<CloseSvgIcon width={28} height={28}/>
|
|
125
|
+
<Image src={CloseSvgIcon} alt="닫기" width={28} height={28}/>
|
|
126
|
+
{/* <CloseSvgIcon width={28} height={28} /> */}
|
|
125
127
|
</div>
|
|
126
128
|
</header>
|
|
127
129
|
|
|
@@ -139,7 +141,8 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
139
141
|
<div className="relative">
|
|
140
142
|
<div ref={containerRef} className={`flex min-h-[80px] flex-col overscroll-contain ${isMobile ? 'overflow-y-auto overscroll-contain ' : ''} overlay-scrollbar`} style={Object.assign({ maxHeight: `${contentHeight}px` }, (!isMobile ? hoverStyle : {}))}>
|
|
141
143
|
<div className="flex items-center gap-[10px]">
|
|
142
|
-
{(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"/>)}
|
|
144
|
+
{(inquiryMainData === null || inquiryMainData === void 0 ? void 0 : inquiryMainData.channel_logo_image_url) ? (<Image src={inquiryMainData.channel_logo_image_url} alt="로고" width={32} height={32}/>) : (<Image src={DaeryunLogoIcon} alt="대륜 로고" width={24} height={24} className="mr-2"/>)}
|
|
145
|
+
{/* <DaeryunLogoIcon width={24} height={24} className="mr-2" /> */}
|
|
143
146
|
<p className="dr_talk_title_small text-drTalkBlack">
|
|
144
147
|
{(inquiryMainData === null || inquiryMainData === void 0 ? void 0 : inquiryMainData.channel_name) || '법무법인(유한)대륜'}
|
|
145
148
|
</p>
|
|
@@ -155,12 +158,14 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
155
158
|
<Button3 className={`w-full`} onClick={handleStartChat} isDisabled={isLoading || !(inquiryMainData === null || inquiryMainData === void 0 ? void 0 : inquiryMainData.channel_number)}>
|
|
156
159
|
<div className="flex items-center justify-center gap-[4px]">
|
|
157
160
|
{!(inquiryMainData === null || inquiryMainData === void 0 ? void 0 : inquiryMainData.channel_number) ? (<div>{'로딩 중...'}</div>) : (<div>{isLoading ? '로딩 중...' : '문의하기'}</div>)}
|
|
158
|
-
{!isLoading && <SendIcon width={24} height={24}/>}
|
|
161
|
+
{!isLoading && <Image src={SendIcon} alt="전송" width={24} height={24}/>}
|
|
162
|
+
{/* {!isLoading && <SendIcon width={24} height={24} />} */}
|
|
159
163
|
</div>
|
|
160
164
|
</Button3>
|
|
161
165
|
|
|
162
166
|
<div className="flex items-center justify-center gap-[4px] pt-[20px]">
|
|
163
|
-
<InfoIcon width={20} height={20}/>
|
|
167
|
+
<Image src={InfoIcon} alt="정보" width={20} height={20}/>
|
|
168
|
+
{/* <InfoIcon width={20} height={20} /> */}
|
|
164
169
|
<span className="dr_talk_body_small1 text-drTalkGrayscale2">
|
|
165
170
|
{(inquiryMainData === null || inquiryMainData === void 0 ? void 0 : inquiryMainData.answer_speed_message) || '빠르게 답변 받으실 수 있어요'}
|
|
166
171
|
</span>
|
|
@@ -10,12 +10,12 @@ import { useHoverScrollbar } from './_hooks/useHoverScrollbar';
|
|
|
10
10
|
import { useWindowSize } from './_hooks/useWindowSize';
|
|
11
11
|
|
|
12
12
|
// 이미지
|
|
13
|
-
import DaeryuntalkIntro from '../../asset/images/daeryuntalk/daeryuntalk_home_bg.png';
|
|
14
|
-
import TimeIcon from '../../asset/images/daeryuntalk/time.svg';
|
|
15
|
-
import DaeryunLogoIcon from '../../asset/images/daeryuntalk/daeryun-logo.svg';
|
|
16
|
-
import SendIcon from '../../asset/images/daeryuntalk/send.svg';
|
|
17
|
-
import InfoIcon from '../../asset/images/daeryuntalk/info.svg';
|
|
18
|
-
import CloseSvgIcon from '../../asset/images/daeryuntalk/close.svg';
|
|
13
|
+
// import DaeryuntalkIntro from '../../asset/images/daeryuntalk/daeryuntalk_home_bg.png';
|
|
14
|
+
// import TimeIcon from '../../asset/images/daeryuntalk/time.svg';
|
|
15
|
+
// import DaeryunLogoIcon from '../../asset/images/daeryuntalk/daeryun-logo.svg';
|
|
16
|
+
// import SendIcon from '../../asset/images/daeryuntalk/send.svg';
|
|
17
|
+
// import InfoIcon from '../../asset/images/daeryuntalk/info.svg';
|
|
18
|
+
// import CloseSvgIcon from '../../asset/images/daeryuntalk/close.svg';
|
|
19
19
|
|
|
20
20
|
interface IHomeViewProps {
|
|
21
21
|
inquiryMainData: IChatInquiryMainDataResponse | null;
|
|
@@ -28,7 +28,13 @@ interface IHomeViewProps {
|
|
|
28
28
|
|
|
29
29
|
const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClose, isHash }: IHomeViewProps) => {
|
|
30
30
|
const { containerRef, isScroll, isBottom, checkScroll, isScrolling } = useScrollShadow<HTMLDivElement>();
|
|
31
|
-
|
|
31
|
+
const s3Url = process.env.NEXT_PUBLIC_S3_URL;
|
|
32
|
+
const DaeryuntalkIntro = `${s3Url}/daeryuntalk/daeryuntalk_home_bg.png`;
|
|
33
|
+
const TimeIcon = `${s3Url}/daeryuntalk/time.svg`;
|
|
34
|
+
const DaeryunLogoIcon = `${s3Url}/daeryuntalk/daeryun-logo.svg`;
|
|
35
|
+
const SendIcon = `${s3Url}/daeryuntalk/send.svg`;
|
|
36
|
+
const InfoIcon = `${s3Url}/daeryuntalk/info.svg`;
|
|
37
|
+
const CloseSvgIcon = `${s3Url}/daeryuntalk/close.svg`;
|
|
32
38
|
const wrapperRef = useRef<HTMLDivElement | null>(null);
|
|
33
39
|
const [contentHeight, setContentHeight] = useState<number>(210);
|
|
34
40
|
const currentHeightRef = useRef(210);
|
|
@@ -142,14 +148,16 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
142
148
|
>
|
|
143
149
|
<header className="z-10 flex h-[56px] w-full justify-between rounded-t-[30px] px-[20px]">
|
|
144
150
|
<div className="dr_talk_subtitle_small flex items-center gap-[2px] pt-[31.5px] text-drTalkGrayscale1">
|
|
145
|
-
<TimeIcon width={20} height={20} />
|
|
151
|
+
<Image src={TimeIcon} alt="시간" width={20} height={20} />
|
|
152
|
+
{/* <TimeIcon width={20} height={20} /> */}
|
|
146
153
|
<span>24시간 운영</span>
|
|
147
154
|
</div>
|
|
148
155
|
<div
|
|
149
156
|
className={`${isHash ? 'pointer-events-none !opacity-0' : ''} ${isMobile ? 'block' : 'xs:pointer-events-none xs:!opacity-0'} py-[14px] text-drTalkGrayscale2 hover:cursor-pointer`}
|
|
150
157
|
onClick={onClose}
|
|
151
158
|
>
|
|
152
|
-
<CloseSvgIcon width={28} height={28} />
|
|
159
|
+
<Image src={CloseSvgIcon} alt="닫기" width={28} height={28} />
|
|
160
|
+
{/* <CloseSvgIcon width={28} height={28} /> */}
|
|
153
161
|
</div>
|
|
154
162
|
</header>
|
|
155
163
|
|
|
@@ -199,8 +207,15 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
199
207
|
height={32}
|
|
200
208
|
/>
|
|
201
209
|
) : (
|
|
202
|
-
<
|
|
210
|
+
<Image
|
|
211
|
+
src={DaeryunLogoIcon}
|
|
212
|
+
alt="대륜 로고"
|
|
213
|
+
width={24}
|
|
214
|
+
height={24}
|
|
215
|
+
className="mr-2"
|
|
216
|
+
/>
|
|
203
217
|
)}
|
|
218
|
+
{/* <DaeryunLogoIcon width={24} height={24} className="mr-2" /> */}
|
|
204
219
|
<p className="dr_talk_title_small text-drTalkBlack">
|
|
205
220
|
{inquiryMainData?.channel_name || '법무법인(유한)대륜'}
|
|
206
221
|
</p>
|
|
@@ -224,12 +239,14 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
224
239
|
) : (
|
|
225
240
|
<div>{isLoading ? '로딩 중...' : '문의하기'}</div>
|
|
226
241
|
)}
|
|
227
|
-
{!isLoading && <SendIcon width={24} height={24} />}
|
|
242
|
+
{!isLoading && <Image src={SendIcon} alt="전송" width={24} height={24} />}
|
|
243
|
+
{/* {!isLoading && <SendIcon width={24} height={24} />} */}
|
|
228
244
|
</div>
|
|
229
245
|
</Button3>
|
|
230
246
|
|
|
231
247
|
<div className="flex items-center justify-center gap-[4px] pt-[20px]">
|
|
232
|
-
<InfoIcon width={20} height={20} />
|
|
248
|
+
<Image src={InfoIcon} alt="정보" width={20} height={20} />
|
|
249
|
+
{/* <InfoIcon width={20} height={20} /> */}
|
|
233
250
|
<span className="dr_talk_body_small1 text-drTalkGrayscale2">
|
|
234
251
|
{inquiryMainData?.answer_speed_message || '빠르게 답변 받으실 수 있어요'}
|
|
235
252
|
</span>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import Home from '../../asset/images/daeryuntalk/home.svg';
|
|
4
|
-
import History from '../../asset/images/daeryuntalk/history.svg';
|
|
2
|
+
import Image from 'next/image';
|
|
5
3
|
const NavigationFooter = ({ activeView, onHomeClick, onHistoryClick, historyList, isAuthenticated }) => {
|
|
4
|
+
const s3Url = process.env.NEXT_PUBLIC_S3_URL;
|
|
5
|
+
const Home = `${s3Url}/daeryuntalk/home.svg`;
|
|
6
|
+
const History = `${s3Url}/daeryuntalk/history.svg`;
|
|
6
7
|
if (activeView === 'conversation') {
|
|
7
8
|
return null;
|
|
8
9
|
}
|
|
@@ -10,7 +11,8 @@ const NavigationFooter = ({ activeView, onHomeClick, onHistoryClick, historyList
|
|
|
10
11
|
<div className="h-px w-full bg-drTalkGrayscale4" role="separator"></div>
|
|
11
12
|
<nav className={' flex h-[64px] justify-around px-8 pb-[12px] pt-[8px]'}>
|
|
12
13
|
<div className={`group flex cursor-pointer flex-col items-center ${activeView === 'home' ? 'text-drTalkCrimson' : 'text-gray-400 hover:text-drTalkCrimson'}`} role="button" tabIndex={0} onClick={onHomeClick}>
|
|
13
|
-
<Home width={32} height={32} className=""/>
|
|
14
|
+
<Image src={Home} alt="홈" width={32} height={32} className=""/>
|
|
15
|
+
{/* <Home width={32} height={32} className="" /> */}
|
|
14
16
|
<span className={`dr_talk_subtitle_small2 ${activeView === 'home'
|
|
15
17
|
? 'text-drTalkCrimson'
|
|
16
18
|
: 'text-drTalkGrayscale3 group-hover:text-drTalkCrimson'}`}>
|
|
@@ -28,7 +30,8 @@ const NavigationFooter = ({ activeView, onHomeClick, onHistoryClick, historyList
|
|
|
28
30
|
{isHundredOver ? '99+' : unreadCount}
|
|
29
31
|
</span>) : null;
|
|
30
32
|
})()}
|
|
31
|
-
<History width={32} height={32}/>
|
|
33
|
+
<Image src={History} alt="히스토리" width={32} height={32}/>
|
|
34
|
+
{/* <History width={32} height={32} /> */}
|
|
32
35
|
<span className={`dr_talk_subtitle_small2 ${activeView === 'history'
|
|
33
36
|
? 'text-drTalkCrimson'
|
|
34
37
|
: 'text-drTalkGrayscale3 group-hover:text-drTalkCrimson'}`}>
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { History as HisResType } from './_api/daeryuntalk/type/response';
|
|
3
|
+
import Image from 'next/image';
|
|
3
4
|
|
|
4
5
|
// 이미지
|
|
5
|
-
import Home from '../../asset/images/daeryuntalk/home.svg';
|
|
6
|
-
import History from '../../asset/images/daeryuntalk/history.svg';
|
|
6
|
+
// import Home from '../../asset/images/daeryuntalk/home.svg';
|
|
7
|
+
// import History from '../../asset/images/daeryuntalk/history.svg';
|
|
7
8
|
|
|
8
9
|
type NavigationFooterProps = {
|
|
9
10
|
activeView: 'home' | 'history' | 'conversation';
|
|
@@ -20,6 +21,9 @@ const NavigationFooter: React.FC<NavigationFooterProps> = ({
|
|
|
20
21
|
historyList,
|
|
21
22
|
isAuthenticated
|
|
22
23
|
}) => {
|
|
24
|
+
const s3Url = process.env.NEXT_PUBLIC_S3_URL;
|
|
25
|
+
const Home = `${s3Url}/daeryuntalk/home.svg`;
|
|
26
|
+
const History = `${s3Url}/daeryuntalk/history.svg`;
|
|
23
27
|
if (activeView === 'conversation') {
|
|
24
28
|
return null;
|
|
25
29
|
}
|
|
@@ -35,7 +39,8 @@ const NavigationFooter: React.FC<NavigationFooterProps> = ({
|
|
|
35
39
|
tabIndex={0}
|
|
36
40
|
onClick={onHomeClick}
|
|
37
41
|
>
|
|
38
|
-
<Home width={32} height={32} className="" />
|
|
42
|
+
<Image src={Home} alt="홈" width={32} height={32} className="" />
|
|
43
|
+
{/* <Home width={32} height={32} className="" /> */}
|
|
39
44
|
<span
|
|
40
45
|
className={`dr_talk_subtitle_small2 ${
|
|
41
46
|
activeView === 'home'
|
|
@@ -73,7 +78,8 @@ const NavigationFooter: React.FC<NavigationFooterProps> = ({
|
|
|
73
78
|
</span>
|
|
74
79
|
) : null;
|
|
75
80
|
})()}
|
|
76
|
-
<History width={32} height={32} />
|
|
81
|
+
<Image src={History} alt="히스토리" width={32} height={32} />
|
|
82
|
+
{/* <History width={32} height={32} /> */}
|
|
77
83
|
<span
|
|
78
84
|
className={`dr_talk_subtitle_small2 ${
|
|
79
85
|
activeView === 'history'
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import Image from 'next/image';
|
|
2
3
|
// 이미지
|
|
3
|
-
import NoticeIcon from '../../asset/images/daeryuntalk/notice.svg';
|
|
4
|
-
import PrevIcon from '../../asset/images/daeryuntalk/prev.svg';
|
|
4
|
+
// import NoticeIcon from '../../asset/images/daeryuntalk/notice.svg';
|
|
5
|
+
// import PrevIcon from '../../asset/images/daeryuntalk/prev.svg';
|
|
5
6
|
import { useScrollShadow } from './_hooks/useScrollShadow';
|
|
6
7
|
const NoticeMessage = ({ content, isMobile }) => {
|
|
8
|
+
const s3Url = process.env.NEXT_PUBLIC_S3_URL;
|
|
9
|
+
const NoticeIcon = `${s3Url}/daeryuntalk/notice.svg`;
|
|
10
|
+
const PrevIcon = `${s3Url}/daeryuntalk/prev.svg`;
|
|
7
11
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
8
12
|
const { containerRef, isScroll, isBottom, checkScroll } = useScrollShadow();
|
|
9
13
|
// const { style: hoverStyle } = useHoverScrollbar(containerRef);
|
|
@@ -13,7 +17,8 @@ const NoticeMessage = ({ content, isMobile }) => {
|
|
|
13
17
|
return (<button type={'button'} onClick={() => setIsExpanded(!isExpanded)} className={`w-full bg-[#F7F7F7]/90 px-[20px] pb-[12px] pt-[8px] backdrop-blur-[4px]`} aria-label={isExpanded ? '접기' : '펼치기'}>
|
|
14
18
|
<div className="flex items-start justify-between gap-[8px]">
|
|
15
19
|
<div className="flex-shrink-0">
|
|
16
|
-
<NoticeIcon width={24} height={24}/>
|
|
20
|
+
<Image src={NoticeIcon} alt="공지" width={24} height={24}/>
|
|
21
|
+
{/* <NoticeIcon width={24} height={24} /> */}
|
|
17
22
|
</div>
|
|
18
23
|
<div className="relative">
|
|
19
24
|
<div ref={containerRef} className={`dr_talk_body_medium2 max-h-[108px] pt-[0.5px] text-left ${isExpanded ? 'overflow-y-auto whitespace-pre-line break-words' : 'line-clamp-2 overflow-hidden break-all'}`}>
|
|
@@ -25,7 +30,8 @@ const NoticeMessage = ({ content, isMobile }) => {
|
|
|
25
30
|
</div>
|
|
26
31
|
<div className="ml-1 flex-shrink-0 transform transition-transform duration-200">
|
|
27
32
|
<div className={`transform transition-transform duration-200 ${isExpanded ? 'rotate-90' : '-rotate-90'}`}>
|
|
28
|
-
<PrevIcon width={24} height={24}/>
|
|
33
|
+
<Image src={PrevIcon} alt="이전" width={24} height={24}/>
|
|
34
|
+
{/* <PrevIcon width={24} height={24} /> */}
|
|
29
35
|
</div>
|
|
30
36
|
</div>
|
|
31
37
|
</div>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import Image from 'next/image';
|
|
2
3
|
// 이미지
|
|
3
|
-
import NoticeIcon from '../../asset/images/daeryuntalk/notice.svg';
|
|
4
|
-
import PrevIcon from '../../asset/images/daeryuntalk/prev.svg';
|
|
4
|
+
// import NoticeIcon from '../../asset/images/daeryuntalk/notice.svg';
|
|
5
|
+
// import PrevIcon from '../../asset/images/daeryuntalk/prev.svg';
|
|
5
6
|
import { useScrollShadow } from './_hooks/useScrollShadow';
|
|
6
7
|
|
|
7
8
|
type NoticeMessageProps = {
|
|
@@ -10,6 +11,9 @@ type NoticeMessageProps = {
|
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
const NoticeMessage: React.FC<NoticeMessageProps> = ({ content, isMobile }) => {
|
|
14
|
+
const s3Url = process.env.NEXT_PUBLIC_S3_URL;
|
|
15
|
+
const NoticeIcon = `${s3Url}/daeryuntalk/notice.svg`;
|
|
16
|
+
const PrevIcon = `${s3Url}/daeryuntalk/prev.svg`;
|
|
13
17
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
14
18
|
const { containerRef, isScroll, isBottom, checkScroll } = useScrollShadow<HTMLDivElement>();
|
|
15
19
|
// const { style: hoverStyle } = useHoverScrollbar(containerRef);
|
|
@@ -26,7 +30,8 @@ const NoticeMessage: React.FC<NoticeMessageProps> = ({ content, isMobile }) => {
|
|
|
26
30
|
>
|
|
27
31
|
<div className="flex items-start justify-between gap-[8px]">
|
|
28
32
|
<div className="flex-shrink-0">
|
|
29
|
-
<NoticeIcon width={24} height={24} />
|
|
33
|
+
<Image src={NoticeIcon} alt="공지" width={24} height={24} />
|
|
34
|
+
{/* <NoticeIcon width={24} height={24} /> */}
|
|
30
35
|
</div>
|
|
31
36
|
<div className="relative">
|
|
32
37
|
<div
|
|
@@ -43,7 +48,8 @@ const NoticeMessage: React.FC<NoticeMessageProps> = ({ content, isMobile }) => {
|
|
|
43
48
|
<div
|
|
44
49
|
className={`transform transition-transform duration-200 ${isExpanded ? 'rotate-90' : '-rotate-90'}`}
|
|
45
50
|
>
|
|
46
|
-
<PrevIcon width={24} height={24} />
|
|
51
|
+
<Image src={PrevIcon} alt="이전" width={24} height={24} />
|
|
52
|
+
{/* <PrevIcon width={24} height={24} /> */}
|
|
47
53
|
</div>
|
|
48
54
|
</div>
|
|
49
55
|
</div>
|
|
@@ -4,19 +4,20 @@ import Image from 'next/image';
|
|
|
4
4
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
5
5
|
import 'swiper/css';
|
|
6
6
|
import 'swiper/css/navigation';
|
|
7
|
-
// 이미지
|
|
8
|
-
import DaeryunLogoIcon from '../../../asset/images/daeryuntalk/daeryun-logo.svg';
|
|
9
|
-
import DownloadIcon from '../../../asset/images/daeryuntalk/download.svg';
|
|
10
|
-
import CloseIcon from '../../../asset/images/daeryuntalk/viewer/close.svg';
|
|
11
7
|
const MobileViewer = ({ imageViewerMessage, handleDownload, currentIndex, setCurrentIndex, currentImage, closeImageViewer, previewImages, setRotation, setZoomLevel }) => {
|
|
12
8
|
const thumbSwiperRef = useRef(null);
|
|
9
|
+
const s3Url = process.env.NEXT_PUBLIC_S3_URL;
|
|
10
|
+
const DaeryunLogoIcon = `${s3Url}/daeryuntalk/daeryun-logo.svg`;
|
|
11
|
+
const DownloadIcon = `${s3Url}/daeryuntalk/download.svg`;
|
|
12
|
+
const CloseIcon = `${s3Url}/daeryuntalk/viewer/close.svg`;
|
|
13
13
|
return (<div className={`md2:hidden`}>
|
|
14
14
|
<div className="flex h-[68px] w-full items-center justify-between bg-black/90 p-[20px] text-white">
|
|
15
15
|
<div className="flex w-[calc(100%-88px)] gap-[10px]">
|
|
16
16
|
<div className={`flex items-start gap-[10px] `}>
|
|
17
17
|
<div className="flex-shrink-0 rounded-full">
|
|
18
18
|
<div className="relative h-full w-full">
|
|
19
|
-
<DaeryunLogoIcon width={28} height={28}/>
|
|
19
|
+
<Image src={DaeryunLogoIcon} alt="대륜 로고" width={28} height={28}/>
|
|
20
|
+
{/* <DaeryunLogoIcon width={28} height={28} /> */}
|
|
20
21
|
</div>
|
|
21
22
|
</div>
|
|
22
23
|
</div>
|
|
@@ -31,11 +32,13 @@ const MobileViewer = ({ imageViewerMessage, handleDownload, currentIndex, setCur
|
|
|
31
32
|
</div>
|
|
32
33
|
<div className={`flex flex-row items-center justify-center gap-[20px] `}>
|
|
33
34
|
<button onClick={handleDownload}>
|
|
34
|
-
<DownloadIcon
|
|
35
|
+
<Image src={DownloadIcon} alt="다운로드" width={24} height={24} className="bg-transparent text-white"/>
|
|
36
|
+
{/* <DownloadIcon className="h-6 w-6 bg-transparent text-white" /> */}
|
|
35
37
|
</button>
|
|
36
38
|
<div>ㅣ</div>
|
|
37
39
|
<button onClick={closeImageViewer} className="">
|
|
38
|
-
<CloseIcon className="h-6 w-6"/>
|
|
40
|
+
<Image src={CloseIcon} alt="닫기" width={24} height={24} className="h-6 w-6"/>
|
|
41
|
+
{/* <CloseIcon className="h-6 w-6" /> */}
|
|
39
42
|
</button>
|
|
40
43
|
</div>
|
|
41
44
|
</div>
|
|
@@ -8,9 +8,9 @@ import { Swiper as SwiperClass } from 'swiper';
|
|
|
8
8
|
import 'swiper/css';
|
|
9
9
|
import 'swiper/css/navigation';
|
|
10
10
|
// 이미지
|
|
11
|
-
import DaeryunLogoIcon from '../../../asset/images/daeryuntalk/daeryun-logo.svg';
|
|
12
|
-
import DownloadIcon from '../../../asset/images/daeryuntalk/download.svg';
|
|
13
|
-
import CloseIcon from '../../../asset/images/daeryuntalk/viewer/close.svg';
|
|
11
|
+
// import DaeryunLogoIcon from '../../../asset/images/daeryuntalk/daeryun-logo.svg';
|
|
12
|
+
// import DownloadIcon from '../../../asset/images/daeryuntalk/download.svg';
|
|
13
|
+
// import CloseIcon from '../../../asset/images/daeryuntalk/viewer/close.svg';
|
|
14
14
|
interface IMobileViewerProps {
|
|
15
15
|
imageViewerMessage?: Message | null;
|
|
16
16
|
handleDownload: () => void;
|
|
@@ -35,6 +35,10 @@ const MobileViewer = ({
|
|
|
35
35
|
setZoomLevel
|
|
36
36
|
}: IMobileViewerProps) => {
|
|
37
37
|
const thumbSwiperRef = useRef<SwiperClass | null>(null);
|
|
38
|
+
const s3Url = process.env.NEXT_PUBLIC_S3_URL;
|
|
39
|
+
const DaeryunLogoIcon = `${s3Url}/daeryuntalk/daeryun-logo.svg`;
|
|
40
|
+
const DownloadIcon = `${s3Url}/daeryuntalk/download.svg`;
|
|
41
|
+
const CloseIcon = `${s3Url}/daeryuntalk/viewer/close.svg`;
|
|
38
42
|
|
|
39
43
|
return (
|
|
40
44
|
<div className={`md2:hidden`}>
|
|
@@ -43,7 +47,8 @@ const MobileViewer = ({
|
|
|
43
47
|
<div className={`flex items-start gap-[10px] `}>
|
|
44
48
|
<div className="flex-shrink-0 rounded-full">
|
|
45
49
|
<div className="relative h-full w-full">
|
|
46
|
-
<DaeryunLogoIcon width={28} height={28} />
|
|
50
|
+
<Image src={DaeryunLogoIcon} alt="대륜 로고" width={28} height={28} />
|
|
51
|
+
{/* <DaeryunLogoIcon width={28} height={28} /> */}
|
|
47
52
|
</div>
|
|
48
53
|
</div>
|
|
49
54
|
</div>
|
|
@@ -58,11 +63,19 @@ const MobileViewer = ({
|
|
|
58
63
|
</div>
|
|
59
64
|
<div className={`flex flex-row items-center justify-center gap-[20px] `}>
|
|
60
65
|
<button onClick={handleDownload}>
|
|
61
|
-
<
|
|
66
|
+
<Image
|
|
67
|
+
src={DownloadIcon}
|
|
68
|
+
alt="다운로드"
|
|
69
|
+
width={24}
|
|
70
|
+
height={24}
|
|
71
|
+
className="bg-transparent text-white"
|
|
72
|
+
/>
|
|
73
|
+
{/* <DownloadIcon className="h-6 w-6 bg-transparent text-white" /> */}
|
|
62
74
|
</button>
|
|
63
75
|
<div>ㅣ</div>
|
|
64
76
|
<button onClick={closeImageViewer} className="">
|
|
65
|
-
<CloseIcon className="h-6 w-6" />
|
|
77
|
+
<Image src={CloseIcon} alt="닫기" width={24} height={24} className="h-6 w-6" />
|
|
78
|
+
{/* <CloseIcon className="h-6 w-6" /> */}
|
|
66
79
|
</button>
|
|
67
80
|
</div>
|
|
68
81
|
</div>
|