@daeryun/dr_components 1.2.40 → 1.2.41
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/Footer/index.d.ts +3 -1
- package/dist/components/Footer/index.jsx +25 -12
- package/dist/components/Footer/index.tsx +39 -9
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.jsx +8 -2
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.tsx +14 -4
- package/dist/components/categoryView/CategoryComponent.jsx +6 -1
- package/dist/components/categoryView/CategoryComponent.tsx +10 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- 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: (
|
|
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 '../common/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={
|
|
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={
|
|
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={
|
|
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={
|
|
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
|
|
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 '../common/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={
|
|
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
|
|
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 } =
|
|
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={
|
|
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={
|
|
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={
|
|
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 '../../components/common/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] ' +
|
|
@@ -149,7 +151,9 @@ const GlobalOfficeSection = ({ initialData, isCenter, customFont }) => {
|
|
|
149
151
|
'max-[1935px]:-translate-y-[7.23vw] ' +
|
|
150
152
|
'max-4xl:-translate-y-[8vw] ' +
|
|
151
153
|
'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
|
|
154
|
+
'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
|
|
155
|
+
? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/map/seoulbon?scroll=false`
|
|
156
|
+
: '/map/seoulbon?scroll=false'}>
|
|
153
157
|
<span className={'relative block h-fit w-fit '}>
|
|
154
158
|
{width >= 1280 ? (<LineSeoul className={'h-auto w-[382px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
|
|
155
159
|
'max-[1935px]:w-[19.74vw] ' +
|
|
@@ -182,7 +186,9 @@ const GlobalOfficeSection = ({ initialData, isCenter, customFont }) => {
|
|
|
182
186
|
<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
187
|
'max-4xl:translate-x-[75%] ' +
|
|
184
188
|
'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
|
|
189
|
+
'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
|
|
190
|
+
? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/map/busan1?scroll=false`
|
|
191
|
+
: '/map/busan1?scroll=false'}>
|
|
186
192
|
<span className={'relative block h-fit w-fit '}>
|
|
187
193
|
{width >= 1280 ? (<LineBusan className={'h-auto w-[160px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
|
|
188
194
|
'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 '../../components/common/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
|
|
@@ -315,8 +317,12 @@ const GlobalOfficeSection = ({
|
|
|
315
317
|
'max-xl:-translate-y-[18.8vw] ' +
|
|
316
318
|
'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
319
|
}
|
|
318
|
-
target={isCenter ?'_blank' : '_self'}
|
|
319
|
-
href={
|
|
320
|
+
target={isCenter ? '_blank' : '_self'}
|
|
321
|
+
href={
|
|
322
|
+
isCenter
|
|
323
|
+
? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/map/seoulbon?scroll=false`
|
|
324
|
+
: '/map/seoulbon?scroll=false'
|
|
325
|
+
}
|
|
320
326
|
>
|
|
321
327
|
<span className={'relative block h-fit w-fit '}>
|
|
322
328
|
{width >= 1280 ? (
|
|
@@ -388,8 +394,12 @@ const GlobalOfficeSection = ({
|
|
|
388
394
|
'max-xl:translate-x-0 max-xl:items-start ' +
|
|
389
395
|
'max-md:relative max-md:!right-0 max-md:!top-0 max-md:order-4 max-md:w-full'
|
|
390
396
|
}
|
|
391
|
-
target={isCenter ?'_blank' : '_self'}
|
|
392
|
-
href={
|
|
397
|
+
target={isCenter ? '_blank' : '_self'}
|
|
398
|
+
href={
|
|
399
|
+
isCenter
|
|
400
|
+
? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/map/busan1?scroll=false`
|
|
401
|
+
: '/map/busan1?scroll=false'
|
|
402
|
+
}
|
|
393
403
|
>
|
|
394
404
|
<span className={'relative block h-fit w-fit '}>
|
|
395
405
|
{width >= 1280 ? (
|
|
@@ -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 '../common/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={
|
|
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,8 @@ 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 '../common/hook/useIsApp';
|
|
11
|
+
|
|
10
12
|
const CategoryComponent = (props: {
|
|
11
13
|
showCategory: ICategory[];
|
|
12
14
|
onClickPage: (num: number) => void;
|
|
@@ -26,6 +28,8 @@ const CategoryComponent = (props: {
|
|
|
26
28
|
allMainCenterTargetBlank
|
|
27
29
|
} = props;
|
|
28
30
|
|
|
31
|
+
const isApp = useIsApp();
|
|
32
|
+
|
|
29
33
|
const linkString = (id: number, pathname: string) => {
|
|
30
34
|
let link = '';
|
|
31
35
|
|
|
@@ -64,7 +68,12 @@ const CategoryComponent = (props: {
|
|
|
64
68
|
>
|
|
65
69
|
{showCategory.map((item, index) => (
|
|
66
70
|
<Link
|
|
67
|
-
href={
|
|
71
|
+
href={{
|
|
72
|
+
pathname: linkString(item.idx, item.pathname),
|
|
73
|
+
query: {
|
|
74
|
+
...(isApp ? { isApp: true } : {})
|
|
75
|
+
}
|
|
76
|
+
}}
|
|
68
77
|
key={index}
|
|
69
78
|
className={
|
|
70
79
|
'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] ' +
|