@daeryun/dr_components 1.1.96 → 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.
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
- declare const GlobalOfficeSection: () => React.JSX.Element;
2
+ declare const GlobalOfficeSection: ({ isCenter }: {
3
+ isCenter?: boolean;
4
+ }) => React.JSX.Element;
3
5
  export default GlobalOfficeSection;
@@ -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={'/map/seoulbon?scroll=false'}>
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={'/map/seoulbon?scroll=false'}
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 ? (