@daeryun/dr_components 0.2.99 → 0.3.0
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/banner/TopBanner.jsx +14 -11
- package/dist/components/banner/TopBanner.tsx +15 -12
- package/dist/components/myCase/MyCase.d.ts +5 -0
- package/dist/components/myCase/MyCase.jsx +27 -0
- package/dist/components/myCase/MyCase.tsx +48 -0
- package/dist/components/page/MyCase/MyCase.stories.d.ts +6 -0
- package/dist/components/page/MyCase/MyCase.stories.jsx +17 -0
- package/dist/components/page/MyCase/MyCase.stories.tsx +25 -0
- package/dist/components/page/MyCase/MyCaseApp.d.ts +2 -0
- package/dist/components/page/MyCase/MyCaseApp.jsx +19 -0
- package/dist/components/page/MyCase/MyCaseApp.tsx +32 -0
- package/dist/components/page/MyCase/MyCasePage.d.ts +3 -0
- package/dist/components/page/MyCase/MyCasePage.jsx +21 -0
- package/dist/components/page/MyCase/MyCasePage.tsx +32 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.d.ts +6 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.jsx +17 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.tsx +25 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.d.ts +3 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.jsx +66 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.tsx +159 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.d.ts +3 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.jsx +65 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +157 -0
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.d.ts +2 -0
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +79 -0
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +102 -0
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.d.ts +6 -0
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +44 -0
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +94 -0
- package/dist/components/page/MyCase/[id]/_component/TimeLine.d.ts +6 -0
- package/dist/components/page/MyCase/[id]/_component/TimeLine.jsx +46 -0
- package/dist/components/page/MyCase/[id]/_component/TimeLine.tsx +72 -0
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.d.ts +11 -0
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +80 -0
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +188 -0
- package/dist/components/page/MyCase/[id]/_component/_document/Document.d.ts +6 -0
- package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +35 -0
- package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +59 -0
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.d.ts +6 -0
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +76 -0
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +94 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.jsx +107 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.tsx +150 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.jsx +25 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.tsx +55 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.jsx +26 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.tsx +39 -0
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.jsx +4 -0
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.tsx +24 -0
- package/dist/components/page/MyCase/_actions/action.d.ts +35 -0
- package/dist/components/page/MyCase/_actions/action.js +145 -0
- package/dist/components/page/MyCase/_actions/action.ts +165 -0
- package/dist/components/page/MyCase/_component/CaseAppContainer.d.ts +2 -0
- package/dist/components/page/MyCase/_component/CaseAppContainer.jsx +117 -0
- package/dist/components/page/MyCase/_component/CaseAppContainer.tsx +255 -0
- package/dist/components/page/MyCase/_component/CasePageContainer.d.ts +2 -0
- package/dist/components/page/MyCase/_component/CasePageContainer.jsx +106 -0
- package/dist/components/page/MyCase/_component/CasePageContainer.tsx +244 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.d.ts +7 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.jsx +47 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.tsx +77 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.d.ts +8 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.jsx +47 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.tsx +77 -0
- package/dist/components/page/MyCase/_component/_button/Badge.d.ts +14 -0
- package/dist/components/page/MyCase/_component/_button/Badge.jsx +16 -0
- package/dist/components/page/MyCase/_component/_button/Badge.tsx +22 -0
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.d.ts +7 -0
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.jsx +9 -0
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.tsx +33 -0
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.d.ts +7 -0
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.jsx +9 -0
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +31 -0
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.d.ts +6 -0
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.jsx +75 -0
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +85 -0
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.d.ts +7 -0
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.jsx +11 -0
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.tsx +29 -0
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.d.ts +12 -0
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.jsx +25 -0
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.tsx +41 -0
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.d.ts +4 -0
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.jsx +4 -0
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.tsx +5 -0
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.jsx +29 -0
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.tsx +80 -0
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.jsx +31 -0
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.tsx +81 -0
- package/dist/components/page/MyCase/_component/_loading/Loading.d.ts +2 -0
- package/dist/components/page/MyCase/_component/_loading/Loading.jsx +89 -0
- package/dist/components/page/MyCase/_component/_loading/Loading.tsx +92 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.jsx +82 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.tsx +137 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.jsx +81 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.tsx +135 -0
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.d.ts +9 -0
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +65 -0
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +79 -0
- package/dist/components/page/MyCase/_component/_table/CaseTable.d.ts +9 -0
- package/dist/components/page/MyCase/_component/_table/CaseTable.jsx +63 -0
- package/dist/components/page/MyCase/_component/_table/CaseTable.tsx +94 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.d.ts +9 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.jsx +11 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.tsx +28 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.d.ts +5 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.jsx +35 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.tsx +43 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.d.ts +9 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.jsx +11 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.tsx +28 -0
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.d.ts +6 -0
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.js +31 -0
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.ts +22 -0
- package/dist/components/page/MyCase/_fetchers/getCase.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getCase.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getCase.ts +21 -0
- package/dist/components/page/MyCase/_fetchers/getCaseList.d.ts +7 -0
- package/dist/components/page/MyCase/_fetchers/getCaseList.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getCaseList.ts +24 -0
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.ts +21 -0
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.d.ts +7 -0
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.ts +24 -0
- package/dist/components/page/MyCase/_fetchers/getMyFileList.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getMyFileList.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getMyFileList.ts +21 -0
- package/dist/components/page/MyCase/_fetchers/getTimeLine.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getTimeLine.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getTimeLine.ts +21 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuName.d.ts +8 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuName.js +8 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuName.ts +11 -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/components/page/MyCase/_lib/pagination/locale/ko_KR.d.ts +15 -0
- package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.js +21 -0
- package/dist/components/page/MyCase/_type/type.d.ts +73 -0
- package/dist/components/page/MyCase/_type/type.js +1 -0
- package/dist/components/page/MyCase/_type/type.ts +81 -0
- package/dist/components/page/index.d.ts +4 -0
- package/dist/components/page/index.js +4 -0
- package/dist/components/page/index.ts +4 -0
- package/dist/styles/globals.css +2080 -118
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { usePathname, useRouter } from 'next/navigation';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import Link from 'next/link';
|
|
5
|
+
import homeWhite from '../../../../../asset/images/myCase/home.svg';
|
|
6
|
+
import homeBlack from '../../../../../asset/images/myCase/home.webp';
|
|
7
|
+
import arrowWhite from '../../../../../asset/images/myCase/nav_arr.webp';
|
|
8
|
+
import arrowBlack from '../../../../../asset/images/myCase/arrow_2.webp';
|
|
9
|
+
import { catagoryMenuNameApp } from '../../_lib/catagoryMenuNameApp';
|
|
10
|
+
const CategoryMenuApp = (props) => {
|
|
11
|
+
const { isMargin = true, isWhite = false } = props;
|
|
12
|
+
const router = useRouter();
|
|
13
|
+
const pathname = usePathname();
|
|
14
|
+
const [menu, setMenu] = useState({ title: '', subTitle: '', address: '' });
|
|
15
|
+
//페이지 내부에서 쿼리 파라미터 없이 루트 경로로 돌아갈 때 새로고침
|
|
16
|
+
const reloadUrl = (url) => {
|
|
17
|
+
if (pathname === url) {
|
|
18
|
+
router.push(url);
|
|
19
|
+
router.refresh();
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
setMenu(catagoryMenuNameApp({ url: pathname }));
|
|
24
|
+
}, [pathname]);
|
|
25
|
+
const imagePath = isWhite ? homeWhite : homeBlack;
|
|
26
|
+
const arrowImage = isWhite ? arrowWhite : arrowBlack;
|
|
27
|
+
const textColor = isWhite ? 'text-[#fff]' : 'text-[#333333]';
|
|
28
|
+
return (<div className={(isMargin ? 'mb-[70px] mr-0 mt-8 lg:mb-[45px] lg:mt-[47px] ' : '') +
|
|
29
|
+
'relative z-10 flex flex-row font-normal leading-[1] tracking-[-0.32px] ' +
|
|
30
|
+
'text-[13px] xs:text-[14px] sm:text-[15px] lg:text-[16px] ' +
|
|
31
|
+
'min-w-[320px] items-center justify-end gap-[10px] lg:w-[100%]'}>
|
|
32
|
+
<Link href="/">
|
|
33
|
+
<Image src={imagePath} alt={'집'} width={15} height={15} className={'mb-[1px] h-auto sm:w-[17px] lg:w-[18px]'}/>
|
|
34
|
+
</Link>
|
|
35
|
+
<Image src={arrowImage} alt={'화살표_1'} width={8} height={13} className={'h-[13px] w-[8px]'}/>
|
|
36
|
+
{menu.title === menu.subTitle ? (<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
37
|
+
<div className={textColor}>{menu === null || menu === void 0 ? void 0 : menu.title}</div>
|
|
38
|
+
</Link>) : (<>
|
|
39
|
+
<div className={textColor}>{menu === null || menu === void 0 ? void 0 : menu.title}</div>
|
|
40
|
+
<Image src={arrowImage} alt={'화살표_2'} width={8} height={13} className={'h-[13px] w-[8px]'}/>
|
|
41
|
+
<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
42
|
+
<div className={textColor}>{menu === null || menu === void 0 ? void 0 : menu.subTitle}</div>
|
|
43
|
+
</Link>
|
|
44
|
+
</>)}
|
|
45
|
+
</div>);
|
|
46
|
+
};
|
|
47
|
+
export default CategoryMenuApp;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
|
|
3
|
+
import { usePathname, useRouter } from 'next/navigation';
|
|
4
|
+
import Image from 'next/image';
|
|
5
|
+
import Link from 'next/link';
|
|
6
|
+
import homeWhite from '../../../../../asset/images/myCase/home.svg';
|
|
7
|
+
import homeBlack from '../../../../../asset/images/myCase/home.webp';
|
|
8
|
+
import arrowWhite from '../../../../../asset/images/myCase/nav_arr.webp';
|
|
9
|
+
import arrowBlack from '../../../../../asset/images/myCase/arrow_2.webp';
|
|
10
|
+
import { catagoryMenuNameApp } from '../../_lib/catagoryMenuNameApp';
|
|
11
|
+
|
|
12
|
+
type CategoryMenuType = {
|
|
13
|
+
isMargin?: boolean;
|
|
14
|
+
isWhite?: boolean;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const CategoryMenuApp = (props: CategoryMenuType) => {
|
|
18
|
+
const { isMargin = true, isWhite = false } = props;
|
|
19
|
+
const router = useRouter();
|
|
20
|
+
const pathname = usePathname();
|
|
21
|
+
|
|
22
|
+
const [menu, setMenu] = useState({ title: '', subTitle: '', address: '' });
|
|
23
|
+
|
|
24
|
+
//페이지 내부에서 쿼리 파라미터 없이 루트 경로로 돌아갈 때 새로고침
|
|
25
|
+
const reloadUrl = (url: string) => {
|
|
26
|
+
if (pathname === url) {
|
|
27
|
+
router.push(url);
|
|
28
|
+
router.refresh();
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
setMenu(catagoryMenuNameApp({ url: pathname }));
|
|
33
|
+
}, [pathname]);
|
|
34
|
+
|
|
35
|
+
const imagePath = isWhite ? homeWhite : homeBlack;
|
|
36
|
+
|
|
37
|
+
const arrowImage = isWhite ? arrowWhite : arrowBlack;
|
|
38
|
+
|
|
39
|
+
const textColor = isWhite ? 'text-[#fff]' : 'text-[#333333]';
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<div
|
|
43
|
+
className={
|
|
44
|
+
(isMargin ? 'mb-[70px] mr-0 mt-8 lg:mb-[45px] lg:mt-[47px] ' : '') +
|
|
45
|
+
'relative z-10 flex flex-row font-normal leading-[1] tracking-[-0.32px] ' +
|
|
46
|
+
'text-[13px] xs:text-[14px] sm:text-[15px] lg:text-[16px] ' +
|
|
47
|
+
'min-w-[320px] items-center justify-end gap-[10px] lg:w-[100%]'
|
|
48
|
+
}
|
|
49
|
+
>
|
|
50
|
+
<Link href="/">
|
|
51
|
+
<Image
|
|
52
|
+
src={imagePath}
|
|
53
|
+
alt={'집'}
|
|
54
|
+
width={15}
|
|
55
|
+
height={15}
|
|
56
|
+
className={'mb-[1px] h-auto sm:w-[17px] lg:w-[18px]'}
|
|
57
|
+
/>
|
|
58
|
+
</Link>
|
|
59
|
+
<Image src={arrowImage} alt={'화살표_1'} width={8} height={13} className={'h-[13px] w-[8px]'} />
|
|
60
|
+
{menu.title === menu.subTitle ? (
|
|
61
|
+
<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
62
|
+
<div className={textColor}>{menu?.title}</div>
|
|
63
|
+
</Link>
|
|
64
|
+
) : (
|
|
65
|
+
<>
|
|
66
|
+
<div className={textColor}>{menu?.title}</div>
|
|
67
|
+
<Image src={arrowImage} alt={'화살표_2'} width={8} height={13} className={'h-[13px] w-[8px]'} />
|
|
68
|
+
<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
69
|
+
<div className={textColor}>{menu?.subTitle}</div>
|
|
70
|
+
</Link>
|
|
71
|
+
</>
|
|
72
|
+
)}
|
|
73
|
+
</div>
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export default CategoryMenuApp;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { catagoryMenuName } from '../../_lib/catagoryMenuName';
|
|
3
|
+
import { useRouter } from 'next/router';
|
|
4
|
+
import Image from 'next/image';
|
|
5
|
+
import Link from 'next/link';
|
|
6
|
+
import homeWhite from '../../../../../asset/images/myCase/home.svg';
|
|
7
|
+
import homeBlack from '../../../../../asset/images/myCase/home.webp';
|
|
8
|
+
import arrowWhite from '../../../../../asset/images/myCase/nav_arr.webp';
|
|
9
|
+
import arrowBlack from '../../../../../asset/images/myCase/arrow_2.webp';
|
|
10
|
+
const CategoryMenu = (props) => {
|
|
11
|
+
const { t, isMargin = true, isWhite = false } = props;
|
|
12
|
+
const router = useRouter();
|
|
13
|
+
const [menu, setMenu] = useState({ title: '', subTitle: '', address: '' });
|
|
14
|
+
//페이지 내부에서 쿼리 파라미터 없이 루트 경로로 돌아갈 때 새로고침
|
|
15
|
+
const reloadUrl = (url) => {
|
|
16
|
+
if (router.pathname === url) {
|
|
17
|
+
router.push(url).then(() => {
|
|
18
|
+
router.reload();
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
setMenu(catagoryMenuName({ url: router.pathname, t }));
|
|
24
|
+
}, [router.pathname, t]);
|
|
25
|
+
const imagePath = isWhite ? homeWhite : homeBlack;
|
|
26
|
+
const arrowImage = isWhite ? arrowWhite : arrowBlack;
|
|
27
|
+
const textColor = isWhite ? 'text-[#fff]' : 'text-[#333333]';
|
|
28
|
+
return (<div className={(isMargin ? 'mb-[70px] mr-0 mt-8 lg:mb-[45px] lg:mt-[47px] ' : '') +
|
|
29
|
+
'relative z-10 flex flex-row font-normal leading-[1] tracking-[-0.32px] ' +
|
|
30
|
+
'text-[13px] xs:text-[14px] sm:text-[15px] lg:text-[16px] ' +
|
|
31
|
+
'min-w-[320px] items-center justify-end gap-[10px] lg:w-[100%]'}>
|
|
32
|
+
<Link href="/">
|
|
33
|
+
<Image src={imagePath} alt={'집'} width={15} height={15} className={'mb-[1px] h-auto sm:w-[17px] lg:w-[18px]'}/>
|
|
34
|
+
</Link>
|
|
35
|
+
<Image src={arrowImage} alt={'화살표_1'} width={8} height={13} className={'h-[13px] w-[8px]'}/>
|
|
36
|
+
{menu.title === menu.subTitle ? (<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
37
|
+
<div className={textColor}>{menu === null || menu === void 0 ? void 0 : menu.title}</div>
|
|
38
|
+
</Link>) : (<>
|
|
39
|
+
<div className={textColor}>{menu === null || menu === void 0 ? void 0 : menu.title}</div>
|
|
40
|
+
<Image src={arrowImage} alt={'화살표_2'} width={8} height={13} className={'h-[13px] w-[8px]'}/>
|
|
41
|
+
<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
42
|
+
<div className={textColor}>{menu === null || menu === void 0 ? void 0 : menu.subTitle}</div>
|
|
43
|
+
</Link>
|
|
44
|
+
</>)}
|
|
45
|
+
</div>);
|
|
46
|
+
};
|
|
47
|
+
export default CategoryMenu;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { catagoryMenuName } from '../../_lib/catagoryMenuName';
|
|
3
|
+
import { useRouter } from 'next/router';
|
|
4
|
+
import Image from 'next/image';
|
|
5
|
+
import Link from 'next/link';
|
|
6
|
+
import homeWhite from '../../../../../asset/images/myCase/home.svg';
|
|
7
|
+
import homeBlack from '../../../../../asset/images/myCase/home.webp';
|
|
8
|
+
import arrowWhite from '../../../../../asset/images/myCase/nav_arr.webp';
|
|
9
|
+
import arrowBlack from '../../../../../asset/images/myCase/arrow_2.webp';
|
|
10
|
+
|
|
11
|
+
type CategoryMenuType = {
|
|
12
|
+
t: (key: string) => string;
|
|
13
|
+
isMargin?: boolean;
|
|
14
|
+
isWhite?: boolean;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const CategoryMenu = (props: CategoryMenuType) => {
|
|
18
|
+
const { t, isMargin = true, isWhite = false } = props;
|
|
19
|
+
const router = useRouter();
|
|
20
|
+
|
|
21
|
+
const [menu, setMenu] = useState({ title: '', subTitle: '', address: '' });
|
|
22
|
+
|
|
23
|
+
//페이지 내부에서 쿼리 파라미터 없이 루트 경로로 돌아갈 때 새로고침
|
|
24
|
+
const reloadUrl = (url: string) => {
|
|
25
|
+
if (router.pathname === url) {
|
|
26
|
+
router.push(url).then(() => {
|
|
27
|
+
router.reload();
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
setMenu(catagoryMenuName({ url: router.pathname, t }));
|
|
33
|
+
}, [router.pathname, t]);
|
|
34
|
+
|
|
35
|
+
const imagePath = isWhite ? homeWhite : homeBlack;
|
|
36
|
+
|
|
37
|
+
const arrowImage = isWhite ? arrowWhite : arrowBlack;
|
|
38
|
+
|
|
39
|
+
const textColor = isWhite ? 'text-[#fff]' : 'text-[#333333]';
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<div
|
|
43
|
+
className={
|
|
44
|
+
(isMargin ? 'mb-[70px] mr-0 mt-8 lg:mb-[45px] lg:mt-[47px] ' : '') +
|
|
45
|
+
'relative z-10 flex flex-row font-normal leading-[1] tracking-[-0.32px] ' +
|
|
46
|
+
'text-[13px] xs:text-[14px] sm:text-[15px] lg:text-[16px] ' +
|
|
47
|
+
'min-w-[320px] items-center justify-end gap-[10px] lg:w-[100%]'
|
|
48
|
+
}
|
|
49
|
+
>
|
|
50
|
+
<Link href="/">
|
|
51
|
+
<Image
|
|
52
|
+
src={imagePath}
|
|
53
|
+
alt={'집'}
|
|
54
|
+
width={15}
|
|
55
|
+
height={15}
|
|
56
|
+
className={'mb-[1px] h-auto sm:w-[17px] lg:w-[18px]'}
|
|
57
|
+
/>
|
|
58
|
+
</Link>
|
|
59
|
+
<Image src={arrowImage} alt={'화살표_1'} width={8} height={13} className={'h-[13px] w-[8px]'} />
|
|
60
|
+
{menu.title === menu.subTitle ? (
|
|
61
|
+
<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
62
|
+
<div className={textColor}>{menu?.title}</div>
|
|
63
|
+
</Link>
|
|
64
|
+
) : (
|
|
65
|
+
<>
|
|
66
|
+
<div className={textColor}>{menu?.title}</div>
|
|
67
|
+
<Image src={arrowImage} alt={'화살표_2'} width={8} height={13} className={'h-[13px] w-[8px]'} />
|
|
68
|
+
<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
69
|
+
<div className={textColor}>{menu?.subTitle}</div>
|
|
70
|
+
</Link>
|
|
71
|
+
</>
|
|
72
|
+
)}
|
|
73
|
+
</div>
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export default CategoryMenu;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const buttonStyle: {
|
|
2
|
+
사건접수: string;
|
|
3
|
+
사건검토: string;
|
|
4
|
+
변호사상담: string;
|
|
5
|
+
소송준비: string;
|
|
6
|
+
소송진행: string;
|
|
7
|
+
보류: string;
|
|
8
|
+
사건종결: string;
|
|
9
|
+
환불: string;
|
|
10
|
+
};
|
|
11
|
+
declare const Badge: ({ title }: {
|
|
12
|
+
title: keyof typeof buttonStyle;
|
|
13
|
+
}) => import("react").JSX.Element;
|
|
14
|
+
export default Badge;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const buttonStyle = {
|
|
2
|
+
사건접수: 'bg-[#FFDBDB] text-[#5F1A18]',
|
|
3
|
+
사건검토: 'bg-[#F1DCFF] text-[#511396]',
|
|
4
|
+
변호사상담: 'bg-[#AEEDE2] text-[#1D4A45]',
|
|
5
|
+
소송준비: 'bg-[#DED9FF] text-[#1A30AA]',
|
|
6
|
+
소송진행: 'bg-[#C6F5CA] text-[#315B32]',
|
|
7
|
+
보류: 'bg-[#FFF3DB] text-[#644F16]',
|
|
8
|
+
사건종결: 'bg-[#3D3D3D] text-[#FFFFFF]',
|
|
9
|
+
환불: 'bg-[#DBDBDB] text-[#000000]'
|
|
10
|
+
};
|
|
11
|
+
const Badge = ({ title }) => {
|
|
12
|
+
return (<div className={`sm-top:h-[39px] sm-top:px-[16px] sm-top:label_large2_tb flex h-[30px] flex-row items-center justify-center rounded-[20px] px-[12px] lg:h-[41px] lg:px-[20px] ${buttonStyle[title]} w-fit`}>
|
|
13
|
+
<p className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 `}>{title}</p>
|
|
14
|
+
</div>);
|
|
15
|
+
};
|
|
16
|
+
export default Badge;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const buttonStyle = {
|
|
2
|
+
사건접수: 'bg-[#FFDBDB] text-[#5F1A18]',
|
|
3
|
+
사건검토: 'bg-[#F1DCFF] text-[#511396]',
|
|
4
|
+
변호사상담: 'bg-[#AEEDE2] text-[#1D4A45]',
|
|
5
|
+
소송준비: 'bg-[#DED9FF] text-[#1A30AA]',
|
|
6
|
+
소송진행: 'bg-[#C6F5CA] text-[#315B32]',
|
|
7
|
+
보류: 'bg-[#FFF3DB] text-[#644F16]',
|
|
8
|
+
사건종결: 'bg-[#3D3D3D] text-[#FFFFFF]',
|
|
9
|
+
환불: 'bg-[#DBDBDB] text-[#000000]'
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const Badge = ({ title }: { title: keyof typeof buttonStyle }) => {
|
|
13
|
+
return (
|
|
14
|
+
<div
|
|
15
|
+
className={`sm-top:h-[39px] sm-top:px-[16px] sm-top:label_large2_tb flex h-[30px] flex-row items-center justify-center rounded-[20px] px-[12px] lg:h-[41px] lg:px-[20px] ${buttonStyle[title]} w-fit`}
|
|
16
|
+
>
|
|
17
|
+
<p className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 `}>{title}</p>
|
|
18
|
+
</div>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default Badge;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { twMerge } from 'tailwind-merge';
|
|
2
|
+
const SubColor1Button = ({ title, onClick, isSelected, outerClassName }) => {
|
|
3
|
+
return (<button className={twMerge(`swiper-slide max-sm-top:flex-shrink-0 sm-top:h-[39px] sm-top:px-[10px] flex h-[34px] w-fit flex-row items-center justify-center rounded-[24px] px-[16px] transition-colors duration-300 md2:px-[16px] lg:h-[49px] lg:px-[12px] xl:px-[20px] ${isSelected ? 'bg-subColor01 text-white' : 'bg-white text-black'}`, outerClassName)} onClick={onClick}>
|
|
4
|
+
<p className={'label_large1_mo sm-top:label_large1_tb sm-top:text-[16px] lg:label_large1 md2:text-[18px] lg:text-[18px] xl:text-[20px] '}>
|
|
5
|
+
{title}
|
|
6
|
+
</p>
|
|
7
|
+
</button>);
|
|
8
|
+
};
|
|
9
|
+
export default SubColor1Button;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { twMerge } from 'tailwind-merge';
|
|
2
|
+
|
|
3
|
+
const SubColor1Button = ({
|
|
4
|
+
title,
|
|
5
|
+
onClick,
|
|
6
|
+
isSelected,
|
|
7
|
+
outerClassName
|
|
8
|
+
}: {
|
|
9
|
+
title: string;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
outerClassName?: string;
|
|
13
|
+
}) => {
|
|
14
|
+
return (
|
|
15
|
+
<button
|
|
16
|
+
className={twMerge(
|
|
17
|
+
`swiper-slide max-sm-top:flex-shrink-0 sm-top:h-[39px] sm-top:px-[10px] flex h-[34px] w-fit flex-row items-center justify-center rounded-[24px] px-[16px] transition-colors duration-300 md2:px-[16px] lg:h-[49px] lg:px-[12px] xl:px-[20px] ${isSelected ? 'bg-subColor01 text-white' : 'bg-white text-black'}`,
|
|
18
|
+
outerClassName
|
|
19
|
+
)}
|
|
20
|
+
onClick={onClick}
|
|
21
|
+
>
|
|
22
|
+
<p
|
|
23
|
+
className={
|
|
24
|
+
'label_large1_mo sm-top:label_large1_tb sm-top:text-[16px] lg:label_large1 md2:text-[18px] lg:text-[18px] xl:text-[20px] '
|
|
25
|
+
}
|
|
26
|
+
>
|
|
27
|
+
{title}
|
|
28
|
+
</p>
|
|
29
|
+
</button>
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default SubColor1Button;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { twMerge } from 'tailwind-merge';
|
|
2
|
+
const SubMenuButton = ({ onClick, title, isSelected, outerClassName }) => {
|
|
3
|
+
return (<button className={twMerge(`swiper-slide sm-top:h-[39px] sm-top:px-[16px] sm-top:body_large2_tb lg:body_medium2 flex h-[34px] w-fit items-center justify-center rounded-[20px] px-[16px] transition-all duration-300 lg:h-[41px] lg:px-[20px] ${isSelected ? 'bg-grayScale1' : 'bg-transparent'}`, outerClassName)} onClick={onClick}>
|
|
4
|
+
<p className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 ${isSelected ? 'text-white' : 'text-black'}`}>
|
|
5
|
+
{title}
|
|
6
|
+
</p>
|
|
7
|
+
</button>);
|
|
8
|
+
};
|
|
9
|
+
export default SubMenuButton;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { twMerge } from 'tailwind-merge';
|
|
2
|
+
|
|
3
|
+
const SubMenuButton = ({
|
|
4
|
+
onClick,
|
|
5
|
+
title,
|
|
6
|
+
isSelected,
|
|
7
|
+
outerClassName
|
|
8
|
+
}: {
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
title: string;
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
outerClassName?: string;
|
|
13
|
+
}) => {
|
|
14
|
+
return (
|
|
15
|
+
<button
|
|
16
|
+
className={twMerge(
|
|
17
|
+
`swiper-slide sm-top:h-[39px] sm-top:px-[16px] sm-top:body_large2_tb lg:body_medium2 flex h-[34px] w-fit items-center justify-center rounded-[20px] px-[16px] transition-all duration-300 lg:h-[41px] lg:px-[20px] ${isSelected ? 'bg-grayScale1' : 'bg-transparent'}`,
|
|
18
|
+
outerClassName
|
|
19
|
+
)}
|
|
20
|
+
onClick={onClick}
|
|
21
|
+
>
|
|
22
|
+
<p
|
|
23
|
+
className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 ${isSelected ? 'text-white' : 'text-black'}`}
|
|
24
|
+
>
|
|
25
|
+
{title}
|
|
26
|
+
</p>
|
|
27
|
+
</button>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default SubMenuButton;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import caseIcon1 from '../../../../../asset/images/myCase/icon/case_icon1.webp';
|
|
3
|
+
import caseIcon2 from '../../../../../asset/images/myCase/icon/case_icon2.webp';
|
|
4
|
+
import caseIcon3 from '../../../../../asset/images/myCase/icon/case_icon3.webp';
|
|
5
|
+
import caseIcon4 from '../../../../../asset/images/myCase/icon/case_icon4.webp';
|
|
6
|
+
import caseIcon5 from '../../../../../asset/images/myCase/icon/case_icon5.webp';
|
|
7
|
+
const titleList = {
|
|
8
|
+
ongoing: {
|
|
9
|
+
0: {
|
|
10
|
+
title: '아직 의뢰한 사건이 없어요.',
|
|
11
|
+
subTitle: '상담을 접수하시면 법률 상담을 도와드릴게요!',
|
|
12
|
+
img: caseIcon1,
|
|
13
|
+
width: 'w-[36px] sm-top:w-[43.2px] lg:w-[60px] ',
|
|
14
|
+
height: 'h-[40px] sm-top:h-[48px] lg:h-[66px] ',
|
|
15
|
+
marginTop: 'mt-[60px] sm-top:mt-[80px] lg:mt-[85px] '
|
|
16
|
+
},
|
|
17
|
+
1: {
|
|
18
|
+
title: '해당 사건이 없어요.',
|
|
19
|
+
subTitle: '',
|
|
20
|
+
img: caseIcon2,
|
|
21
|
+
width: 'w-[35.64px] sm-top:w-[44.13px] lg:w-[66px] ',
|
|
22
|
+
height: 'h-[39.6px] sm-top:h-[49.03px] lg:h-[66px] ',
|
|
23
|
+
marginTop: 'mt-[71.24px] sm-top:mt-[96.53px] lg:mt-[105px]'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
closed: {
|
|
27
|
+
0: {
|
|
28
|
+
title: '종결된 사건이 없어요.',
|
|
29
|
+
subTitle: '',
|
|
30
|
+
img: caseIcon3,
|
|
31
|
+
width: 'w-[37.8px] sm-top:w-[44px] lg:w-[59.4px] ',
|
|
32
|
+
height: 'h-[42px] sm-top:h-[48.88px] lg:h-[66px] ',
|
|
33
|
+
marginTop: 'mt-[70px] sm-top:mt-[95px] lg:mt-[103px]'
|
|
34
|
+
},
|
|
35
|
+
1: {
|
|
36
|
+
title: '종결된 사건이 없어요.',
|
|
37
|
+
subTitle: '',
|
|
38
|
+
img: caseIcon3,
|
|
39
|
+
width: 'w-[37.8px] sm-top:w-[44px] lg:w-[59.4px] ',
|
|
40
|
+
height: 'h-[42px] sm-top:h-[48.88px] lg:h-[66px] ',
|
|
41
|
+
marginTop: 'mt-[70px] sm-top:mt-[95px] lg:mt-[103px]'
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
file: {
|
|
45
|
+
0: {
|
|
46
|
+
title: '현재 제출한 문서가 없어요.',
|
|
47
|
+
subTitle: '',
|
|
48
|
+
img: caseIcon4,
|
|
49
|
+
width: 'w-[39.9px] sm-top:w-[49.4px] lg:w-[62.7px] ',
|
|
50
|
+
height: 'h-[42px] sm-top:h-[52px] lg:h-[66px] ',
|
|
51
|
+
marginTop: 'mt-[36px] sm-top:mt-[83px] lg:mt-[67px]'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
caseInquiry: {
|
|
55
|
+
0: {
|
|
56
|
+
title: '문의한 내역이 없어요.',
|
|
57
|
+
subTitle: '',
|
|
58
|
+
img: caseIcon5,
|
|
59
|
+
width: 'w-[42px] sm-top:w-[52px] lg:w-[66px] ',
|
|
60
|
+
height: 'h-[42px] sm-top:h-[52px] lg:h-[66px] ',
|
|
61
|
+
marginTop: 'mt-[84px] sm-top:mt-[106px] lg:mt-[76px]'
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
const EmptyTable = ({ tap, subTap, isMinHeight = true }) => {
|
|
66
|
+
const { title, subTitle, img, width, height, marginTop } = titleList[tap][subTap];
|
|
67
|
+
return (<div className={`sm-top:gap-[20px] flex gap-[14px] ${isMinHeight ? 'min-h-[350px]' : ''} w-full flex-col items-center lg:gap-[40px] ${marginTop}`}>
|
|
68
|
+
<Image src={img} alt="case_icon" width={60} height={60} className={`${width} ${height}`}/>
|
|
69
|
+
<div className="flex flex-col items-center justify-center ">
|
|
70
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{title}</p>
|
|
71
|
+
{subTitle && <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{subTitle}</p>}
|
|
72
|
+
</div>
|
|
73
|
+
</div>);
|
|
74
|
+
};
|
|
75
|
+
export default EmptyTable;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import caseIcon1 from '../../../../../asset/images/myCase/icon/case_icon1.webp';
|
|
3
|
+
import caseIcon2 from '../../../../../asset/images/myCase/icon/case_icon2.webp';
|
|
4
|
+
import caseIcon3 from '../../../../../asset/images/myCase/icon/case_icon3.webp';
|
|
5
|
+
import caseIcon4 from '../../../../../asset/images/myCase/icon/case_icon4.webp';
|
|
6
|
+
import caseIcon5 from '../../../../../asset/images/myCase/icon/case_icon5.webp';
|
|
7
|
+
|
|
8
|
+
const titleList = {
|
|
9
|
+
ongoing: {
|
|
10
|
+
0: {
|
|
11
|
+
title: '아직 의뢰한 사건이 없어요.',
|
|
12
|
+
subTitle: '상담을 접수하시면 법률 상담을 도와드릴게요!',
|
|
13
|
+
img: caseIcon1,
|
|
14
|
+
width: 'w-[36px] sm-top:w-[43.2px] lg:w-[60px] ',
|
|
15
|
+
height: 'h-[40px] sm-top:h-[48px] lg:h-[66px] ',
|
|
16
|
+
marginTop: 'mt-[60px] sm-top:mt-[80px] lg:mt-[85px] '
|
|
17
|
+
},
|
|
18
|
+
1: {
|
|
19
|
+
title: '해당 사건이 없어요.',
|
|
20
|
+
subTitle: '',
|
|
21
|
+
img: caseIcon2,
|
|
22
|
+
width: 'w-[35.64px] sm-top:w-[44.13px] lg:w-[66px] ',
|
|
23
|
+
height: 'h-[39.6px] sm-top:h-[49.03px] lg:h-[66px] ',
|
|
24
|
+
marginTop: 'mt-[71.24px] sm-top:mt-[96.53px] lg:mt-[105px]'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
closed: {
|
|
28
|
+
0: {
|
|
29
|
+
title: '종결된 사건이 없어요.',
|
|
30
|
+
subTitle: '',
|
|
31
|
+
img: caseIcon3,
|
|
32
|
+
width: 'w-[37.8px] sm-top:w-[44px] lg:w-[59.4px] ',
|
|
33
|
+
height: 'h-[42px] sm-top:h-[48.88px] lg:h-[66px] ',
|
|
34
|
+
marginTop: 'mt-[70px] sm-top:mt-[95px] lg:mt-[103px]'
|
|
35
|
+
},
|
|
36
|
+
1: {
|
|
37
|
+
title: '종결된 사건이 없어요.',
|
|
38
|
+
subTitle: '',
|
|
39
|
+
img: caseIcon3,
|
|
40
|
+
width: 'w-[37.8px] sm-top:w-[44px] lg:w-[59.4px] ',
|
|
41
|
+
height: 'h-[42px] sm-top:h-[48.88px] lg:h-[66px] ',
|
|
42
|
+
marginTop: 'mt-[70px] sm-top:mt-[95px] lg:mt-[103px]'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
file: {
|
|
46
|
+
0: {
|
|
47
|
+
title: '현재 제출한 문서가 없어요.',
|
|
48
|
+
subTitle: '',
|
|
49
|
+
img: caseIcon4,
|
|
50
|
+
width: 'w-[39.9px] sm-top:w-[49.4px] lg:w-[62.7px] ',
|
|
51
|
+
height: 'h-[42px] sm-top:h-[52px] lg:h-[66px] ',
|
|
52
|
+
marginTop: 'mt-[36px] sm-top:mt-[83px] lg:mt-[67px]'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
caseInquiry: {
|
|
56
|
+
0: {
|
|
57
|
+
title: '문의한 내역이 없어요.',
|
|
58
|
+
subTitle: '',
|
|
59
|
+
img: caseIcon5,
|
|
60
|
+
width: 'w-[42px] sm-top:w-[52px] lg:w-[66px] ',
|
|
61
|
+
height: 'h-[42px] sm-top:h-[52px] lg:h-[66px] ',
|
|
62
|
+
marginTop: 'mt-[84px] sm-top:mt-[106px] lg:mt-[76px]'
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const EmptyTable = ({ tap, subTap, isMinHeight = true }: { tap: string; subTap: number; isMinHeight?: boolean }) => {
|
|
68
|
+
const { title, subTitle, img, width, height, marginTop } =
|
|
69
|
+
titleList[tap as keyof typeof titleList][subTap as keyof (typeof titleList)[keyof typeof titleList]];
|
|
70
|
+
return (
|
|
71
|
+
<div
|
|
72
|
+
className={`sm-top:gap-[20px] flex gap-[14px] ${
|
|
73
|
+
isMinHeight ? 'min-h-[350px]' : ''
|
|
74
|
+
} w-full flex-col items-center lg:gap-[40px] ${marginTop}`}
|
|
75
|
+
>
|
|
76
|
+
<Image src={img} alt="case_icon" width={60} height={60} className={`${width} ${height}`} />
|
|
77
|
+
<div className="flex flex-col items-center justify-center ">
|
|
78
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{title}</p>
|
|
79
|
+
{subTitle && <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{subTitle}</p>}
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export default EmptyTable;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const CaseLayout: ({ outerClassName, innerClassName, children, isMobilePadding }: {
|
|
2
|
+
outerClassName?: string;
|
|
3
|
+
innerClassName?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
isMobilePadding?: boolean;
|
|
6
|
+
}) => import("react").JSX.Element;
|
|
7
|
+
export default CaseLayout;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { twMerge } from 'tailwind-merge';
|
|
2
|
+
import CaseWrapper from './CaseWrapper';
|
|
3
|
+
const CaseLayout = ({ outerClassName, innerClassName, children, isMobilePadding = true }) => {
|
|
4
|
+
return (<CaseWrapper className={outerClassName} isMobilePadding={isMobilePadding}>
|
|
5
|
+
<div className={twMerge('sm-top:rounded-[24px] z-[1] w-full rounded-[12px] bg-grayScale8 lg:rounded-[36px] ' +
|
|
6
|
+
innerClassName)}>
|
|
7
|
+
{children}
|
|
8
|
+
</div>
|
|
9
|
+
</CaseWrapper>);
|
|
10
|
+
};
|
|
11
|
+
export default CaseLayout;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { twMerge } from 'tailwind-merge';
|
|
2
|
+
import CaseWrapper from './CaseWrapper';
|
|
3
|
+
import HeaderLayout from './HeaderLayout';
|
|
4
|
+
const CaseLayout = ({
|
|
5
|
+
outerClassName,
|
|
6
|
+
innerClassName,
|
|
7
|
+
children,
|
|
8
|
+
isMobilePadding = true
|
|
9
|
+
}: {
|
|
10
|
+
outerClassName?: string;
|
|
11
|
+
innerClassName?: string;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
isMobilePadding?: boolean;
|
|
14
|
+
}) => {
|
|
15
|
+
return (
|
|
16
|
+
<CaseWrapper className={outerClassName} isMobilePadding={isMobilePadding}>
|
|
17
|
+
<div
|
|
18
|
+
className={twMerge(
|
|
19
|
+
'sm-top:rounded-[24px] z-[1] w-full rounded-[12px] bg-grayScale8 lg:rounded-[36px] ' +
|
|
20
|
+
innerClassName
|
|
21
|
+
)}
|
|
22
|
+
>
|
|
23
|
+
{children}
|
|
24
|
+
</div>
|
|
25
|
+
</CaseWrapper>
|
|
26
|
+
);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export default CaseLayout;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface WrapperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
innerClassName?: string;
|
|
6
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
7
|
+
isLine?: boolean;
|
|
8
|
+
isLinePadding?: boolean;
|
|
9
|
+
isMobilePadding?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const CaseWrapper: React.FC<WrapperProps>;
|
|
12
|
+
export default CaseWrapper;
|