@daeryun/dr_components 1.1.93 → 1.1.95

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.
@@ -13,6 +13,10 @@ import share from '../../../lib/share';
13
13
  import PcMapKeyDetail from './PcMapKeyDetail';
14
14
  import MobileMapKeyDetail from './MobileMapKeyDetail';
15
15
  import MapModal from './MapModal';
16
+ import Image from 'next/image';
17
+
18
+ import ImgNewyork from '../../../asset/images/map/newyork.webp';
19
+ import ImgWashington from '../../../asset/images/map/washingtondc.webp';
16
20
 
17
21
  const MapPage = ({
18
22
  officeList,
@@ -98,7 +102,7 @@ const MapPage = ({
98
102
  'mt-[10px] text-[16px] font-bold text-[#7b7b7b] 3xs:text-[16px] sm:text-[16px] md:text-[18px] lg:text-[22px]'
99
103
  }
100
104
  >
101
- 전국 어디서나 365일 24시간 상담접수 가능합니다.
105
+ 전 세계 어디서나 365일 24시간 상담접수 가능합니다.
102
106
  </p>
103
107
  </div>
104
108
  <span className={'relative block h-[32px] w-[300px] leading-none text-white'}>
@@ -126,18 +130,39 @@ const MapPage = ({
126
130
  <div className="flex flex-col gap-10 md:flex-row">
127
131
  {/* 지도 */}
128
132
  <div className={'relative md:h-[60%] md:w-[45%] lg:w-[40%]'}>
129
- <Map
130
- isFirstClick={false}
131
- onClick={async (select, key) => {
132
- setSelectRegion(key);
133
- await router.push(`/map/${key}`);
134
- }}
135
- selectRegion={selectRegion}
136
- />
133
+ {mapInfo && (mapInfo.key === 'newyork' || mapInfo.key === 'washingtondc') ? (
134
+ <div
135
+ className={
136
+ 'relative mt-[58px] h-[615px] w-full max-md:aspect-[5/4] max-md:h-auto max-md:max-h-[500px] ' +
137
+ 'max-lg:mt-[50px] max-md:mt-0'
138
+ }
139
+ >
140
+ <Image
141
+ src={mapInfo.key === 'newyork' ? ImgNewyork : ImgWashington}
142
+ alt={mapInfo.key === 'newyork' ? 'sjkp 뉴욕 사무소' : 'sjkp 워싱턴 사무소'}
143
+ fill
144
+ className={
145
+ 'h-full w-full object-cover max-md:object-top ' +
146
+ `${mapInfo.key === 'washingtondc' ? 'object-left ' : ''}`
147
+ }
148
+ />
149
+ </div>
150
+ ) : (
151
+ <Map
152
+ isFirstClick={false}
153
+ onClick={async (select, key) => {
154
+ setSelectRegion(key);
155
+ await router.push(`/map/${key}`);
156
+ }}
157
+ selectRegion={selectRegion}
158
+ />
159
+ )}
137
160
  </div>
138
161
  {/* 지도 리스트 */}
139
162
  <div className={'md:w-[60%] lg:min-h-[50em]'}>
140
- <p className={'pb-3 text-[26px] font-[800] text-[#0D2B52] lg:text-[32px]'}>전국 사무소 안내</p>
163
+ <p className={'pb-3 text-[26px] font-[800] text-[#0D2B52] lg:text-[32px]'}>
164
+ 전 세계 사무소 안내
165
+ </p>
141
166
  <ul
142
167
  className={
143
168
  'grid grid-cols-6 gap-2 border-b-[1px] border-t-[1px] border-solid border-[#285FA7] py-10 max-xl:grid-cols-5 max-lg:grid-cols-3 md:py-5 lg:py-9'