@daeryun/dr_components 1.1.95 → 1.1.97
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/GlobalOfficeSection/GlobalOfficeSection.d.ts +3 -1
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.jsx +4 -2
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.tsx +7 -2
- package/dist/components/page/MapPage/MapPage.jsx +2 -2
- package/dist/components/page/MapPage/MapPage.tsx +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ import LineKoreaSm from '../../asset/images/globalOffice/korea_line_sm.svg';
|
|
|
17
17
|
// 좌표계산용
|
|
18
18
|
const MAP_W = 3873;
|
|
19
19
|
const MAP_H = 1853;
|
|
20
|
-
const GlobalOfficeSection = () => {
|
|
20
|
+
const GlobalOfficeSection = ({ isCenter }) => {
|
|
21
21
|
const { width } = useBrowser(true);
|
|
22
22
|
return (<section className={'relative z-[6] h-[1300px] w-full overflow-hidden bg-white transition-opacity duration-700 ' +
|
|
23
23
|
'max-[1935px]:aspect-[1935/1000] max-[1935px]:h-auto ' +
|
|
@@ -167,7 +167,9 @@ const GlobalOfficeSection = () => {
|
|
|
167
167
|
|
|
168
168
|
{/*한국*/}
|
|
169
169
|
<Link style={{ right: `${(615 / MAP_W) * 100}%`, top: `${(685 / MAP_H) * 100}%` }} className={'group absolute h-fit w-fit translate-x-[20px] cursor-pointer object-cover ' +
|
|
170
|
-
'max-[1935px]:translate-x-[1.03vw] max-4xl:translate-x-[0.9vw] max-xl:translate-x-0'} href={
|
|
170
|
+
'max-[1935px]:translate-x-[1.03vw] max-4xl:translate-x-[0.9vw] max-xl:translate-x-0'} href={isCenter
|
|
171
|
+
? 'https://www.daeryunlaw.com//map/seoulbon?scroll=false'
|
|
172
|
+
: '/map/seoulbon?scroll=false'} target={isCenter ? '_blank' : '_self'}>
|
|
171
173
|
<span className={'relative block h-fit w-fit '}>
|
|
172
174
|
{width >= 1280 ? (<LineKorea className={'h-auto w-[199px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
|
|
173
175
|
'max-[1935px]:w-[10.28vw] ' +
|
|
@@ -21,7 +21,7 @@ import LineKoreaSm from '../../asset/images/globalOffice/korea_line_sm.svg';
|
|
|
21
21
|
const MAP_W = 3873;
|
|
22
22
|
const MAP_H = 1853;
|
|
23
23
|
|
|
24
|
-
const GlobalOfficeSection = () => {
|
|
24
|
+
const GlobalOfficeSection = ({ isCenter }: { isCenter?: boolean }) => {
|
|
25
25
|
const { width } = useBrowser(true);
|
|
26
26
|
|
|
27
27
|
return (
|
|
@@ -329,7 +329,12 @@ const GlobalOfficeSection = () => {
|
|
|
329
329
|
'group absolute h-fit w-fit translate-x-[20px] cursor-pointer object-cover ' +
|
|
330
330
|
'max-[1935px]:translate-x-[1.03vw] max-4xl:translate-x-[0.9vw] max-xl:translate-x-0'
|
|
331
331
|
}
|
|
332
|
-
href={
|
|
332
|
+
href={
|
|
333
|
+
isCenter
|
|
334
|
+
? 'https://www.daeryunlaw.com//map/seoulbon?scroll=false'
|
|
335
|
+
: '/map/seoulbon?scroll=false'
|
|
336
|
+
}
|
|
337
|
+
target={isCenter ? '_blank' : '_self'}
|
|
333
338
|
>
|
|
334
339
|
<span className={'relative block h-fit w-fit '}>
|
|
335
340
|
{width >= 1280 ? (
|
|
@@ -41,8 +41,8 @@ const MapPage = ({ officeList, mapInfo, noScroll = false }) => {
|
|
|
41
41
|
};
|
|
42
42
|
useEffect(() => {
|
|
43
43
|
if (mapInfo) {
|
|
44
|
-
setSelectRegion(mapInfo.
|
|
45
|
-
if (mapInfo.
|
|
44
|
+
setSelectRegion(mapInfo.key || '');
|
|
45
|
+
if (mapInfo.key && !noScroll) {
|
|
46
46
|
setTimeout(() => {
|
|
47
47
|
scrollToTarget();
|
|
48
48
|
}, 100);
|
|
@@ -45,8 +45,8 @@ const MapPage = ({
|
|
|
45
45
|
|
|
46
46
|
useEffect(() => {
|
|
47
47
|
if (mapInfo) {
|
|
48
|
-
setSelectRegion(mapInfo.
|
|
49
|
-
if (mapInfo.
|
|
48
|
+
setSelectRegion(mapInfo.key || '');
|
|
49
|
+
if (mapInfo.key && !noScroll) {
|
|
50
50
|
setTimeout(() => {
|
|
51
51
|
scrollToTarget();
|
|
52
52
|
}, 100);
|