@daeryun/dr_components 1.2.38 → 1.2.39

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 (47) hide show
  1. package/dist/components/Footer/index.d.ts +3 -1
  2. package/dist/components/Footer/index.jsx +25 -12
  3. package/dist/components/Footer/index.tsx +39 -9
  4. package/dist/components/GlobalOfficeSection/GlobalOfficeSection.jsx +16 -4
  5. package/dist/components/GlobalOfficeSection/GlobalOfficeSection.tsx +26 -6
  6. package/dist/components/Header/PcHeader.jsx +1 -1
  7. package/dist/components/Header/PcHeader.tsx +1 -1
  8. package/dist/components/ViewMoreSection/ViewMoreSection.jsx +4 -0
  9. package/dist/components/ViewMoreSection/ViewMoreSection.tsx +4 -0
  10. package/dist/components/categoryView/CategoryComponent.jsx +6 -1
  11. package/dist/components/categoryView/CategoryComponent.tsx +9 -1
  12. package/dist/components/common/hook/index.d.ts +1 -0
  13. package/dist/components/common/hook/index.js +1 -0
  14. package/dist/components/common/hook/index.ts +1 -0
  15. package/dist/components/common/hook/useIsApp.d.ts +2 -0
  16. package/dist/components/common/hook/useIsApp.js +22 -0
  17. package/dist/components/common/hook/useIsApp.ts +29 -0
  18. package/dist/components/hook/useIsApp.d.ts +2 -0
  19. package/dist/components/hook/useIsApp.js +22 -0
  20. package/dist/components/hook/useIsApp.ts +29 -0
  21. package/dist/components/page/Integrate/Broadcast.d.ts +1 -0
  22. package/dist/components/page/Integrate/Broadcast.jsx +3 -2
  23. package/dist/components/page/Integrate/Broadcast.tsx +6 -2
  24. package/dist/components/page/Integrate/Field.d.ts +1 -0
  25. package/dist/components/page/Integrate/Field.jsx +5 -2
  26. package/dist/components/page/Integrate/Field.tsx +9 -2
  27. package/dist/components/page/Integrate/LawInfo.d.ts +1 -0
  28. package/dist/components/page/Integrate/LawInfo.jsx +5 -2
  29. package/dist/components/page/Integrate/LawInfo.tsx +8 -2
  30. package/dist/components/page/Integrate/Reply.d.ts +1 -0
  31. package/dist/components/page/Integrate/Reply.jsx +8 -6
  32. package/dist/components/page/Integrate/Reply.tsx +10 -8
  33. package/dist/components/page/Integrate/SearchData.jsx +8 -6
  34. package/dist/components/page/Integrate/SearchData.tsx +8 -0
  35. package/dist/components/page/Integrate/Success.d.ts +1 -0
  36. package/dist/components/page/Integrate/Success.jsx +7 -4
  37. package/dist/components/page/Integrate/Success.tsx +10 -5
  38. package/dist/components/page/Integrate/Trend.d.ts +1 -0
  39. package/dist/components/page/Integrate/Trend.jsx +5 -2
  40. package/dist/components/page/Integrate/Trend.tsx +7 -2
  41. package/dist/components/page/MapPage/MobileMapKeyDetail.jsx +6 -1
  42. package/dist/components/page/MapPage/MobileMapKeyDetail.tsx +9 -1
  43. package/dist/components/page/MapPage/PcMapKeyDetail.jsx +6 -1
  44. package/dist/components/page/MapPage/PcMapKeyDetail.tsx +9 -1
  45. package/dist/styles/globals.css +4 -0
  46. package/dist/tsconfig.tsbuildinfo +1 -1
  47. package/package.json +1 -1
@@ -2,4 +2,6 @@ import React from 'react';
2
2
  import { INewFooterTypes } from './IFooterTypes';
3
3
  declare const NewFooter: ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, isMedical, brochureType }: INewFooterTypes) => React.JSX.Element;
4
4
  export default NewFooter;
5
- export declare const FooterLinkList: () => React.JSX.Element;
5
+ export declare const FooterLinkList: ({ isApp }: {
6
+ isApp: boolean;
7
+ }) => React.JSX.Element;
@@ -24,6 +24,7 @@ import sns05 from '../../asset/images/footer/sns_05.webp';
24
24
  import BrochureBtn from '../BrochureBtn/BrochureBtn';
25
25
  import MedicalBrochureBtn from '../BrochureBtn/MedicalBrochureBtn';
26
26
  import { useActionGetTermList } from './_actions/action';
