@daeryun/dr_components 0.2.86 → 0.2.89
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/page/MyCase/MyCaseApp.jsx +7 -5
- package/dist/components/page/MyCase/MyCaseApp.tsx +4 -4
- package/dist/components/page/MyCase/MyCasePage.jsx +1 -1
- package/dist/components/page/MyCase/MyCasePage.tsx +1 -1
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.jsx +2 -2
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.tsx +2 -2
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.jsx +1 -1
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +1 -1
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.d.ts +2 -3
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.jsx +6 -6
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.tsx +6 -6
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.jsx +29 -0
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.tsx +81 -0
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.d.ts +10 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.d.ts +7 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.js +8 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.ts +11 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- /package/dist/components/page/MyCase/_component/_layout/{IntroWrapper.d.ts → IntroAppWrapper.d.ts} +0 -0
- /package/dist/components/page/MyCase/_component/_layout/{IntroWrapper.jsx → IntroPageWrapper.jsx} +0 -0
- /package/dist/components/page/MyCase/_component/_layout/{IntroWrapper.tsx → IntroPageWrapper.tsx} +0 -0
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
2
|
+
import IntroAppWrapper from './_component/_layout/IntroAppWrapper';
|
|
3
|
+
import CaseAppContainer from './_component/CaseAppContainer';
|
|
4
|
+
import HeaderLayout from './_component/_layout/HeaderLayout';
|
|
3
5
|
import background from '../../../asset/images/myCase/background.webp';
|
|
4
6
|
import backgroundTb from '../../../asset/images/myCase/background_tb.webp';
|
|
5
7
|
import backgroundMo from '../../../asset/images/myCase/background_mo.webp';
|
|
6
8
|
const MyCaseApp = () => {
|
|
7
9
|
return (<div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
|
|
8
|
-
<
|
|
10
|
+
<IntroAppWrapper title={'나의 사건 현황'} subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'}
|
|
9
11
|
// backgroundImage={background}
|
|
10
12
|
backgroundImage={background} backgroundImageTb={backgroundTb} backgroundImageMo={backgroundMo} outerClassName="h-[244px] sm-top:h-[448px] lg:h-[513px]"/>
|
|
11
13
|
<div className={'relative z-[1]'}>
|
|
12
14
|
{/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
<HeaderLayout>
|
|
16
|
+
<CaseAppContainer />
|
|
17
|
+
</HeaderLayout>
|
|
16
18
|
</div>
|
|
17
19
|
</div>);
|
|
18
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import IntroAppWrapper from './_component/_layout/IntroAppWrapper';
|
|
4
4
|
import CaseAppContainer from './_component/CaseAppContainer';
|
|
5
5
|
import HeaderLayout from './_component/_layout/HeaderLayout';
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ import backgroundMo from '../../../asset/images/myCase/background_mo.webp';
|
|
|
10
10
|
const MyCaseApp = () => {
|
|
11
11
|
return (
|
|
12
12
|
<div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
|
|
13
|
-
<
|
|
13
|
+
<IntroAppWrapper
|
|
14
14
|
title={'나의 사건 현황'}
|
|
15
15
|
subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'}
|
|
16
16
|
// backgroundImage={background}
|
|
@@ -21,9 +21,9 @@ const MyCaseApp = () => {
|
|
|
21
21
|
/>
|
|
22
22
|
<div className={'relative z-[1]'}>
|
|
23
23
|
{/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
|
|
24
|
-
|
|
24
|
+
<HeaderLayout>
|
|
25
25
|
<CaseAppContainer />
|
|
26
|
-
</HeaderLayout>
|
|
26
|
+
</HeaderLayout>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
29
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import IntroWrapper from './_component/_layout/
|
|
2
|
+
import IntroWrapper from './_component/_layout/IntroPageWrapper';
|
|
3
3
|
import CasePageContainer from './_component/CasePageContainer';
|
|
4
4
|
import HeaderLayout from './_component/_layout/HeaderLayout';
|
|
5
5
|
import background from '../../../asset/images/myCase/background.webp';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import IntroWrapper from './_component/_layout/
|
|
3
|
+
import IntroWrapper from './_component/_layout/IntroPageWrapper';
|
|
4
4
|
import CasePageContainer from './_component/CasePageContainer';
|
|
5
5
|
import HeaderLayout from './_component/_layout/HeaderLayout';
|
|
6
6
|
import background from '../../../asset/images/myCase/background.webp';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import IntroAppWrapper from '../_component/_layout/IntroAppWrapper';
|
|
4
4
|
import SubMenuButton from '../_component/_button/SubMenuButton';
|
|
5
5
|
import HeaderLayout from '../_component/_layout/HeaderLayout';
|
|
6
6
|
import DetailInfo from './_component/DetailInfo';
|
|
@@ -31,7 +31,7 @@ const MyCaseDetail = () => {
|
|
|
31
31
|
const { data: myFileList, isLoading: myFileListLoading } = useGetMyFileList(id);
|
|
32
32
|
const { data: myCaseQuestion, isLoading: myCaseQuestionLoading, refetch: myCaseQuestionRefetch } = useGetMyCaseQuestion(id, pageNumber, pageSize);
|
|
33
33
|
return (<div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
|
|
34
|
-
<
|
|
34
|
+
<IntroAppWrapper title={'상세 사건 정보'} subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'} backgroundImage={background} backgroundImageTb={backgroundTb} backgroundImageMo={backgroundMo} outerClassName="h-[300px] sm-top:h-[448px] lg:h-[513px]"/>
|
|
35
35
|
|
|
36
36
|
<div className={'relative z-[1] '}>
|
|
37
37
|
{/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import IntroAppWrapper from '../_component/_layout/IntroAppWrapper';
|
|
6
6
|
|
|
7
7
|
import SubMenuButton from '../_component/_button/SubMenuButton';
|
|
8
8
|
import HeaderLayout from '../_component/_layout/HeaderLayout';
|
|
@@ -51,7 +51,7 @@ const MyCaseDetail = () => {
|
|
|
51
51
|
|
|
52
52
|
return (
|
|
53
53
|
<div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
|
|
54
|
-
<
|
|
54
|
+
<IntroAppWrapper
|
|
55
55
|
title={'상세 사건 정보'}
|
|
56
56
|
subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'}
|
|
57
57
|
backgroundImage={background}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import IntroWrapper from '../_component/_layout/
|
|
2
|
+
import IntroWrapper from '../_component/_layout/IntroPageWrapper';
|
|
3
3
|
import SubMenuButton from '../_component/_button/SubMenuButton';
|
|
4
4
|
import HeaderLayout from '../_component/_layout/HeaderLayout';
|
|
5
5
|
import DetailInfo from './_component/DetailInfo';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
|
|
3
|
-
import IntroWrapper from '../_component/_layout/
|
|
3
|
+
import IntroWrapper from '../_component/_layout/IntroPageWrapper';
|
|
4
4
|
|
|
5
5
|
import SubMenuButton from '../_component/_button/SubMenuButton';
|
|
6
6
|
import HeaderLayout from '../_component/_layout/HeaderLayout';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
type CategoryMenuType = {
|
|
3
|
-
t: (key: string) => string;
|
|
4
3
|
isMargin?: boolean;
|
|
5
4
|
isWhite?: boolean;
|
|
6
5
|
};
|
|
7
|
-
declare const
|
|
8
|
-
export default
|
|
6
|
+
declare const CategoryMenuApp: (props: CategoryMenuType) => React.JSX.Element;
|
|
7
|
+
export default CategoryMenuApp;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { catagoryMenuName } from '../../_lib/catagoryMenuName';
|
|
3
2
|
import { usePathname, useRouter } from 'next/navigation';
|
|
4
3
|
import Image from 'next/image';
|
|
5
4
|
import Link from 'next/link';
|
|
@@ -7,8 +6,9 @@ import homeWhite from '../../../../../asset/images/myCase/home.svg';
|
|
|
7
6
|
import homeBlack from '../../../../../asset/images/myCase/home.webp';
|
|
8
7
|
import arrowWhite from '../../../../../asset/images/myCase/nav_arr.webp';
|
|
9
8
|
import arrowBlack from '../../../../../asset/images/myCase/arrow_2.webp';
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
import { catagoryMenuNameApp } from '../../_lib/catagoryMenuNameApp';
|
|
10
|
+
const CategoryMenuApp = (props) => {
|
|
11
|
+
const { isMargin = true, isWhite = false } = props;
|
|
12
12
|
const router = useRouter();
|
|
13
13
|
const pathname = usePathname();
|
|
14
14
|
const [menu, setMenu] = useState({ title: '', subTitle: '', address: '' });
|
|
@@ -20,8 +20,8 @@ const CategoryMenu = (props) => {
|
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
useEffect(() => {
|
|
23
|
-
setMenu(
|
|
24
|
-
}, [pathname
|
|
23
|
+
setMenu(catagoryMenuNameApp({ url: pathname }));
|
|
24
|
+
}, [pathname]);
|
|
25
25
|
const imagePath = isWhite ? homeWhite : homeBlack;
|
|
26
26
|
const arrowImage = isWhite ? arrowWhite : arrowBlack;
|
|
27
27
|
const textColor = isWhite ? 'text-[#fff]' : 'text-[#333333]';
|
|
@@ -44,4 +44,4 @@ const CategoryMenu = (props) => {
|
|
|
44
44
|
</>)}
|
|
45
45
|
</div>);
|
|
46
46
|
};
|
|
47
|
-
export default
|
|
47
|
+
export default CategoryMenuApp;
|
|
@@ -7,15 +7,15 @@ import homeWhite from '../../../../../asset/images/myCase/home.svg';
|
|
|
7
7
|
import homeBlack from '../../../../../asset/images/myCase/home.webp';
|
|
8
8
|
import arrowWhite from '../../../../../asset/images/myCase/nav_arr.webp';
|
|
9
9
|
import arrowBlack from '../../../../../asset/images/myCase/arrow_2.webp';
|
|
10
|
+
import { catagoryMenuNameApp } from '../../_lib/catagoryMenuNameApp';
|
|
10
11
|
|
|
11
12
|
type CategoryMenuType = {
|
|
12
|
-
t: (key: string) => string;
|
|
13
13
|
isMargin?: boolean;
|
|
14
14
|
isWhite?: boolean;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
const
|
|
18
|
-
const {
|
|
17
|
+
const CategoryMenuApp = (props: CategoryMenuType) => {
|
|
18
|
+
const { isMargin = true, isWhite = false } = props;
|
|
19
19
|
const router = useRouter();
|
|
20
20
|
const pathname = usePathname();
|
|
21
21
|
|
|
@@ -29,8 +29,8 @@ const CategoryMenu = (props: CategoryMenuType) => {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
useEffect(() => {
|
|
32
|
-
setMenu(
|
|
33
|
-
}, [pathname
|
|
32
|
+
setMenu(catagoryMenuNameApp({ url: pathname }));
|
|
33
|
+
}, [pathname]);
|
|
34
34
|
|
|
35
35
|
const imagePath = isWhite ? homeWhite : homeBlack;
|
|
36
36
|
|
|
@@ -74,4 +74,4 @@ const CategoryMenu = (props: CategoryMenuType) => {
|
|
|
74
74
|
);
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
export default
|
|
77
|
+
export default CategoryMenuApp;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import Wrapper from '../../../../Layout/Wrapper';
|
|
4
|
+
import CaseWrapper from './CaseWrapper';
|
|
5
|
+
import CategoryMenuApp from '../_breadCrumble/CategoryMenuApp';
|
|
6
|
+
const IntroWrapper = ({ backgroundImage, backgroundImageTb, backgroundImageMo, outerClassName, title, subTitle }) => {
|
|
7
|
+
return (<div className={'absolute top-[70px] w-screen min-w-[360px] md:top-[78px] md2:top-[88px] ' + outerClassName}>
|
|
8
|
+
{backgroundImage ? (<>
|
|
9
|
+
{backgroundImageTb && (<Image unoptimized src={backgroundImageTb} alt="background" fill className="object-cover max-sm:hidden lg:hidden"/>)}
|
|
10
|
+
{backgroundImageMo && (<Image unoptimized src={backgroundImageMo} alt="background" fill className="sm-top:hidden object-cover"/>)}
|
|
11
|
+
<Image unoptimized src={backgroundImage} alt="background" fill className="hidden object-cover lg:block"/>
|
|
12
|
+
</>) : (<></>)}
|
|
13
|
+
|
|
14
|
+
<Wrapper>
|
|
15
|
+
<div className={'w-full lg:flex lg:flex-row lg:items-center lg:justify-center'}>
|
|
16
|
+
<CategoryMenuApp />
|
|
17
|
+
</div>
|
|
18
|
+
</Wrapper>
|
|
19
|
+
<CaseWrapper>
|
|
20
|
+
<div className={'relative w-full '}>
|
|
21
|
+
<p className={'title_large_mo sm-top:title_large_tb lg:title_large '}>{title}</p>
|
|
22
|
+
<p className={'title_small_mo sm-top:title_small_tb lg:title_small max-sm-top:mt-[8px] sm-top:mt-[12px] mt-[8px] '}>
|
|
23
|
+
{subTitle}
|
|
24
|
+
</p>
|
|
25
|
+
</div>
|
|
26
|
+
</CaseWrapper>
|
|
27
|
+
</div>);
|
|
28
|
+
};
|
|
29
|
+
export default IntroWrapper;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import Image, { StaticImageData } from 'next/image';
|
|
3
|
+
import Wrapper from '../../../../Layout/Wrapper';
|
|
4
|
+
import CategoryMenuPage from '../_breadCrumble/CategoryMenuPage';
|
|
5
|
+
|
|
6
|
+
import CaseWrapper from './CaseWrapper';
|
|
7
|
+
import CategoryMenuApp from '../_breadCrumble/CategoryMenuApp';
|
|
8
|
+
|
|
9
|
+
const IntroWrapper = ({
|
|
10
|
+
backgroundImage,
|
|
11
|
+
backgroundImageTb,
|
|
12
|
+
backgroundImageMo,
|
|
13
|
+
outerClassName,
|
|
14
|
+
title,
|
|
15
|
+
subTitle
|
|
16
|
+
}: {
|
|
17
|
+
backgroundImage?: string | StaticImageData;
|
|
18
|
+
backgroundImageTb?: string | StaticImageData;
|
|
19
|
+
backgroundImageMo?: string | StaticImageData;
|
|
20
|
+
outerClassName?: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
subTitle?: string;
|
|
23
|
+
}) => {
|
|
24
|
+
return (
|
|
25
|
+
<div
|
|
26
|
+
className={'absolute top-[70px] w-screen min-w-[360px] md:top-[78px] md2:top-[88px] ' + outerClassName}
|
|
27
|
+
>
|
|
28
|
+
{backgroundImage ? (
|
|
29
|
+
<>
|
|
30
|
+
{backgroundImageTb && (
|
|
31
|
+
<Image
|
|
32
|
+
unoptimized
|
|
33
|
+
src={backgroundImageTb}
|
|
34
|
+
alt="background"
|
|
35
|
+
fill
|
|
36
|
+
className="object-cover max-sm:hidden lg:hidden"
|
|
37
|
+
/>
|
|
38
|
+
)}
|
|
39
|
+
{backgroundImageMo && (
|
|
40
|
+
<Image
|
|
41
|
+
unoptimized
|
|
42
|
+
src={backgroundImageMo}
|
|
43
|
+
alt="background"
|
|
44
|
+
fill
|
|
45
|
+
className="sm-top:hidden object-cover"
|
|
46
|
+
/>
|
|
47
|
+
)}
|
|
48
|
+
<Image
|
|
49
|
+
unoptimized
|
|
50
|
+
src={backgroundImage}
|
|
51
|
+
alt="background"
|
|
52
|
+
fill
|
|
53
|
+
className="hidden object-cover lg:block"
|
|
54
|
+
/>
|
|
55
|
+
</>
|
|
56
|
+
) : (
|
|
57
|
+
<></>
|
|
58
|
+
)}
|
|
59
|
+
|
|
60
|
+
<Wrapper>
|
|
61
|
+
<div className={'w-full lg:flex lg:flex-row lg:items-center lg:justify-center'}>
|
|
62
|
+
<CategoryMenuApp />
|
|
63
|
+
</div>
|
|
64
|
+
</Wrapper>
|
|
65
|
+
<CaseWrapper>
|
|
66
|
+
<div className={'relative w-full '}>
|
|
67
|
+
<p className={'title_large_mo sm-top:title_large_tb lg:title_large '}>{title}</p>
|
|
68
|
+
<p
|
|
69
|
+
className={
|
|
70
|
+
'title_small_mo sm-top:title_small_tb lg:title_small max-sm-top:mt-[8px] sm-top:mt-[12px] mt-[8px] '
|
|
71
|
+
}
|
|
72
|
+
>
|
|
73
|
+
{subTitle}
|
|
74
|
+
</p>
|
|
75
|
+
</div>
|
|
76
|
+
</CaseWrapper>
|
|
77
|
+
</div>
|
|
78
|
+
);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export default IntroWrapper;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StaticImageData } from 'next/image';
|
|
2
|
+
declare const IntroWrapper: ({ backgroundImage, backgroundImageTb, backgroundImageMo, outerClassName, title, subTitle }: {
|
|
3
|
+
backgroundImage?: string | StaticImageData;
|
|
4
|
+
backgroundImageTb?: string | StaticImageData;
|
|
5
|
+
backgroundImageMo?: string | StaticImageData;
|
|
6
|
+
outerClassName?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
subTitle?: string;
|
|
9
|
+
}) => import("react").JSX.Element;
|
|
10
|
+
export default IntroWrapper;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function catagoryMenuNameApp({ url }: { url: string }): {
|
|
2
|
+
title: string;
|
|
3
|
+
subTitle: string;
|
|
4
|
+
address: string;
|
|
5
|
+
} {
|
|
6
|
+
if (url?.includes('/mycase')) {
|
|
7
|
+
return { title: '나의사건현황', subTitle: '나의사건현황', address: 'mycase' };
|
|
8
|
+
} else {
|
|
9
|
+
return { title: '', subTitle: '', address: '/' };
|
|
10
|
+
}
|
|
11
|
+
}
|