@daeryun/dr_components 1.1.9 → 1.1.11

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.
Files changed (104) hide show
  1. package/dist/asset/images/daeryuntalk/history-icon.png +0 -0
  2. package/dist/asset/images/daeryuntalk/history-new-badge.png +0 -0
  3. package/dist/asset/images/map/close.webp +0 -0
  4. package/dist/asset/images/map/expand.webp +0 -0
  5. package/dist/asset/images/map/map.webp +0 -0
  6. package/dist/asset/images/map/officeBtn/arrow.svg +6 -0
  7. package/dist/asset/images/map/officeBtn/home_icon.svg +10 -0
  8. package/dist/asset/images/map/share.webp +0 -0
  9. package/dist/asset/images/map/youtube.webp +0 -0
  10. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  11. package/dist/components/Daeryuntalk/ChatButton.jsx +2 -1
  12. package/dist/components/Daeryuntalk/ChatButton.tsx +2 -1
  13. package/dist/components/Daeryuntalk/ChatConversation.d.ts +7 -1
  14. package/dist/components/Daeryuntalk/ChatConversation.jsx +10 -8
  15. package/dist/components/Daeryuntalk/ChatConversation.tsx +25 -12
  16. package/dist/components/Daeryuntalk/ChatConversationItem/ChatConversationHeader.d.ts +7 -2
  17. package/dist/components/Daeryuntalk/ChatConversationItem/ChatConversationHeader.jsx +29 -9
  18. package/dist/components/Daeryuntalk/ChatConversationItem/ChatConversationHeader.tsx +53 -15
  19. package/dist/components/Daeryuntalk/ChatHomeView.d.ts +1 -1
  20. package/dist/components/Daeryuntalk/ChatHomeView.jsx +68 -46
  21. package/dist/components/Daeryuntalk/ChatHomeView.tsx +68 -66
  22. package/dist/components/Daeryuntalk/ChatInput.jsx +2 -1
  23. package/dist/components/Daeryuntalk/ChatInput.tsx +3 -1
  24. package/dist/components/Daeryuntalk/ChatItem/ChatFile.jsx +2 -1
  25. package/dist/components/Daeryuntalk/ChatItem/ChatFile.tsx +2 -1
  26. package/dist/components/Daeryuntalk/ChatItem/ChatLoading.d.ts +4 -1
  27. package/dist/components/Daeryuntalk/ChatItem/ChatLoading.jsx +2 -2
  28. package/dist/components/Daeryuntalk/ChatItem/ChatLoading.tsx +5 -2
  29. package/dist/components/Daeryuntalk/ChatItem/ChatWrapper.tsx +0 -1
  30. package/dist/components/Daeryuntalk/ChatItem/RichText.tsx +0 -1
  31. package/dist/components/Daeryuntalk/ChatItem/TypingComp.jsx +2 -1
  32. package/dist/components/Daeryuntalk/ChatItem/TypingComp.tsx +2 -1
  33. package/dist/components/Daeryuntalk/ChatItem/WorkFlowAuthForm.tsx +0 -1
  34. package/dist/components/Daeryuntalk/ChatItem/WorkFlowClickData.tsx +0 -1
  35. package/dist/components/Daeryuntalk/ChatMessage.jsx +3 -2
  36. package/dist/components/Daeryuntalk/ChatMessage.tsx +3 -2
  37. package/dist/components/Daeryuntalk/ChatObject/FieldWorkObject.jsx +1 -0
  38. package/dist/components/Daeryuntalk/ChatObject/FieldWorkObject.tsx +1 -0
  39. package/dist/components/Daeryuntalk/ChatObject/ObjectBack.jsx +1 -0
  40. package/dist/components/Daeryuntalk/ChatObject/ObjectBack.tsx +1 -1
  41. package/dist/components/Daeryuntalk/ChatWidget.jsx +1 -1
  42. package/dist/components/Daeryuntalk/ChatWidget.tsx +1 -1
  43. package/dist/components/Daeryuntalk/DaeryuntalkContext.d.ts +2 -0
  44. package/dist/components/Daeryuntalk/DaeryuntalkContext.jsx +12 -5
  45. package/dist/components/Daeryuntalk/DaeryuntalkContext.tsx +41 -31
  46. package/dist/components/Daeryuntalk/HistoryView.jsx +12 -9
  47. package/dist/components/Daeryuntalk/HistoryView.tsx +12 -9
  48. package/dist/components/Daeryuntalk/HomeView.jsx +7 -6
  49. package/dist/components/Daeryuntalk/HomeView.tsx +8 -6
  50. package/dist/components/Daeryuntalk/NavigationFooter.d.ts +1 -1
  51. package/dist/components/Daeryuntalk/NavigationFooter.jsx +1 -0
  52. package/dist/components/Daeryuntalk/NavigationFooter.tsx +3 -1
  53. package/dist/components/Daeryuntalk/NoticeMessage.jsx +1 -0
  54. package/dist/components/Daeryuntalk/NoticeMessage.tsx +1 -0
  55. package/dist/components/Daeryuntalk/Tiptap/Tiptap.tsx +1 -0
  56. package/dist/components/Daeryuntalk/Toast/Toast.jsx +1 -1
  57. package/dist/components/Daeryuntalk/Toast/Toast.tsx +2 -2
  58. package/dist/components/Daeryuntalk/Viewer/MobileViewer.jsx +4 -3
  59. package/dist/components/Daeryuntalk/Viewer/MobileViewer.tsx +4 -5
  60. package/dist/components/Daeryuntalk/Viewer/TbPcViewer.jsx +5 -4
  61. package/dist/components/Daeryuntalk/Viewer/TbPcViewer.tsx +7 -5
  62. package/dist/components/Daeryuntalk/ViewportHandler.d.ts +6 -1
  63. package/dist/components/Daeryuntalk/ViewportHandler.jsx +21 -6
  64. package/dist/components/Daeryuntalk/ViewportHandler.tsx +26 -44
  65. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.d.ts +4 -2
  66. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.js +77 -16
  67. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.ts +100 -17
  68. package/dist/components/Daeryuntalk/_hooks/view/useHistoryView.d.ts +3 -4
  69. package/dist/components/Daeryuntalk/_hooks/view/useHistoryView.js +15 -11
  70. package/dist/components/Daeryuntalk/_hooks/view/useHistoryView.ts +15 -13
  71. package/dist/components/Daeryuntalk/_hooks/view/useHomeView.d.ts +0 -1
  72. package/dist/components/Daeryuntalk/_hooks/view/useHomeView.js +8 -6
  73. package/dist/components/Daeryuntalk/_hooks/view/useHomeView.ts +8 -7
  74. package/dist/components/Daeryuntalk/index.jsx +2 -11
  75. package/dist/components/Daeryuntalk/index.tsx +2 -12
  76. package/dist/components/common/integrate/index.d.ts +1 -1
  77. package/dist/components/common/types/map/index.d.ts +33 -0
  78. package/dist/components/common/types/map/index.js +1 -0
  79. package/dist/components/common/types/map/index.ts +34 -0
  80. package/dist/components/page/Login/LoginShareCheckContainer.jsx +6 -4
  81. package/dist/components/page/Login/LoginShareCheckContainer.tsx +6 -4
  82. package/dist/components/page/Login/_hooks/useAppLoginDetect.js +9 -7
  83. package/dist/components/page/Login/_hooks/useAppLoginDetect.ts +11 -8
  84. package/dist/components/page/MapPage/MapModal.d.ts +10 -0
  85. package/dist/components/page/MapPage/MapModal.jsx +48 -0
  86. package/dist/components/page/MapPage/MapModal.tsx +76 -0
  87. package/dist/components/page/MapPage/MapPage.d.ts +6 -0
  88. package/dist/components/page/MapPage/MapPage.jsx +147 -0
  89. package/dist/components/page/MapPage/MapPage.stories.d.ts +7 -0
  90. package/dist/components/page/MapPage/MapPage.stories.jsx +83 -0
  91. package/dist/components/page/MapPage/MapPage.stories.tsx +98 -0
  92. package/dist/components/page/MapPage/MapPage.tsx +197 -0
  93. package/dist/components/page/MapPage/MobileMapKeyDetail.d.ts +11 -0
  94. package/dist/components/page/MapPage/MobileMapKeyDetail.jsx +99 -0
  95. package/dist/components/page/MapPage/MobileMapKeyDetail.tsx +177 -0
  96. package/dist/components/page/MapPage/PcMapKeyDetail.d.ts +11 -0
  97. package/dist/components/page/MapPage/PcMapKeyDetail.jsx +99 -0
  98. package/dist/components/page/MapPage/PcMapKeyDetail.tsx +178 -0
  99. package/dist/components/page/index.d.ts +1 -0
  100. package/dist/components/page/index.js +1 -0
  101. package/dist/components/page/index.ts +1 -0
  102. package/dist/styles/globals.css +721 -375
  103. package/dist/tsconfig.tsbuildinfo +1 -1
  104. package/package.json +1 -1