27
+ import useIsApp from '../hook/useIsApp';
27
28
  const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, isMedical, brochureType }) => {
28
29
  const pathname = usePathname();
29
30
  const mobile = require('is-mobile');
@@ -32,6 +33,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
32
33
  const [isOpen, setIsOpen] = useState(false);
33
34
  const wrapperRef = useRef(null);
34
35
  const routeLocation = pathname === '/';
36
+ const isApp = useIsApp();
35
37
  const fetchData = () => __awaiter(void 0, void 0, void 0, function* () {
36
38
  try {
37
39
  const req = yield fetch(`/api/center-footer/list`);
@@ -187,21 +189,21 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
187
189
  {/* <FooterLinkList />*/}
188
190
  {/*</div>*/}
189
191
  {isBrochureBtn && !isMedical ? (<span className={'flex w-full flex-1 flex-col items-center justify-center gap-[20px] max-md:gap-[15px] max-2sm:gap-[10px]'}>
190
- <FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn} isMedical={isMedical} centerLink={centerLink}/>
192
+ <FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn} isMedical={isMedical} centerLink={centerLink} isApp={isApp}/>
191
193
  <BrochureBtn width={'280px'} height={'60px'} wrapClassName={'max-xs:hidden'} className={'xl:hidden ' +
192
194
  //768px
193
195
  'max-md:mx-[-10px] max-md:scale-90 ' +
194
196
  //590px
195
197
  'max-[590px]:mx-[-30px] max-[590px]:scale-[.75] '} type={brochureType}/>
196
198
  </span>) : isBrochureBtn && isMedical ? (<span className={'flex w-full flex-1 flex-col items-center justify-center gap-[20px] max-md:gap-[15px] max-2sm:gap-[10px]'}>
197
- <FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn} isMedical={isMedical} centerLink={centerLink}/>
199
+ <FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn} isMedical={isMedical} centerLink={centerLink} isApp={isApp}/>
198
200
  <MedicalBrochureBtn width={'280px'} height={'60px'} wrapClassName={'max-lg:hidden'} className={'xl:hidden ' +
199
201
  //768px
200
202
  'max-md:mx-[-10px] max-md:scale-90 ' +
201
203
  //590px
202
204
  'max-[590px]:mx-[-30px] max-[590px]:scale-[.75] '}/>
203
205
  </span>) : (<span className={'flex w-full flex-1 items-center justify-center gap-[40px] max-md:gap-[5px] max-2sm:gap-[10px]'}>
204
- <FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn} isMedical={isMedical} centerLink={centerLink}/>
206
+ <FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn} isMedical={isMedical} centerLink={centerLink} isApp={isApp}/>
205
207
  <BrochureBtn width={'280px'} height={'60px'} className={'xl:hidden ' +
206
208
  //768px
207
209
  'max-md:mx-[-10px] max-md:scale-90 ' +
@@ -219,7 +221,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
219
221
  'max-xl:justify-center ' +
220
222
  'max-md:gap-[17px] max-md:text-[14px] ' +
221
223
  'max-xs:mb-[42px] max-xs:grid max-xs:grid-cols-2 max-xs:gap-2 max-xs:text-[16px] max-xs:leading-snug '}>
222
- <FooterLinkList />
224
+ <FooterLinkList isApp={isApp}/>
223
225
  </div>
224
226
  <div className={'mb-[15px] max-xl:justify-center max-md:text-[14px] max-xs:mb-[24px] max-xs:text-[16px] max-2xs:mb-[33px] xs:flex xs:w-full xs:items-center'}>
225
227
  <p className={'xs:pr-[11px] xs:text-center'}>
@@ -285,7 +287,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
285
287
  </footer>);
286
288
  };
287
289
  export default NewFooter;