@@ -0,0 +1,99 @@
1
+ import Link from 'next/link';
2
+ import Image from 'next/image';
3
+ import IconHome from '../../../asset/images/map/officeBtn/home_icon.svg';
4
+ import IconArrow from '../../../asset/images/map/officeBtn/arrow.svg';
5
+ import imgExpand from '../../../asset/images/map/expand.webp';
6
+ import imgMap from '../../../asset/images/map/map.webp';
7
+ import imgShare from '../../../asset/images/map/share.webp';
8
+ import imgYoutube from '../../../asset/images/map/youtube.webp';
9
+ const MobileMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare, targetRef }) => {
10
+ var _a;
11
+ return (<div ref={targetRef} className="block md:mt-[5%] lg:hidden">
12
+ <div className="border-b-[1px] border-solid border-[#285FA7] py-7">
13
+ <div className="flex flex-col gap-4 md:flex-row">
14
+ <div className="text-center md:w-[35%]">
15
+ <h1 className="mb-2 text-[20px] md:text-[20px] lg:text-[25px]">{h1Title}</h1>
16
+ <h2 className="break-keep text-[18px] font-[800] text-[#0D2B52] md:text-[18px] lg:text-[28px]">
17
+ {mapInfo.title}
18
+ </h2>
19
+ {mapInfo.domain && (<Link href={`https://${mapInfo.domain}`} target="_blank" className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px] max-md:mb-[20px] max-md:mt-[10px] max-md:h-[50px] max-md:w-[155px]">
20
+ <span className="relative block aspect-square w-[37px] rounded-full bg-[#0D2B52] group-hover:bg-[#fff] max-xl:w-[35px]">
21
+ <IconHome className="scale-[.65] fill-[#fff] group-hover:fill-[#0D2B52]"/>
22
+ </span>
23
+ <span className="text-[18px] leading-[1.2] text-[#0D2B52] group-hover:text-[#fff] max-xl:text-[16px] max-md:text-[14px]">
24
+ <p>사무소 홈페이지</p>
25
+ <span className="flex justify-between">
26
+ <p className="font-[800]">바로가기</p>
27
+ <IconArrow className="w-[45px] stroke-[#0D2B52] group-hover:stroke-[#fff] max-xl:w-[40px] max-md:w-[35px]"/>
28
+ </span>
29
+ </span>
30
+ </Link>)}
31
+ </div>
32
+ <div className="text-[15px] text-[#0D2B52] md:w-[65%] lg:text-[18px]">
33
+ <h2 className="border-b-[2px] border-solid border-[#ADADAD] pb-5 text-center text-[15px] font-bold md:text-[17px] lg:text-[22px]">
34
+ {mapInfo.sub_title.replace('@replace@', '')}
35
+ </h2>
36
+ <div className="flex border-b-[1px] border-solid border-[#ADADAD] py-8 md:py-4">
37
+ <p className="w-[25%] font-bold">주소</p>
38
+ <div className="flex w-[80%] flex-col">
39
+ <h3>{mapInfo.address}</h3>
40
+ <div className="mt-3 flex items-center justify-end gap-3">
41
+ {(mapInfo.key === 'busan1' ||
42
+ mapInfo.key === 'myeongji' ||
43
+ mapInfo.key === 'busan2' ||
44
+ mapInfo.key === 'seoul' ||
45
+ mapInfo.key === 'samseong') && (<Link href={mapInfo.key === 'busan1'
46
+ ? 'https://www.youtube.com/watch?v=1yM4BNkfCrc'
47
+ : mapInfo.key === 'myeongji'
48
+ ? 'https://www.youtube.com/watch?v=YMBvh1KOFEA'
49
+ : mapInfo.key === 'busan2'
50
+ ? 'https://www.youtube.com/watch?v=gSH3WQICRlY'
51
+ : mapInfo.key === 'seoul'
52
+ ? 'https://www.youtube.com/watch?v=X1051Tj2_y0'
53
+ : 'https://www.youtube.com/watch?v=VTHk1szv9Yc'}>
54
+ <div className="mt-0 h-[35px] rounded-[24px] border-[1px] border-solid border-[#0D2B52] pl-3 pr-3">
55
+ <Image src={imgYoutube} alt="사무소 오시는길 유튜브" width={70} height={15} className="m-auto mt-[7.4px]"/>
56
+ </div>
57
+ </Link>)}
58
+ {mapInfo.place_id && (<a href={`https://map.naver.com/v5/entry/place/${mapInfo.place_id}`} target="_blank" rel="noreferrer nofollow">
59
+ <div className="h-[35px] w-[35px] rounded-[50%] border-[1px] border-solid border-[#0D2B52]">
60
+ <Image src={imgMap} alt="사무소 오시는길 네이버지도" width={19} height={20} className="m-auto mt-[5px]"/>
61
+ </div>
62
+ </a>)}
63
+ <button onClick={() => mapShare(mapInfo)} className="h-[35px] w-[35px] rounded-[50%] border-[1px] border-solid border-[#0D2B52]">
64
+ <Image src={imgShare} alt="공유하기" width={27} height={25} className="ml-[1px] mt-[4px] text-center"/>
65
+ </button>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ <div className="flex border-b-[1px] border-solid border-[#ADADAD] py-8 md:py-4">
70
+ <p className="w-[25%] font-bold">업무시간</p>
71
+ <div className="w-[80%]">
72
+ {mapInfo.worktime.split('|').map((time, index) => (<p key={index}>{time}</p>))}
73
+ </div>
74
+ </div>
75
+ <div className="flex border-b-[1px] border-solid border-[#ADADAD] py-8 md:py-4">
76
+ <p className="w-[25%] font-bold">대표번호</p>
77
+ <p className="w-[80%]">{mapInfo.tel}</p>
78
+ </div>
79
+ <div className="flex py-8 md:py-4">
80
+ <p className="w-[25%] font-bold">주차</p>
81
+ <div className="w-[80%]">
82
+ {mapInfo.parking_info === '' ? ((_a = mapInfo.parking_info_arr) === null || _a === void 0 ? void 0 : _a.map((info, index) => <p key={index}>{info}</p>)) : (<p>{mapInfo.parking_info}</p>)}
83
+ <p>* 대중교통 이용을 권장합니다。</p>
84
+ </div>
85
+ </div>
86
+ <div className="relative">
87
+ <Image src={`${mapPath}/${mapInfo.img}`} alt={mapInfo.title + ' 오시는길 약도'} width={1200} height={600}/>
88
+ <button className="absolute bottom-3 right-3 h-[40px] w-[40px] rounded-[50%] bg-[#fff] drop-shadow-md" onClick={() => setShowModal(true)}>
89
+ <div className="absolute left-[2.5px] top-[2.5px] h-[35px] w-[35px] rounded-[50%] border-[1px] border-solid">
90
+ <Image src={imgExpand} alt="지도이미지 크게보기" width={20} height={20} className="absolute left-[7px] top-[7px]"/>
91
+ </div>
92
+ </button>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ </div>);
98
+ };
99
+ export default MobileMapKeyDetail;
@@ -0,0 +1,177 @@
1
+ import Link from 'next/link';
2
+ import Image from 'next/image';
3
+ import { IMap } from '../../common/types/map';
4
+
5
+ import IconHome from '../../../asset/images/map/officeBtn/home_icon.svg';
6
+ import IconArrow from '../../../asset/images/map/officeBtn/arrow.svg';
7
+ import imgExpand from '../../../asset/images/map/expand.webp';
8
+ import imgMap from '../../../asset/images/map/map.webp';
9
+ import imgShare from '../../../asset/images/map/share.webp';
10
+ import imgYoutube from '../../../asset/images/map/youtube.webp';
11
+ import { ForwardedRef } from 'react';
12
+
13
+ const MobileMapKeyDetail = ({
14
+ h1Title,
15
+ mapInfo,
16
+ setShowModal,
17
+ mapPath,
18
+ mapShare,
19
+ targetRef
20
+ }: {
21
+ h1Title: string;
22
+ mapInfo: IMap;
23
+ setShowModal: (v: boolean) => void;
24
+ mapPath: string;
25
+ mapShare: (item: IMap) => Promise<void>;
26
+ targetRef: ForwardedRef<HTMLDivElement>;
27
+ }) => {
28
+ return (
29
+ <div ref={targetRef} className="block md:mt-[5%] lg:hidden">
30
+ <div className="border-b-[1px] border-solid border-[#285FA7] py-7">
31
+ <div className="flex flex-col gap-4 md:flex-row">
32
+ <div className="text-center md:w-[35%]">
33
+ <h1 className="mb-2 text-[20px] md:text-[20px] lg:text-[25px]">{h1Title}</h1>
34
+ <h2 className="break-keep text-[18px] font-[800] text-[#0D2B52] md:text-[18px] lg:text-[28px]">
35
+ {mapInfo.title}
36
+ </h2>
37
+ {mapInfo.domain && (
38
+ <Link
39
+ href={`https://${mapInfo.domain}`}
40
+ target="_blank"
41
+ className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px] max-md:mb-[20px] max-md:mt-[10px] max-md:h-[50px] max-md:w-[155px]"
42
+ >
43
+ <span className="relative block aspect-square w-[37px] rounded-full bg-[#0D2B52] group-hover:bg-[#fff] max-xl:w-[35px]">
44
+ <IconHome className="scale-[.65] fill-[#fff] group-hover:fill-[#0D2B52]" />
45
+ </span>
46
+ <span className="text-[18px] leading-[1.2] text-[#0D2B52] group-hover:text-[#fff] max-xl:text-[16px] max-md:text-[14px]">
47
+ <p>사무소 홈페이지</p>
48
+ <span className="flex justify-between">
49
+ <p className="font-[800]">바로가기</p>
50
+ <IconArrow className="w-[45px] stroke-[#0D2B52] group-hover:stroke-[#fff] max-xl:w-[40px] max-md:w-[35px]" />
51
+ </span>
52
+ </span>
53
+ </Link>
54
+ )}
55
+ </div>
56
+ <div className="text-[15px] text-[#0D2B52] md:w-[65%] lg:text-[18px]">
57
+ <h2 className="border-b-[2px] border-solid border-[#ADADAD] pb-5 text-center text-[15px] font-bold md:text-[17px] lg:text-[22px]">
58
+ {mapInfo.sub_title.replace('@replace@', '')}
59
+ </h2>
60
+ <div className="flex border-b-[1px] border-solid border-[#ADADAD] py-8 md:py-4">
61
+ <p className="w-[25%] font-bold">주소</p>
62
+ <div className="flex w-[80%] flex-col">
63
+ <h3>{mapInfo.address}</h3>
64
+ <div className="mt-3 flex items-center justify-end gap-3">
65
+ {(mapInfo.key === 'busan1' ||
66
+ mapInfo.key === 'myeongji' ||
67
+ mapInfo.key === 'busan2' ||
68
+ mapInfo.key === 'seoul' ||
69
+ mapInfo.key === 'samseong') && (
70
+ <Link
71
+ href={
72
+ mapInfo.key === 'busan1'
73
+ ? 'https://www.youtube.com/watch?v=1yM4BNkfCrc'
74
+ : mapInfo.key === 'myeongji'
75
+ ? 'https://www.youtube.com/watch?v=YMBvh1KOFEA'
76
+ : mapInfo.key === 'busan2'
77
+ ? 'https://www.youtube.com/watch?v=gSH3WQICRlY'
78
+ : mapInfo.key === 'seoul'
79
+ ? 'https://www.youtube.com/watch?v=X1051Tj2_y0'
80
+ : 'https://www.youtube.com/watch?v=VTHk1szv9Yc'
81
+ }
82
+ >
83
+ <div className="mt-0 h-[35px] rounded-[24px] border-[1px] border-solid border-[#0D2B52] pl-3 pr-3">
84
+ <Image
85
+ src={imgYoutube}
86
+ alt="사무소 오시는길 유튜브"
87
+ width={70}
88
+ height={15}
89
+ className="m-auto mt-[7.4px]"
90
+ />
91
+ </div>
92
+ </Link>
93
+ )}
94
+ {mapInfo.place_id && (
95
+ <a
96
+ href={`https://map.naver.com/v5/entry/place/${mapInfo.place_id}`}
97
+ target="_blank"
98
+ rel="noreferrer nofollow"
99
+ >
100
+ <div className="h-[35px] w-[35px] rounded-[50%] border-[1px] border-solid border-[#0D2B52]">
101
+ <Image
102
+ src={imgMap}
103
+ alt="사무소 오시는길 네이버지도"
104
+ width={19}
105
+ height={20}
106
+ className="m-auto mt-[5px]"
107
+ />
108
+ </div>
109
+ </a>
110
+ )}
111
+ <button
112
+ onClick={() => mapShare(mapInfo)}
113
+ className="h-[35px] w-[35px] rounded-[50%] border-[1px] border-solid border-[#0D2B52]"
114
+ >
115
+ <Image
116
+ src={imgShare}
117
+ alt="공유하기"
118
+ width={27}
119
+ height={25}
120
+ className="ml-[1px] mt-[4px] text-center"
121
+ />
122
+ </button>
123
+ </div>
124
+ </div>
125
+ </div>
126
+ <div className="flex border-b-[1px] border-solid border-[#ADADAD] py-8 md:py-4">
127
+ <p className="w-[25%] font-bold">업무시간</p>
128
+ <div className="w-[80%]">
129
+ {mapInfo.worktime.split('|').map((time, index) => (
130
+ <p key={index}>{time}</p>
131
+ ))}
132
+ </div>
133
+ </div>
134
+ <div className="flex border-b-[1px] border-solid border-[#ADADAD] py-8 md:py-4">
135
+ <p className="w-[25%] font-bold">대표번호</p>
136
+ <p className="w-[80%]">{mapInfo.tel}</p>
137
+ </div>
138
+ <div className="flex py-8 md:py-4">
139
+ <p className="w-[25%] font-bold">주차</p>
140
+ <div className="w-[80%]">
141
+ {mapInfo.parking_info === '' ? (
142
+ mapInfo.parking_info_arr?.map((info, index) => <p key={index}>{info}</p>)
143
+ ) : (
144
+ <p>{mapInfo.parking_info}</p>
145
+ )}
146
+ <p>* 대중교통 이용을 권장합니다。</p>
147
+ </div>
148
+ </div>
149
+ <div className="relative">
150
+ <Image
151
+ src={`${mapPath}/${mapInfo.img}`}
152
+ alt={mapInfo.title + ' 오시는길 약도'}
153
+ width={1200}
154
+ height={600}
155
+ />
156
+ <button
157
+ className="absolute bottom-3 right-3 h-[40px] w-[40px] rounded-[50%] bg-[#fff] drop-shadow-md"
158
+ onClick={() => setShowModal(true)}
159
+ >
160
+ <div className="absolute left-[2.5px] top-[2.5px] h-[35px] w-[35px] rounded-[50%] border-[1px] border-solid">
161
+ <Image
162
+ src={imgExpand}
163
+ alt="지도이미지 크게보기"
164
+ width={20}
165
+ height={20}
166
+ className="absolute left-[7px] top-[7px]"
167
+ />
168
+ </div>
169
+ </button>
170
+ </div>
171
+ </div>
172
+ </div>
173
+ </div>
174
+ </div>
175
+ );
176
+ };
177
+ export default MobileMapKeyDetail;
@@ -0,0 +1,11 @@
1
+ import { ForwardedRef } from 'react';
2
+ import { IMap } from '../../common/types/map';
3
+ declare const PcMapKeyDetail: ({ h1Title, mapInfo, setShowModal, mapPath, mapShare, targetRef }: {
4
+ h1Title: string;
5
+ mapInfo: IMap;
6
+ setShowModal: (v: boolean) => void;
7
+ mapPath: string;
8
+ mapShare: (item: IMap) => Promise<void>;
9
+ targetRef: ForwardedRef<HTMLDivElement>;
10
+ }) => import("react").JSX.Element;
11
+ export default PcMapKeyDetail;
@@ -0,0 +1,99 @@
1
+ import Link from 'next/link';
2
+ import Image from 'next/image';
3
+ import IconHome from '../../../asset/images/map/officeBtn/home_icon.svg';
4
+ import IconArrow from '../../../asset/images/map/officeBtn/arrow.svg';
5
+ import imgExpand from '../../../asset/images/map/expand.webp';
6
+ import imgMap from '../../../asset/images/map/map.webp';
7
+ import imgShare from '../../../asset/images/map/share.webp';
8
+ import imgYoutube from '../../../asset/images/map/youtube.webp';
9
+ const PcMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare, targetRef }) => {
10
+ var _a;
11
+ return (<div ref={targetRef} className="hidden border-b-[1px] border-solid border-[#285FA7] py-14 lg:block">
12
+ <div className="flex gap-10">
13
+ <div className="w-[35%] text-center">
14
+ <h1 className="mb-2 lg:text-[24px]">{h1Title}</h1>
15
+ <h2 className="break-keep font-[800] text-[#0D2B52] md:text-[20px] lg:text-[22px]">
16
+ {mapInfo.title}
17
+ </h2>
18
+ {mapInfo.domain && (<Link href={`https://${mapInfo.domain}`} target="_blank" className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px]">
19
+ <span className="relative block aspect-square w-[37px] rounded-full bg-[#0D2B52] group-hover:bg-[#fff] max-xl:w-[35px]">
20
+ <IconHome className="scale-[.65] fill-[#fff] group-hover:fill-[#0D2B52]"/>
21
+ </span>
22
+ <span className="text-[18px] leading-[1.2] text-[#0D2B52] group-hover:text-[#fff] max-xl:text-[16px]">
23
+ <p>사무소 홈페이지</p>
24
+ <span className="flex justify-between">
25
+ <p className="font-[800]">바로가기</p>
26
+ <IconArrow className="w-[45px] stroke-[#0D2B52] group-hover:stroke-[#fff] max-xl:w-[40px]"/>
27
+ </span>
28
+ </span>
29
+ </Link>)}
30
+ </div>
31
+ <div className="w-[65%] text-[16px] text-[#0D2B52]">
32
+ <h2 className="border-b-[2px] border-solid border-[#ADADAD] pb-3 text-center text-[19px]">
33
+ {mapInfo.sub_title.replace('@replace@', '')}
34
+ </h2>
35
+ <div className="flex border-b-[1px] border-solid border-[#ADADAD] py-4">
36
+ <p className="w-[20%] font-bold">주소</p>
37
+ <div className="flex w-[80%] flex-col">
38
+ <h3>
39
+ {mapInfo.address.replace('법무법인(유한)대륜', '').replace('법무법인(유한) 대륜', '')}
40
+ </h3>
41
+ <div className="mt-3 flex items-center justify-end gap-3">
42
+ {(mapInfo.key === 'seoul' ||
43
+ mapInfo.key === 'busan1' ||
44
+ mapInfo.key === 'myeongji' ||
45
+ mapInfo.key === 'busan2' ||
46
+ mapInfo.key === 'samseong') && (<Link href={mapInfo.key === 'seoul'
47
+ ? 'https://www.youtube.com/watch?v=X1051Tj2_y0'
48
+ : mapInfo.key === 'busan1'
49
+ ? 'https://www.youtube.com/watch?v=1yM4BNkfCrc'
50
+ : mapInfo.key === 'myeongji'
51
+ ? 'https://www.youtube.com/watch?v=YMBvh1KOFEA'
52
+ : mapInfo.key === 'busan2'
53
+ ? 'https://www.youtube.com/watch?v=gSH3WQICRlY'
54
+ : 'https://www.youtube.com/watch?v=VTHk1szv9Yc'} target="_blank">
55
+ <div className="h-[35px] rounded-[24px] border-[1px] border-solid border-[#0D2B52] pl-3 pr-3">
56
+ <Image src={imgYoutube} alt="사무소 오시는길 유튜브" width={70} height={15} className="m-auto mt-[8.5px]"/>
57
+ </div>
58
+ </Link>)}
59
+ {mapInfo.place_id && (<a href={`https://map.naver.com/v5/entry/place/${mapInfo.place_id}`} target="_blank" rel="noreferrer nofollow">
60
+ <div className="h-[35px] w-[35px] rounded-[50%] border-[1px] border-solid border-[#0D2B52]">
61
+ <Image src={imgMap} alt="사무소 오시는길 네이버지도" width={19} height={20} className="m-auto mt-[5px]"/>
62
+ </div>
63
+ </a>)}
64
+ <button className="h-[35px] w-[35px] rounded-[50%] border-[1px] border-solid border-[#0D2B52]" onClick={() => mapShare(mapInfo)}>
65
+ <Image src={imgShare} alt="공유하기" width={28} height={25} className="ml-[1px] mt-[4px] text-center"/>
66
+ </button>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ <div className="flex border-b-[1px] border-solid border-[#ADADAD] py-4">
71
+ <p className="w-[20%] font-bold">업무시간</p>
72
+ <div className="w-[80%]">
73
+ {mapInfo.worktime.split('|').map((time, index) => (<p key={index}>{time}</p>))}
74
+ </div>
75
+ </div>
76
+ <div className="flex border-b-[1px] border-solid border-[#ADADAD] py-4">
77
+ <p className="w-[20%] font-bold">대표번호</p>
78
+ <p className="w-[80%]">{mapInfo.tel}</p>
79
+ </div>
80
+ <div className="flex py-4">
81
+ <p className="w-[20%] font-bold">주차</p>
82
+ <div className="w-[80%]">
83
+ {mapInfo.parking_info === '' ? ((_a = mapInfo.parking_info_arr) === null || _a === void 0 ? void 0 : _a.map((info, index) => <p key={index}>{info}</p>)) : (<p>{mapInfo.parking_info}</p>)}
84
+ <p>* 대중교통 이용을 권장합니다.</p>
85
+ </div>
86
+ </div>
87
+ <div className="relative">
88
+ <Image src={`${mapPath}/${mapInfo.img}`} alt={mapInfo.title + ' 오시는길 약도'} width={1200} height={600}/>
89
+ <div className="absolute bottom-3 right-3 h-[40px] w-[40px] rounded-[50%] bg-[#fff] drop-shadow-md">
90
+ <button className="absolute left-[2.5px] top-[2.5px] h-[35px] w-[35px] rounded-[50%] border-[1px] border-solid" onClick={() => setShowModal(true)}>
91
+ <Image src={imgExpand} alt="지도이미지 크게보기" width={20} height={20} className="absolute left-[7px] top-[7px]"/>
92
+ </button>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ </div>);
98
+ };
99
+ export default PcMapKeyDetail;
@@ -0,0 +1,178 @@
1
+ import { ForwardedRef, useRef } from 'react';
2
+ import { IMap } from '../../common/types/map';
3
+ import Link from 'next/link';
4
+ import Image from 'next/image';
5
+ import IconHome from '../../../asset/images/map/officeBtn/home_icon.svg';
6
+ import IconArrow from '../../../asset/images/map/officeBtn/arrow.svg';
7
+ import imgExpand from '../../../asset/images/map/expand.webp';
8
+ import imgMap from '../../../asset/images/map/map.webp';
9
+ import imgShare from '../../../asset/images/map/share.webp';
10
+ import imgYoutube from '../../../asset/images/map/youtube.webp';
11
+
12
+ const PcMapKeyDetail = ({
13
+ h1Title,
14
+ mapInfo,
15
+ setShowModal,
16
+ mapPath,
17
+ mapShare,
18
+ targetRef
19
+ }: {
20
+ h1Title: string;
21
+ mapInfo: IMap;
22
+ setShowModal: (v: boolean) => void;
23
+ mapPath: string;
24
+ mapShare: (item: IMap) => Promise<void>;
25
+ targetRef: ForwardedRef<HTMLDivElement>;
26
+ }) => {
27
+ return (
28
+ <div ref={targetRef} className="hidden border-b-[1px] border-solid border-[#285FA7] py-14 lg:block">
29
+ <div className="flex gap-10">
30
+ <div className="w-[35%] text-center">
31
+ <h1 className="mb-2 lg:text-[24px]">{h1Title}</h1>
32
+ <h2 className="break-keep font-[800] text-[#0D2B52] md:text-[20px] lg:text-[22px]">
33
+ {mapInfo.title}
34
+ </h2>
35
+ {mapInfo.domain && (
36
+ <Link
37
+ href={`https://${mapInfo.domain}`}
38
+ target="_blank"
39
+ className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px]"
40
+ >
41
+ <span className="relative block aspect-square w-[37px] rounded-full bg-[#0D2B52] group-hover:bg-[#fff] max-xl:w-[35px]">
42
+ <IconHome className="scale-[.65] fill-[#fff] group-hover:fill-[#0D2B52]" />
43
+ </span>
44
+ <span className="text-[18px] leading-[1.2] text-[#0D2B52] group-hover:text-[#fff] max-xl:text-[16px]">
45
+ <p>사무소 홈페이지</p>
46
+ <span className="flex justify-between">
47
+ <p className="font-[800]">바로가기</p>
48
+ <IconArrow className="w-[45px] stroke-[#0D2B52] group-hover:stroke-[#fff] max-xl:w-[40px]" />
49
+ </span>
50
+ </span>
51
+ </Link>
52
+ )}
53
+ </div>
54
+ <div className="w-[65%] text-[16px] text-[#0D2B52]">
55
+ <h2 className="border-b-[2px] border-solid border-[#ADADAD] pb-3 text-center text-[19px]">
56
+ {mapInfo.sub_title.replace('@replace@', '')}
57
+ </h2>
58
+ <div className="flex border-b-[1px] border-solid border-[#ADADAD] py-4">
59
+ <p className="w-[20%] font-bold">주소</p>
60
+ <div className="flex w-[80%] flex-col">
61
+ <h3>
62
+ {mapInfo.address.replace('법무법인(유한)대륜', '').replace('법무법인(유한) 대륜', '')}
63
+ </h3>
64
+ <div className="mt-3 flex items-center justify-end gap-3">
65
+ {(mapInfo.key === 'seoul' ||
66
+ mapInfo.key === 'busan1' ||
67
+ mapInfo.key === 'myeongji' ||
68
+ mapInfo.key === 'busan2' ||
69
+ mapInfo.key === 'samseong') && (
70
+ <Link
71
+ href={
72
+ mapInfo.key === 'seoul'
73
+ ? 'https://www.youtube.com/watch?v=X1051Tj2_y0'
74
+ : mapInfo.key === 'busan1'
75
+ ? 'https://www.youtube.com/watch?v=1yM4BNkfCrc'
76
+ : mapInfo.key === 'myeongji'
77
+ ? 'https://www.youtube.com/watch?v=YMBvh1KOFEA'
78
+ : mapInfo.key === 'busan2'
79
+ ? 'https://www.youtube.com/watch?v=gSH3WQICRlY'
80
+ : 'https://www.youtube.com/watch?v=VTHk1szv9Yc'
81
+ }
82
+ target="_blank"
83
+ >
84
+ <div className="h-[35px] rounded-[24px] border-[1px] border-solid border-[#0D2B52] pl-3 pr-3">
85
+ <Image
86
+ src={imgYoutube}
87
+ alt="사무소 오시는길 유튜브"
88
+ width={70}
89
+ height={15}
90
+ className="m-auto mt-[8.5px]"
91
+ />
92
+ </div>
93
+ </Link>
94
+ )}
95
+ {mapInfo.place_id && (
96
+ <a
97
+ href={`https://map.naver.com/v5/entry/place/${mapInfo.place_id}`}
98
+ target="_blank"
99
+ rel="noreferrer nofollow"
100
+ >
101
+ <div className="h-[35px] w-[35px] rounded-[50%] border-[1px] border-solid border-[#0D2B52]">
102
+ <Image
103
+ src={imgMap}
104
+ alt="사무소 오시는길 네이버지도"
105
+ width={19}
106
+ height={20}
107
+ className="m-auto mt-[5px]"
108
+ />
109
+ </div>
110
+ </a>
111
+ )}
112
+ <button
113
+ className="h-[35px] w-[35px] rounded-[50%] border-[1px] border-solid border-[#0D2B52]"
114
+ onClick={() => mapShare(mapInfo)}
115
+ >
116
+ <Image
117
+ src={imgShare}
118
+ alt="공유하기"
119
+ width={28}
120
+ height={25}
121
+ className="ml-[1px] mt-[4px] text-center"
122
+ />
123
+ </button>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ <div className="flex border-b-[1px] border-solid border-[#ADADAD] py-4">
128
+ <p className="w-[20%] font-bold">업무시간</p>
129
+ <div className="w-[80%]">
130
+ {mapInfo.worktime.split('|').map((time, index) => (
131
+ <p key={index}>{time}</p>
132
+ ))}
133
+ </div>
134
+ </div>
135
+ <div className="flex border-b-[1px] border-solid border-[#ADADAD] py-4">
136
+ <p className="w-[20%] font-bold">대표번호</p>
137
+ <p className="w-[80%]">{mapInfo.tel}</p>
138
+ </div>
139
+ <div className="flex py-4">
140
+ <p className="w-[20%] font-bold">주차</p>
141
+ <div className="w-[80%]">
142
+ {mapInfo.parking_info === '' ? (
143
+ mapInfo.parking_info_arr?.map((info, index) => <p key={index}>{info}</p>)
144
+ ) : (
145
+ <p>{mapInfo.parking_info}</p>
146
+ )}
147
+ <p>* 대중교통 이용을 권장합니다.</p>
148
+ </div>
149
+ </div>
150
+ <div className="relative">
151
+ <Image
152
+ src={`${mapPath}/${mapInfo.img}`}
153
+ alt={mapInfo.title + ' 오시는길 약도'}
154
+ width={1200}
155
+ height={600}
156
+ />
157
+ <div className="absolute bottom-3 right-3 h-[40px] w-[40px] rounded-[50%] bg-[#fff] drop-shadow-md">
158
+ <button
159
+ className="absolute left-[2.5px] top-[2.5px] h-[35px] w-[35px] rounded-[50%] border-[1px] border-solid"
160
+ onClick={() => setShowModal(true)}
161
+ >
162
+ <Image
163
+ src={imgExpand}
164
+ alt="지도이미지 크게보기"
165
+ width={20}
166
+ height={20}
167
+ className="absolute left-[7px] top-[7px]"
168
+ />
169
+ </button>
170
+ </div>
171
+ </div>
172
+ </div>
173
+ </div>
174
+ </div>
175
+ );
176
+ };
177
+
178
+ export default PcMapKeyDetail;
@@ -23,3 +23,4 @@ export { default as StrengthCustomer } from './StrengthNew/StrengthCustomer';
23
23
  export { default as StrengthPeople } from './StrengthNew/StrengthPeople';
24
24
  export { default as StrengthSystem } from './StrengthNew/StrengthSystem';
25
25
  export { default as DaeryunGreeting } from './DaeryunGreeting/DaeryunGreeting';
26
+ export { default as MapPage } from './MapPage/MapPage';
@@ -25,3 +25,4 @@ export { default as StrengthCustomer } from './StrengthNew/StrengthCustomer';
25
25
  export { default as StrengthPeople } from './StrengthNew/StrengthPeople';
26
26
  export { default as StrengthSystem } from './StrengthNew/StrengthSystem';
27
27
  export { default as DaeryunGreeting } from './DaeryunGreeting/DaeryunGreeting';
28
+ export { default as MapPage } from './MapPage/MapPage';
@@ -25,3 +25,4 @@ export { default as StrengthCustomer } from './StrengthNew/StrengthCustomer';
25
25
  export { default as StrengthPeople } from './StrengthNew/StrengthPeople';
26
26
  export { default as StrengthSystem } from './StrengthNew/StrengthSystem';
27
27
  export { default as DaeryunGreeting } from './DaeryunGreeting/DaeryunGreeting';
28
+ export { default as MapPage } from './MapPage/MapPage';