288
- export const FooterLinkList = () => {
290
+ export const FooterLinkList = ({ isApp }) => {
289
291
  /**
290
292
  * 로그인 반영 후 푸터
291
293
  */
@@ -294,14 +296,16 @@ export const FooterLinkList = () => {
294
296
  {data && data.length > 0
295
297
  ? data === null || data === void 0 ? void 0 : data.map((item, key) => {
296
298
  return (<p key={key}>
297
- <Link href={`https://www.daeryunlaw.com/common/term/${item.terms_code}`} target={'_blank'}>
299
+ <Link href={isApp
300
+ ? `https://mysjkp.daeryunlaw.com/common/term/${item.terms_code}`
301
+ : `https://www.daeryunlaw.com/common/term/${item.terms_code}`} target={'_blank'}>
298
302
  {item.terms_name}
299
303
  </Link>
300
304
  </p>);
301
305
  })
302
306
  : null}
303
307
  <p className={'text-[#285FA7]'}>
304
- <Link href={'https://www.daeryunlaw.com/inquire'} target={'_blank'}>
308
+ <Link href={isApp ? 'https://mysjkp.daeryunlaw.com/inquire' : 'https://www.daeryunlaw.com/inquire'} target={'_blank'}>
305
309
  고객만족센터
306
310
  </Link>
307
311
  </p>
@@ -340,7 +344,7 @@ export const FooterLinkList = () => {
340
344
  // );
341
345
  };
342
346
  const FooterSelectBox = (props) => {
343
- const { isBrochureBtn, isMedical, wrapperRef, setIsOpen, isOpen, centerLink, routeLocation, groupsData } = props;
347
+ const { isBrochureBtn, isMedical, wrapperRef, setIsOpen, isOpen, centerLink, routeLocation, groupsData, isApp } = props;
344
348
  const list = groupsData != null && groupsData.length > 0 ? groupsData : centerLink;
345
349
  return (<div className={(isBrochureBtn ? 'max-w-[300px] max-md:w-full max-xs:max-w-full ' : 'max-md:w-[260px] max-xs:w-full ') +
346
350
  ' xl:ml-auto'}>
@@ -364,7 +368,10 @@ const FooterSelectBox = (props) => {
364
368
  pointerEvents: isOpen ? 'auto' : 'none'
365
369
  }} role="listbox" aria-orientation="vertical" aria-labelledby="listbox-label" aria-expanded="true" aria-hidden="false">
366
370
  <li className="cursor-pointer px-5 py-[5px] text-[17px] font-[500] duration-150 hover:bg-gray-100">
367
- <Link href={'https://www.sjkplawfirm.com'} target="_blank" title={'새창열기'} onClick={() => {
371
+ <Link href={{
372
+ pathname: 'https://www.sjkplawfirm.com',
373
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
374
+ }} target="_blank" title={'새창열기'} onClick={() => {
368
375
  setIsOpen(!isOpen);
369
376
  }}>
370
377
  뉴욕본사 SJKP
@@ -375,7 +382,10 @@ const FooterSelectBox = (props) => {
375
382
  .map((group, index) => {
376
383
  return (<React.Fragment key={index}>
377
384
  <li key={group.code} value={group.code_name} className="cursor-pointer px-5 py-[5px] text-[17px] font-[500] duration-150 hover:bg-gray-100">
378
- <Link href={group.domain} target="_blank" title={'새창열기'} onClick={() => {
385
+ <Link href={{
386
+ pathname: group.domain,
387
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
388
+ }} target="_blank" title={'새창열기'} onClick={() => {
379
389
  setIsOpen(!isOpen);
380
390
  }}>
381
391
  {group.code === 'CT0000'
@@ -389,7 +399,10 @@ const FooterSelectBox = (props) => {
389
399
  .map((in_center, index2) => {
390
400
  return (<React.Fragment key={in_center.code}>
391
401
  <li key={in_center.code} value={in_center.code_name} className="cursor-pointer px-7 py-[5px] text-[15px] font-[500] duration-150 hover:bg-gray-100">
392
- <Link href={in_center.domain} key={index2} target="_blank" title={'새창열기'}>
402
+ <Link href={{
403
+ pathname: in_center.domain,
404
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
405
+ }} key={index2} target="_blank" title={'새창열기'}>
393
406
  <p className={'pl-3'}>
394
407
  {in_center.code_name}
395
408
  {in_center.gubun}
@@ -398,7 +411,7 @@ const FooterSelectBox = (props) => {
398
411
  </li>
399
412
  {/*경영권분쟁센터 밑에 기업인수 합병센터 강제 추가*/}
400
413
  {in_center.code === 'ICT0005' ? (<li key={'기업인수 합병센터'} value={in_center.code_name} className="cursor-pointer px-7 py-[5px] text-[15px] font-[500] duration-150 hover:bg-gray-100">
401
- <Link href={'https://www.daeryunlaw-mergers.com/'} target="_blank" title={'새창열기'}>
414
+ <Link href={'https://www.daeryunlaw-mergers.com?isApp=true'} target="_blank" title={'새창열기'}>
402
415
  <p className={'pl-3'}>기업인수·합병(M&A)센터</p>
403
416
  </Link>
404
417
  </li>) : (<></>)}
@@ -18,6 +18,7 @@ import BrochureBtn from '../BrochureBtn/BrochureBtn';
18
18
  import MedicalBrochureBtn from '../BrochureBtn/MedicalBrochureBtn';
19
19
  import { useActionGetTermList } from './_actions/action';
20
20
  import { ITermType } from '../page/Login/_types/termType';
21
+ import useIsApp from '../hook/useIsApp';
21
22
 
22
23
  const NewFooter = ({
23
24
  groupsData,
@@ -39,6 +40,8 @@ const NewFooter = ({
39
40
 
40
41
  const routeLocation: boolean = pathname === '/';
41
42
 
43
+ const isApp = useIsApp();
44
+
42
45
  const fetchData = async () => {
43
46
  try {
44
47
  const req = await fetch(`/api/center-footer/list`);
@@ -233,6 +236,7 @@ const NewFooter = ({
233
236
  isBrochureBtn={isBrochureBtn}
234
237
  isMedical={isMedical}
235
238
  centerLink={centerLink}
239
+ isApp={isApp}
236
240
  />
237
241
  <BrochureBtn
238
242
  width={'280px'}
@@ -263,6 +267,7 @@ const NewFooter = ({
263
267
  isBrochureBtn={isBrochureBtn}
264
268
  isMedical={isMedical}
265
269
  centerLink={centerLink}
270
+ isApp={isApp}
266
271
  />
267
272
  <MedicalBrochureBtn
268
273
  width={'280px'}
@@ -292,6 +297,7 @@ const NewFooter = ({
292
297
  isBrochureBtn={isBrochureBtn}
293
298
  isMedical={isMedical}
294
299
  centerLink={centerLink}
300
+ isApp={isApp}
295
301
  />
296
302
  <BrochureBtn
297
303
  width={'280px'}
@@ -347,7 +353,7 @@ const NewFooter = ({
347
353
  'max-xs:mb-[42px] max-xs:grid max-xs:grid-cols-2 max-xs:gap-2 max-xs:text-[16px] max-xs:leading-snug '
348
354
  }
349
355
  >
350
- <FooterLinkList />
356
+ <FooterLinkList isApp={isApp} />
351
357
  </div>
352
358
  <div
353
359
  className={
@@ -505,7 +511,7 @@ const NewFooter = ({
505
511
 
506
512
  export default NewFooter;
507
513
 
508
- export const FooterLinkList = () => {
514
+ export const FooterLinkList = ({ isApp }: { isApp: boolean }) => {
509
515
  /**
510
516
  * 로그인 반영 후 푸터
511
517
  */
@@ -519,7 +525,11 @@ export const FooterLinkList = () => {
519
525
  return (
520
526
  <p key={key}>
521
527
  <Link
522
- href={`https://www.daeryunlaw.com/common/term/${item.terms_code}`}
528
+ href={
529
+ isApp
530
+ ? `https://mysjkp.daeryunlaw.com/common/term/${item.terms_code}`
531
+ : `https://www.daeryunlaw.com/common/term/${item.terms_code}`
532
+ }
523
533
  target={'_blank'}
524
534
  >
525
535
  {item.terms_name}
@@ -529,7 +539,10 @@ export const FooterLinkList = () => {
529
539
  })
530
540
  : null}
531
541
  <p className={'text-[#285FA7]'}>
532
- <Link href={'https://www.daeryunlaw.com/inquire'} target={'_blank'}>
542
+ <Link
543
+ href={isApp ? 'https://mysjkp.daeryunlaw.com/inquire' : 'https://www.daeryunlaw.com/inquire'}
544
+ target={'_blank'}
545
+ >
533
546
  고객만족센터
534
547
  </Link>
535
548
  </p>
@@ -579,8 +592,10 @@ const FooterSelectBox = (props: {
579
592
  isOpen: boolean;
580
593
  routeLocation: boolean;
581
594
  groupsData: ICenterLinkTypes[] | null;
595
+ isApp: boolean;
582
596
  }) => {
583
- const { isBrochureBtn, isMedical, wrapperRef, setIsOpen, isOpen, centerLink, routeLocation, groupsData } = props;
597
+ const { isBrochureBtn, isMedical, wrapperRef, setIsOpen, isOpen, centerLink, routeLocation, groupsData, isApp } =
598
+ props;
584
599
 
585
600
  const list = groupsData != null && groupsData.length > 0 ? groupsData : centerLink;
586
601
 
@@ -642,7 +657,12 @@ const FooterSelectBox = (props: {
642
657
  >
643
658
  <li className="cursor-pointer px-5 py-[5px] text-[17px] font-[500] duration-150 hover:bg-gray-100">
644
659
  <Link
645
- href={'https://www.sjkplawfirm.com'}
660
+ href={{
661
+ pathname: 'https://www.sjkplawfirm.com',
662
+ query: {
663
+ ...(isApp ? { isApp: true } : {})
664
+ }
665
+ }}
646
666
  target="_blank"
647
667
  title={'새창열기'}
648
668
  onClick={() => {
@@ -663,7 +683,12 @@ const FooterSelectBox = (props: {
663
683
  className="cursor-pointer px-5 py-[5px] text-[17px] font-[500] duration-150 hover:bg-gray-100"
664
684
  >
665
685
  <Link
666
- href={group.domain}
686
+ href={{
687
+ pathname: group.domain,
688
+ query: {
689
+ ...(isApp ? { isApp: true } : {})
690
+ }
691
+ }}
667
692
  target="_blank"
668
693
  title={'새창열기'}
669
694
  onClick={() => {
@@ -687,7 +712,12 @@ const FooterSelectBox = (props: {
687
712
  className="cursor-pointer px-7 py-[5px] text-[15px] font-[500] duration-150 hover:bg-gray-100"
688
713
  >
689
714
  <Link
690
- href={in_center.domain}
715
+ href={{
716
+ pathname: in_center.domain,
717
+ query: {
718
+ ...(isApp ? { isApp: true } : {})
719
+ }
720
+ }}
691
721
  key={index2}
692
722
  target="_blank"
693
723
  title={'새창열기'}
@@ -706,7 +736,7 @@ const FooterSelectBox = (props: {
706
736
  className="cursor-pointer px-7 py-[5px] text-[15px] font-[500] duration-150 hover:bg-gray-100"
707
737
  >
708
738
  <Link
709
- href={'https://www.daeryunlaw-mergers.com/'}
739
+ href={'https://www.daeryunlaw-mergers.com?isApp=true'}
710
740
  target="_blank"
711
741
  title={'새창열기'}
712
742
  >
@@ -14,11 +14,13 @@ import LineSeoulMd from '../../asset/images/globalOffice/seoul_line_md.svg';
14
14
  import LineBusanMd from '../../asset/images/globalOffice/busan_line_md.svg';
15
15
  import ViewMoreArrow from '../../asset/images/globalOffice/view_more_arrow.svg';
16
16
  import IconArrow from '../../asset/images/globalOffice/global_arrow.svg';
17
+ import useIsApp from '../hook/useIsApp';
17
18
  // 좌표계산용
18
19
  const MAP_W = 3873;
19
20
  const MAP_H = 1853;
20
21
  const GlobalOfficeSection = ({ initialData, isCenter, customFont }) => {
21
22
  const { width } = useBrowser(true);
23
+ const isApp = useIsApp();
22
24
  return (<section className={'relative z-[6] h-[1300px] w-full overflow-hidden bg-white transition-opacity duration-700 ' +
23
25
  'max-[1935px]:aspect-[1935/1000] max-[1935px]:h-auto ' +
24
26
  'max-4xl:aspect-[1935/1100] ' +
@@ -80,7 +82,10 @@ const GlobalOfficeSection = ({ initialData, isCenter, customFont }) => {
80
82
  {/*지도 이미지*/}
81
83
  {width >= 768 && (<Image src={'https://d1tgonli21s4df.cloudfront.net/main_new/global_map.webp'} alt="법무법인 대륜 전 세계 사무소" width={MAP_W} height={MAP_H} draggable="false" loading={'lazy'} className={'h-full w-full max-md:absolute'}/>)}
82
84
  {/*워싱턴*/}
83
- <Link href={'https://www.sjkplawfirm.com/'} target={'_blank'} style={{ left: `${(930 / MAP_W) * 100}%`, top: `${(730 / MAP_H) * 100}%` }} className={'group absolute h-fit w-fit object-cover ' +
85
+ <Link href={{
86
+ pathname: 'https://www.sjkplawfirm.com/',
87
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
88
+ }} target={'_blank'} style={{ left: `${(930 / MAP_W) * 100}%`, top: `${(730 / MAP_H) * 100}%` }} className={'group absolute h-fit w-fit object-cover ' +
84
89
  '-translate-x-[100%] -translate-y-[42px] ' +
85
90
  'max-[1935px]:-translate-y-[2.17vw] max-4xl:-translate-y-[2.6vw] max-xl:-translate-y-[4.17vw] ' +
86
91
  'max-md:relative max-md:!left-0 max-md:!top-0 max-md:order-2 max-md:block max-md:translate-x-0 max-md:translate-y-0 ' +
@@ -114,7 +119,10 @@ const GlobalOfficeSection = ({ initialData, isCenter, customFont }) => {
114
119
  </Link>
115
120
 
116
121
  {/*뉴욕*/}
117
- <Link href={'https://www.sjkplawfirm.com/'} target={'_blank'} style={{ left: `${(980 / MAP_W) * 100}%`, top: `${(670 / MAP_H) * 100}%` }} className={'group absolute flex h-fit w-fit flex-col items-end object-cover ' +
122
+ <Link href={{
123
+ pathname: 'https://www.sjkplawfirm.com/',
124
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
125
+ }} target={'_blank'} style={{ left: `${(980 / MAP_W) * 100}%`, top: `${(670 / MAP_H) * 100}%` }} className={'group absolute flex h-fit w-fit flex-col items-end object-cover ' +
118
126
  'max-md:relative max-md:!left-0 max-md:!top-0 max-md:order-1 max-md:w-full max-md:items-start '}>
119
127
  <span className={'relative block h-fit w-fit '}>
120
128
  {width >= 1280 ? (<LineNewYork className={'h-auto w-[269px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
@@ -149,7 +157,9 @@ const GlobalOfficeSection = ({ initialData, isCenter, customFont }) => {
149
157
  'max-[1935px]:-translate-y-[7.23vw] ' +
150
158
  'max-4xl:-translate-y-[8vw] ' +
151
159
  'max-xl:-translate-y-[18.8vw] ' +
152
- 'max-md:relative max-md:!left-0 max-md:!top-0 max-md:order-3 max-md:w-full max-md:translate-y-0 max-md:items-start '} target={isCenter ? '_blank' : '_self'} href={isCenter ? 'https://www.daeryunlaw.com/map/seoulbon?scroll=false' : '/map/seoulbon?scroll=false'}>
160
+ 'max-md:relative max-md:!left-0 max-md:!top-0 max-md:order-3 max-md:w-full max-md:translate-y-0 max-md:items-start '} target={isCenter ? '_blank' : '_self'} href={isCenter
161
+ ? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/map/seoulbon?scroll=false`
162
+ : '/map/seoulbon?scroll=false'}>
153
163
  <span className={'relative block h-fit w-fit '}>
154
164
  {width >= 1280 ? (<LineSeoul className={'h-auto w-[382px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
155
165
  'max-[1935px]:w-[19.74vw] ' +
@@ -182,7 +192,9 @@ const GlobalOfficeSection = ({ initialData, isCenter, customFont }) => {
182
192
  <Link style={{ right: `${(593 / MAP_W) * 100}%`, top: `${(690 / MAP_H) * 100}%` }} className={'group absolute flex h-fit w-fit translate-x-[70%] cursor-pointer flex-col items-end object-cover ' +
183
193
  'max-4xl:translate-x-[75%] ' +
184
194
  'max-xl:translate-x-0 max-xl:items-start ' +
185
- 'max-md:relative max-md:!right-0 max-md:!top-0 max-md:order-4 max-md:w-full'} target={isCenter ? '_blank' : '_self'} href={isCenter ? 'https://www.daeryunlaw.com/map/busan1?scroll=false' : '/map/busan1?scroll=false'}>
195
+ 'max-md:relative max-md:!right-0 max-md:!top-0 max-md:order-4 max-md:w-full'} target={isCenter ? '_blank' : '_self'} href={isCenter
196
+ ? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/map/busan1?scroll=false`
197
+ : '/map/busan1?scroll=false'}>
186
198
  <span className={'relative block h-fit w-fit '}>
187
199
  {width >= 1280 ? (<LineBusan className={'h-auto w-[160px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
188
200
  'max-[1935px]:w-[8.27vw] ' +
@@ -18,6 +18,7 @@ import LineBusanMd from '../../asset/images/globalOffice/busan_line_md.svg';
18
18
 
19
19
  import ViewMoreArrow from '../../asset/images/globalOffice/view_more_arrow.svg';
20
20
  import IconArrow from '../../asset/images/globalOffice/global_arrow.svg';
21
+ import useIsApp from '../hook/useIsApp';
21
22
 
22
23
  // 좌표계산용
23
24
  const MAP_W = 3873;
@@ -33,6 +34,7 @@ const GlobalOfficeSection = ({
33
34
  customFont: string;
34
35
  }) => {
35
36
  const { width } = useBrowser(true);
37
+ const isApp = useIsApp();
36
38
 
37
39
  return (
38
40
  <section
@@ -158,7 +160,12 @@ const GlobalOfficeSection = ({
158
160
  )}
159
161
  {/*워싱턴*/}
160
162
  <Link
161
- href={'https://www.sjkplawfirm.com/'}
163
+ href={{
164
+ pathname: 'https://www.sjkplawfirm.com/',
165
+ query: {
166
+ ...(isApp ? { isApp: true } : {})
167
+ }
168
+ }}
162
169
  target={'_blank'}
163
170
  style={{ left: `${(930 / MAP_W) * 100}%`, top: `${(730 / MAP_H) * 100}%` }}
164
171
  className={
@@ -234,7 +241,12 @@ const GlobalOfficeSection = ({
234
241
 
235
242
  {/*뉴욕*/}
236
243
  <Link
237
- href={'https://www.sjkplawfirm.com/'}
244
+ href={{
245
+ pathname: 'https://www.sjkplawfirm.com/',
246
+ query: {
247
+ ...(isApp ? { isApp: true } : {})
248
+ }
249
+ }}
238
250
  target={'_blank'}
239
251
  style={{ left: `${(980 / MAP_W) * 100}%`, top: `${(670 / MAP_H) * 100}%` }}
240
252
  className={
@@ -315,8 +327,12 @@ const GlobalOfficeSection = ({
315
327
  'max-xl:-translate-y-[18.8vw] ' +
316
328
  'max-md:relative max-md:!left-0 max-md:!top-0 max-md:order-3 max-md:w-full max-md:translate-y-0 max-md:items-start '
317
329
  }
318
- target={isCenter ?'_blank' : '_self'}
319
- href={ isCenter ? 'https://www.daeryunlaw.com/map/seoulbon?scroll=false' : '/map/seoulbon?scroll=false'}
330
+ target={isCenter ? '_blank' : '_self'}
331
+ href={
332
+ isCenter
333
+ ? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/map/seoulbon?scroll=false`
334
+ : '/map/seoulbon?scroll=false'
335
+ }
320
336
  >
321
337
  <span className={'relative block h-fit w-fit '}>
322
338
  {width >= 1280 ? (
@@ -388,8 +404,12 @@ const GlobalOfficeSection = ({
388
404
  'max-xl:translate-x-0 max-xl:items-start ' +
389
405
  'max-md:relative max-md:!right-0 max-md:!top-0 max-md:order-4 max-md:w-full'
390
406
  }
391
- target={isCenter ?'_blank' : '_self'}
392
- href={ isCenter ? 'https://www.daeryunlaw.com/map/busan1?scroll=false' : '/map/busan1?scroll=false'}
407
+ target={isCenter ? '_blank' : '_self'}
408
+ href={
409
+ isCenter
410
+ ? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/map/busan1?scroll=false`
411
+ : '/map/busan1?scroll=false'
412
+ }
393
413
  >
394
414
  <span className={'relative block h-fit w-fit '}>
395
415
  {width >= 1280 ? (
@@ -71,7 +71,7 @@ const PcHeader = ({ isNotSubPage, pcRoutes, isTextWhite, isBgOpacityZero, isBgGr
71
71
  //1024px
72
72
  'max-lg:items-center max-lg:pt-0 '}>
73
73
  <Link href={`/`} className={'relative h-[38px] w-[230px] shrink-0 max-xl:h-[32px]'}>
74
- <Image src={`${process.env.NEXT_PUBLIC_S3_URL}/logo/new/${centerName}${isTextWhite || isHover ? '_w' : ''}.webp`} alt="법무법인(유한)대륜" fill sizes={'216px'} priority className={'h-full w-full object-contain object-left'}/>
74
+ <Image src={`${process.env.NEXT_PUBLIC_S3_URL}/logo/new/${centerName}${isTextWhite || isHover ? '_w' : ''}.webp`} alt="법무법인(유한)대륜" fill sizes={'300px'} priority className={'h-full w-full object-contain object-left'}/>
75
75
  </Link>
76
76
  <span className={'flex flex-1 items-start justify-end gap-[20px] pt-[5px] ' +
77
77
  //1024px
@@ -118,7 +118,7 @@ const PcHeader = ({
118
118
  src={`${process.env.NEXT_PUBLIC_S3_URL}/logo/new/${centerName}${isTextWhite || isHover ? '_w' : ''}.webp`}
119
119
  alt="법무법인(유한)대륜"
120
120
  fill
121
- sizes={'216px'}
121
+ sizes={'300px'}
122
122
  priority
123
123
  className={'h-full w-full object-contain object-left'}
124
124
  />
@@ -118,6 +118,8 @@ const ViewMoreSection = (props) => {
118
118
  //모바일
119
119
  ' max-md:h-[180px] max-md:w-full max-md:py-[30px] max-2xs:px-[25px] max-2xs:py-[35px]'} key={index}>
120
120
  <p className={'flex justify-between text-[34px] font-bold leading-tight tracking-[-1.7px] ' +
121
+ //1700px
122
+ 'max-5xl:text-[32px] ' +
121
123
  //1400px
122
124
  ' max-xxl:text-[26px] ' +
123
125
  //타블렛
@@ -133,6 +135,8 @@ const ViewMoreSection = (props) => {
133
135
  </p>
134
136
  <p className={'mt-[22px] whitespace-pre-wrap break-keep text-[20px] font-medium tracking-[-1px] text-[#5F656E] ' +
135
137
  'transition-[color] group-hover:text-white ' +
138
+ //1700px
139
+ 'max-5xl:text-[18px] ' +
136
140
  //1500px
137
141
  ' max-xxl:mt-[20px] max-xxl:text-[16px] ' +
138
142
  //타블렛
@@ -217,6 +217,8 @@ const ViewMoreSection = (props: IViewMoreSectionTypes) => {
217
217
  <p
218
218
  className={
219
219
  'flex justify-between text-[34px] font-bold leading-tight tracking-[-1.7px] ' +
220
+ //1700px
221
+ 'max-5xl:text-[32px] ' +
220
222
  //1400px
221
223
  ' max-xxl:text-[26px] ' +
222
224
  //타블렛
@@ -245,6 +247,8 @@ const ViewMoreSection = (props: IViewMoreSectionTypes) => {
245
247
  className={
246
248
  'mt-[22px] whitespace-pre-wrap break-keep text-[20px] font-medium tracking-[-1px] text-[#5F656E] ' +
247
249
  'transition-[color] group-hover:text-white ' +
250
+ //1700px
251
+ 'max-5xl:text-[18px] ' +
248
252
  //1500px
249
253
  ' max-xxl:mt-[20px] max-xxl:text-[16px] ' +
250
254
  //타블렛
@@ -4,8 +4,10 @@ import Image from 'next/image';
4
4
  import React from 'react';
5
5
  import Arrow5 from '../../asset/images/categoryView/section9_arrow_05.webp';
6
6
  import Arrow3 from '../../asset/images/categoryView/section9_arrow_03.webp';
7
+ import useIsApp from '../hook/useIsApp';
7
8
  const CategoryComponent = (props) => {
8
9
  const { showCategory, onClickPage, currentPage, maxPageNum, selectedCenter, currentCenterTitle, allMainCenterTargetBlank } = props;
10
+ const isApp = useIsApp();
9
11
  const linkString = (id, pathname) => {
10
12
  let link = '';
11
13
  if (selectedCenter.code_desc === currentCenterTitle && !allMainCenterTargetBlank) {
@@ -32,7 +34,10 @@ const CategoryComponent = (props) => {
32
34
  'max-md2:auto-rows-[minmax(0,60px)] max-md2:grid-cols-1 ' +
33
35
  //520px
34
36
  'max-2sm:auto-rows-[minmax(0,50px)]'}>
35
- {showCategory.map((item, index) => (<Link href={linkString(item.idx, item.pathname)} key={index} className={'group/category flex h-full w-full items-center justify-between gap-[6px] rounded-[10px] border-[1px] border-solid border-[#D9D9D9] bg-[#fff] px-[20px] ' +
37
+ {showCategory.map((item, index) => (<Link href={{
38
+ pathname: linkString(item.idx, item.pathname),
39
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
40
+ }} key={index} className={'group/category flex h-full w-full items-center justify-between gap-[6px] rounded-[10px] border-[1px] border-solid border-[#D9D9D9] bg-[#fff] px-[20px] ' +
36
41
  //900px
37
42
  'max-md2:rounded-none max-md2:border-0' +
38
43
  //520px
@@ -7,6 +7,7 @@ import { ICategory, ICenter } from './ICategoryViewTypes';
7
7
  import Icon from '../../asset/images/categoryView/section9_icon.webp';
8
8
  import Arrow5 from '../../asset/images/categoryView/section9_arrow_05.webp';
9
9
  import Arrow3 from '../../asset/images/categoryView/section9_arrow_03.webp';
10
+ import useIsApp from '../hook/useIsApp';
10
11
  const CategoryComponent = (props: {
11
12
  showCategory: ICategory[];
12
13
  onClickPage: (num: number) => void;
@@ -26,6 +27,8 @@ const CategoryComponent = (props: {
26
27
  allMainCenterTargetBlank
27
28
  } = props;
28
29
 
30
+ const isApp = useIsApp();
31
+
29
32
  const linkString = (id: number, pathname: string) => {
30
33
  let link = '';
31
34
 
@@ -64,7 +67,12 @@ const CategoryComponent = (props: {
64
67
  >
65
68
  {showCategory.map((item, index) => (
66
69
  <Link
67
- href={linkString(item.idx, item.pathname)}
70
+ href={{
71
+ pathname: linkString(item.idx, item.pathname),
72
+ query: {
73
+ ...(isApp ? { isApp: true } : {})
74
+ }
75
+ }}
68
76
  key={index}
69
77
  className={
70
78
  'group/category flex h-full w-full items-center justify-between gap-[6px] rounded-[10px] border-[1px] border-solid border-[#D9D9D9] bg-[#fff] px-[20px] ' +
@@ -1,3 +1,4 @@
1
1
  export * from './useBrowser';
2
+ export * from './useIsApp';
2
3
  export * from './useCountNum';
3
4
  export * from './useElementObserve';
@@ -1,3 +1,4 @@
1
1
  export * from './useBrowser';
2
+ export * from './useIsApp';
2
3
  export * from './useCountNum';
3
4
  export * from './useElementObserve';
@@ -1,3 +1,4 @@
1
1
  export * from './useBrowser';
2
+ export * from './useIsApp';
2
3
  export * from './useCountNum';
3
4
  export * from './useElementObserve';
@@ -0,0 +1,2 @@
1
+ declare const useIsApp: () => boolean;
2
+ export default useIsApp;
@@ -0,0 +1,22 @@
1
+ import { useEffect, useState } from 'react';
2
+ import { useSearchParams } from 'next/navigation';
3
+ const useIsApp = () => {
4
+ const searchParams = useSearchParams();
5
+ const isAppParams = (searchParams === null || searchParams === void 0 ? void 0 : searchParams.get('isApp')) === 'true';
6
+ const [isApp, setIsApp] = useState(false);
7
+ useEffect(() => {
8
+ if (typeof window === 'undefined')
9
+ return;
10
+ const sessionIsApp = sessionStorage.getItem('isApp');
11
+ if (sessionIsApp === 'true') {
12
+ setIsApp(true);
13
+ return;
14
+ }
15
+ if (isAppParams) {
16
+ setIsApp(true);
17
+ return;
18
+ }
19
+ }, [isAppParams]);
20
+ return isApp;
21
+ };
22
+ export default useIsApp;
@@ -0,0 +1,29 @@
1
+ import { useEffect, useState } from 'react';
2
+ import { useSearchParams } from 'next/navigation';
3
+
4
+ const useIsApp = () => {
5
+ const searchParams = useSearchParams();
6
+ const isAppParams = searchParams?.get('isApp') === 'true';
7
+
8
+ const [isApp, setIsApp] = useState<boolean>(false);
9
+
10
+ useEffect(() => {
11
+ if (typeof window === 'undefined') return;
12
+
13
+ const sessionIsApp = sessionStorage.getItem('isApp');
14
+
15
+ if (sessionIsApp === 'true') {
16
+ setIsApp(true);
17
+ return;
18
+ }
19
+
20
+ if (isAppParams) {
21
+ setIsApp(true);
22
+ return;
23
+ }
24
+ }, [isAppParams]);
25
+
26
+ return isApp;
27
+ };
28
+
29
+ export default useIsApp;
@@ -0,0 +1,2 @@
1
+ declare const useIsApp: () => boolean;
2
+ export default useIsApp;
@@ -0,0 +1,22 @@
1
+ import { useEffect, useState } from 'react';
2
+ import { useSearchParams } from 'next/navigation';
3
+ const useIsApp = () => {
4
+ const searchParams = useSearchParams();
5
+ const isAppParams = (searchParams === null || searchParams === void 0 ? void 0 : searchParams.get('isApp')) === 'true';
6
+ const [isApp, setIsApp] = useState(false);
7
+ useEffect(() => {
8
+ if (typeof window === 'undefined')
9
+ return;
10
+ const sessionIsApp = sessionStorage.getItem('isApp');
11
+ if (sessionIsApp === 'true') {
12
+ setIsApp(true);
13
+ return;
14
+ }
15
+ if (isAppParams) {
16
+ setIsApp(true);
17
+ return;
18
+ }
19
+ }, [isAppParams]);
20
+ return isApp;
21
+ };
22
+ export default useIsApp;