@daeryun/dr_components 0.5.85 → 0.5.87
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/asset/images/SearchBar/search.webp +0 -0
- package/dist/asset/images/faq/Ellipse.webp +0 -0
- package/dist/asset/images/faq/cal.webp +0 -0
- package/dist/asset/images/faq/check.webp +0 -0
- package/dist/asset/images/faq/down.webp +0 -0
- package/dist/asset/images/faq/eye.webp +0 -0
- package/dist/asset/images/faq/plus.webp +0 -0
- package/dist/asset/images/faq/right.webp +0 -0
- package/dist/asset/images/faq/vector_blu.svg +3 -0
- package/dist/asset/images/faq/vector_stroke.svg +3 -0
- package/dist/asset/images/seo/left.webp +0 -0
- package/dist/asset/images/seo/right.webp +0 -0
- package/dist/asset/images/seo/secConsulting/choice_call.webp +0 -0
- package/dist/asset/images/seo/secConsulting/choice_kakao.webp +0 -0
- package/dist/asset/images/seo/secConsulting/online.svg +36 -0
- package/dist/asset/images/seo/successCase/dia_dot.svg +3 -0
- package/dist/asset/images/seo/successCase/right_arrow.svg +4 -0
- package/dist/asset/images/seo/successCase/up_right.svg +3 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/SearchBar/SearchBar.d.ts +16 -0
- package/dist/components/SearchBar/SearchBar.jsx +90 -0
- package/dist/components/SearchBar/SearchBar.stories.d.ts +6 -0
- package/dist/components/SearchBar/SearchBar.stories.jsx +21 -0
- package/dist/components/SearchBar/SearchBar.stories.tsx +28 -0
- package/dist/components/SearchBar/SearchBar.tsx +173 -0
- package/dist/components/Seo/FieldCase.d.ts +5 -0
- package/dist/components/Seo/FieldCase.jsx +48 -0
- package/dist/components/Seo/FieldCase.tsx +85 -0
- package/dist/components/Seo/Lawyer.d.ts +5 -0
- package/dist/components/Seo/Lawyer.jsx +66 -0
- package/dist/components/Seo/Lawyer.tsx +148 -0
- package/dist/components/Seo/SeoConsulting.d.ts +6 -0
- package/dist/components/Seo/SeoConsulting.jsx +173 -0
- package/dist/components/Seo/SeoConsulting.tsx +272 -0
- package/dist/components/Seo/SuccessCase.d.ts +6 -0
- package/dist/components/Seo/SuccessCase.jsx +57 -0
- package/dist/components/Seo/SuccessCase.tsx +95 -0
- package/dist/components/Seo/right_arrow.svg +4 -0
- package/dist/components/TuiViewer/TuiViewer.d.ts +3 -0
- package/dist/components/TuiViewer/TuiViewer.jsx +7 -0
- package/dist/components/TuiViewer/TuiViewer.tsx +14 -0
- package/dist/components/common/types/faq/index.d.ts +11 -0
- package/dist/components/common/types/faq/index.js +1 -0
- package/dist/components/common/types/faq/index.ts +11 -0
- package/dist/components/common/types/seo/index.d.ts +27 -0
- package/dist/components/common/types/seo/index.js +1 -0
- package/dist/components/common/types/seo/index.ts +29 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.ts +1 -3
- package/dist/components/page/Faq/Detail/FaqDetail.d.ts +22 -0
- package/dist/components/page/Faq/Detail/FaqDetail.jsx +136 -0
- package/dist/components/page/Faq/Detail/FaqDetail.tsx +277 -0
- package/dist/components/page/Faq/Detail/FaqList.stories.d.ts +6 -0
- package/dist/components/page/Faq/Detail/FaqList.stories.jsx +187 -0
- package/dist/components/page/Faq/Detail/FaqList.stories.tsx +208 -0
- package/dist/components/page/Faq/FaqList.d.ts +23 -0
- package/dist/components/page/Faq/FaqList.jsx +99 -0
- package/dist/components/page/Faq/FaqList.stories.d.ts +6 -0
- package/dist/components/page/Faq/FaqList.stories.jsx +76 -0
- package/dist/components/page/Faq/FaqList.stories.tsx +93 -0
- package/dist/components/page/Faq/FaqList.tsx +197 -0
- package/dist/components/page/Faq/GroupList.d.ts +9 -0
- package/dist/components/page/Faq/GroupList.jsx +30 -0
- package/dist/components/page/Faq/GroupList.tsx +57 -0
- package/dist/components/page/Faq/GroupSelectBox.d.ts +9 -0
- package/dist/components/page/Faq/GroupSelectBox.jsx +67 -0
- package/dist/components/page/Faq/GroupSelectBox.tsx +117 -0
- package/dist/components/page/index.d.ts +2 -0
- package/dist/components/page/index.js +2 -0
- package/dist/components/page/index.ts +2 -0
- package/dist/lib/categoryMenuName.js +7 -1
- package/dist/lib/categoryMenuName.ts +5 -1
- package/dist/styles/globals.css +1080 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import FaqList from './FaqList';
|
|
3
|
+
import { IFaqTypes } from '../../common/types/faq';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof FaqList> = {
|
|
6
|
+
component: FaqList,
|
|
7
|
+
title: 'FaqListPage'
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default meta;
|
|
11
|
+
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
|
|
14
|
+
//testData
|
|
15
|
+
const faqListData: IFaqTypes[] = [
|
|
16
|
+
{
|
|
17
|
+
idx: 356,
|
|
18
|
+
created_at: new Date('2023-06-07T01:04:34.091Z'),
|
|
19
|
+
question: '친할머니 재산 손자상속 가능한가요?',
|
|
20
|
+
question_contents:
|
|
21
|
+
'안녕하세요. 최근 친할머니가 돌아가시면서 상속은 어떻게 되는지 궁금해서요. \n\n검색해보니까 아버지가 살아계시면 손자상속이 불가능하다고 하던데 저는 아버지가 이미 돌아가셨거든요. \n\n이런 경우에는 손자상속이 가능한가요? 상속 순위나 대습상속에 대해서도 알려주시면 감사하겠습니다.\n',
|
|
22
|
+
answer: '<p style="text-align:justify;"><span style="background-color:white;color:#24262d;"><strong>네 손자상속이 가능합니다. </strong></span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">만약 아버지가 살아계시다면, 아버지가 할머니의 직계비속이기 때문에 아버지가 할머니의 재산을 상속받게 됩니다. </span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">즉, 아버지가 1순위 상속인으로서 할머니의 재산을 받게 되므로 손자는 할머니의 재산을 상속받을 수 없습니다. </span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">하지만 아버지가 이미 돌아가신 경우에는 손자가 \'대습상속인\'이 되어 손자상속을 받을 수 있습니다. </span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">대습상속인이란, 상속이 시작되기 전에 상속인이 사망하거나 결격 사유가 생긴 경우, 그 자리에 갈음하여 상속을 받을 수 있는 사람을 말합니다. </span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">이 경우 손자는 아버지 대신 할머니의 재산을 상속받게 됩니다. </span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">상속이 어떻게 이루어지는지는 상속 순위에 따라 정해집니다. </span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">상속은 우선 순위대로 이루어지며 한 순위의 상속인이 있다면 그 다음 순위의 상속인은 상속을 받지 못합니다. </span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">상속 순위는 다음과 같습니다. </span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;"><strong>1. 직계비속(자녀 등) 및 법률상 배우자</strong></span></p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;"><strong>2. 직계존속(부모 등) 및 법률상 배우자</strong></span></p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;"><strong>3. 형제자매</strong></span></p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;"><strong>4. 4촌 이내 방계혈족(이모, 고모 등)</strong></span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">손자상속과 관련된 복잡한 사항에 대해 더 자세한 상담이 필요하시다면 상속전문변호사와 상담을 통해 정확한 정보를 얻는 것이 좋습니다.</span></p><p style="text-align:justify;"> </p>',
|
|
23
|
+
hit: 48831
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
idx: 355,
|
|
27
|
+
created_at: new Date('2023-06-07T00:51:43.814Z'),
|
|
28
|
+
question: '가사변호사님 이혼 후 자녀의 성과 본을 저로 바꾸거나 재혼한 배우자로 바꿀 수 있나요?',
|
|
29
|
+
question_contents:
|
|
30
|
+
'가사변호사님께 질문드려요. 안녕하세요. 저는 전남편과 약 5년 전 이혼하고 현재 재혼을 준비 중입니다. 근데 전남편과 저 사이에 딸이 한 명 있는데요. 자녀의 성과 본을 제 성과 본으로 변경하거나 재혼한 배우자의 성과 본으로 바꾸고 싶은데요. 가능한가요? 만약 가능하다면 절차가 어떻게 되는지 궁금해요.',
|
|
31
|
+
answer: '<p style="text-align:justify;"><span style="background-color:white;color:#24262d;">안녕하세요. 법무법인(유한) 대륜의 가사변호사입니다.</span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;"><strong>이혼 후 자녀의 성과 본을 자신의 성과 본으로 변경할 수 있는 방법은 법적으로 가능합니다. </strong></span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">이를 위해서는 먼저 법원에서 허가를 받아야 하는데요. 가사변호사인 제가 자세히 설명해 드리겠습니다. </span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;"><strong>자녀의 복리를 위해 필요한 경우에는 부모나 자녀가 가정법원에 성과 본 변경 심판을 청구하여 법원의 허가를 받아야 합니다. </strong></span><br> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">법원은 자녀의 복리와 상황을 고려하여 이를 승인할지 결정하게 되는데요. </span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">법원의 승인이 나면, 판결이 확정된 후 1개월 이내에 성과 본 변경 신고를 해야 합니다.</span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">이 신고는 자녀의 등록기준지 또는 주소지 관할 시청·구청·읍사무소 또는 면사무소에서 진행할 수 있습니다. </span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">또한, 자녀의 성과 본을 재혼한 배우자의 성과 본으로 변경하고 싶다면 친양자 입양을 통해 해결할 수 있습니다.</span><br> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">재혼 배우자가 자녀를 친양자로 입양하게 되면 자녀는 법적으로 재혼한 배우자의 자녀로 인정받게 됩니다. </span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">따라서 별도의 재판 없이도 친양부의 성과 본으로 변경될 수 있습니다. </span></p><p style="text-align:justify;"> </p><p style="text-align:justify;"><span style="background-color:white;color:#24262d;">자세한 사항은 가사변호사와의 상담을 통해 보다 구체적이고 정확한 절차를 확인하고 진행하는 것이 좋습니다.</span></p>',
|
|
32
|
+
hit: 35572
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
const groupList: { code: string; code_name: string | null; code_desc: string | null }[] = [
|
|
36
|
+
{ code_name: '기업법무', code: 'CT0004', code_desc: 'comp' },
|
|
37
|
+
{ code_name: '지식재산권', code: 'CT0014', code_desc: 'iprs' },
|
|
38
|
+
{ code_name: '공정거래', code: 'CT0026', code_desc: 'trade' },
|
|
39
|
+
{
|
|
40
|
+
code_name: '관세·국제통상·이민',
|
|
41
|
+
code: 'CT0021',
|
|
42
|
+
code_desc: 'international'
|
|
43
|
+
},
|
|
44
|
+
{ code_name: '건설·부동산', code: 'CT0007', code_desc: 'estate' },
|
|
45
|
+
{
|
|
46
|
+
code_name: '증거조사·디지털포렌식·경호',
|
|
47
|
+
code: 'CT0015',
|
|
48
|
+
code_desc: 'discovery'
|
|
49
|
+
},
|
|
50
|
+
{ code_name: '이혼', code: 'CT0005', code_desc: 'divorce' },
|
|
51
|
+
{ code_name: '상속·가사', code: 'CT0006', code_desc: 'inherit' },
|
|
52
|
+
{ code_name: '조세', code: 'CT0012', code_desc: 'tax' },
|
|
53
|
+
{ code_name: '회계감리', code: 'CT0024', code_desc: 'audit' },
|
|
54
|
+
{ code_name: '형사', code: 'CT0001', code_desc: 'detective' },
|
|
55
|
+
{ code_name: '음주교통사고', code: 'CT0019', code_desc: 'traffic' },
|
|
56
|
+
{ code_name: '국방군사', code: 'CT0017', code_desc: 'military' },
|
|
57
|
+
{ code_name: '성범죄', code: 'CT0002', code_desc: 'assault' },
|
|
58
|
+
{ code_name: '마약', code: 'CT0013', code_desc: 'drug' },
|
|
59
|
+
{ code_name: '일반소송·중재', code: 'CT0008', code_desc: 'compensation' },
|
|
60
|
+
{ code_name: '학교폭력', code: 'CT0003', code_desc: 'school' },
|
|
61
|
+
{ code_name: '헌법행정', code: 'CT0009', code_desc: 'administration' },
|
|
62
|
+
{ code_name: '법인회생파산', code: 'CT0010', code_desc: 'regener' },
|
|
63
|
+
{ code_name: '금융·보험', code: 'CT0011', code_desc: 'finance' },
|
|
64
|
+
{ code_name: '의료제약', code: 'CT0018', code_desc: 'medical' },
|
|
65
|
+
{ code_name: '산업안전·중대재해', code: 'CT0027', code_desc: 'sapa' },
|
|
66
|
+
{ code_name: '노동·산재', code: 'CT0016', code_desc: 'labor' },
|
|
67
|
+
{
|
|
68
|
+
code_name: '엔터테인먼트·스포츠',
|
|
69
|
+
code: 'CT0025',
|
|
70
|
+
code_desc: 'entertainment'
|
|
71
|
+
},
|
|
72
|
+
{ code_name: '채권추심', code: 'CT0028', code_desc: 'debtcollection' },
|
|
73
|
+
{ code_name: 'M&A', code: 'CT0022', code_desc: 'mergers' }
|
|
74
|
+
];
|
|
75
|
+
|
|
76
|
+
export const Default: Story = {
|
|
77
|
+
render: () => {
|
|
78
|
+
return (
|
|
79
|
+
<div className={'font-[SUIT]'}>
|
|
80
|
+
<FaqList
|
|
81
|
+
faqList={faqListData}
|
|
82
|
+
groupList={groupList}
|
|
83
|
+
PaginationProps={{
|
|
84
|
+
onPaginationChange: () => {},
|
|
85
|
+
currentPage: 1,
|
|
86
|
+
totalCount: 1
|
|
87
|
+
}}
|
|
88
|
+
SearchBarProps={{ handleInputChange: () => {}, handleSearch: () => {}, searchInput: '' }}
|
|
89
|
+
/>
|
|
90
|
+
</div>
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import PageTitleBox from '../../PageTitleBox/PageTitleBox';
|
|
4
|
+
import Link from 'next/link';
|
|
5
|
+
import PageWrapper from '../../Layout/PageWrapper';
|
|
6
|
+
import SearchBar from '../../SearchBar/SearchBar';
|
|
7
|
+
import GroupList from './GroupList';
|
|
8
|
+
import GroupSelectBox from './GroupSelectBox';
|
|
9
|
+
import { ImgTypes } from '../../PageTitleBox/ImgTypes';
|
|
10
|
+
import { IFaqTypes } from '../../common/types/faq';
|
|
11
|
+
import Image from 'next/image';
|
|
12
|
+
import PaginationComponent from '../MyCase/_component/_pagination/PaginationComponent';
|
|
13
|
+
|
|
14
|
+
import EyeImg from '../../../asset/images/faq/eye.webp';
|
|
15
|
+
import PlusImg from '../../../asset/images/faq/plus.webp';
|
|
16
|
+
|
|
17
|
+
interface ISearchBarProps {
|
|
18
|
+
handleInputChange: (e: React.FormEvent<HTMLInputElement>) => void;
|
|
19
|
+
handleSearch: () => void;
|
|
20
|
+
searchInput: string;
|
|
21
|
+
}
|
|
22
|
+
interface IPaginationProps {
|
|
23
|
+
onPaginationChange: (pageNum: number) => void;
|
|
24
|
+
currentPage: number;
|
|
25
|
+
totalCount: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface FaqListProps {
|
|
29
|
+
SearchBarProps: ISearchBarProps;
|
|
30
|
+
PaginationProps: IPaginationProps;
|
|
31
|
+
groupList: { code: string; code_name: string | null; code_desc: string | null }[];
|
|
32
|
+
faqList: IFaqTypes[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const FaqList = ({ SearchBarProps, PaginationProps, groupList, faqList }: FaqListProps) => {
|
|
36
|
+
return (
|
|
37
|
+
<>
|
|
38
|
+
<PageTitleBox
|
|
39
|
+
titleTxt={'법률지식인'}
|
|
40
|
+
subTxt={
|
|
41
|
+
<span>
|
|
42
|
+
법률 궁금증 비전문가, 광고성 답변에 지쳤다면?
|
|
43
|
+
<br />
|
|
44
|
+
대륜의 전문변호사가 답변 드리겠습니다.
|
|
45
|
+
</span>
|
|
46
|
+
}
|
|
47
|
+
imgType={ImgTypes.FAQ}
|
|
48
|
+
/>
|
|
49
|
+
<PageWrapper className={'tracking-[-0.5px]'}>
|
|
50
|
+
<span className={'h-auto w-auto'}>
|
|
51
|
+
<SearchBar
|
|
52
|
+
label={'법률지식인 검색창'}
|
|
53
|
+
onChange={SearchBarProps.handleInputChange}
|
|
54
|
+
onClick={SearchBarProps.handleSearch}
|
|
55
|
+
search={SearchBarProps.searchInput}
|
|
56
|
+
placeholder={''}
|
|
57
|
+
isKeyPress={true}
|
|
58
|
+
marginTop={[70, 50, 50]}
|
|
59
|
+
marginBottom={0}
|
|
60
|
+
/>
|
|
61
|
+
</span>
|
|
62
|
+
<section className={'mb-[50px] mt-[100px] w-full max-xl:mt-[80px] max-md:mt-[40px] '}>
|
|
63
|
+
<div
|
|
64
|
+
className={
|
|
65
|
+
'flex w-full gap-[84px] pb-10 max-xl:gap-0 max-xl:pb-0 max-md:flex-col max-md:gap-[58px]'
|
|
66
|
+
}
|
|
67
|
+
>
|
|
68
|
+
{/*pc 768px 이상*/}
|
|
69
|
+
<GroupList groupList={groupList} />
|
|
70
|
+
|
|
71
|
+
{/*mo 768px 미만*/}
|
|
72
|
+
<GroupSelectBox groupList={groupList} />
|
|
73
|
+
|
|
74
|
+
<ul className={'relative flex w-full flex-col border-t-[4px] border-solid border-t-black'}>
|
|
75
|
+
{faqList && faqList.length > 0 ? (
|
|
76
|
+
faqList.map((item, key) => {
|
|
77
|
+
return (
|
|
78
|
+
<li key={item.idx} className={'h-fit w-full'}>
|
|
79
|
+
<Link
|
|
80
|
+
href={`/faq/detail/${item.idx}`}
|
|
81
|
+
className={
|
|
82
|
+
'max-md:pb- flex h-[218px] w-full border-b-[1px] border-solid border-b-[#E8E8E8] px-5 py-9 max-xl:h-[210px] max-xl:py-8 max-md:h-[213px] max-md:px-0 max-md:pb-6 max-md:pt-7'
|
|
83
|
+
}
|
|
84
|
+
>
|
|
85
|
+
<p
|
|
86
|
+
className={
|
|
87
|
+
'mr-8 text-[32px] font-[900] max-xl:mr-6 max-xl:text-[28px] max-md:mr-5 max-md:leading-[1.3]'
|
|
88
|
+
}
|
|
89
|
+
>
|
|
90
|
+
Q
|
|
91
|
+
</p>
|
|
92
|
+
<span className={'flex h-full w-full flex-col'}>
|
|
93
|
+
<p
|
|
94
|
+
className={
|
|
95
|
+
'mb-3 line-clamp-1 text-[24px] font-[700] leading-[1.3] max-xl:line-clamp-2 max-xl:text-[20px] max-md:mb-2'
|
|
96
|
+
}
|
|
97
|
+
>
|
|
98
|
+
{item.question}
|
|
99
|
+
</p>
|
|
100
|
+
<p
|
|
101
|
+
className={
|
|
102
|
+
'line-clamp-2 text-[18px] font-[400] text-[#919191] max-xl:text-[16px] max-md:line-clamp-3 max-md:text-[14px]'
|
|
103
|
+
}
|
|
104
|
+
>
|
|
105
|
+
{item.question_contents}
|
|
106
|
+
</p>
|
|
107
|
+
<span
|
|
108
|
+
className={
|
|
109
|
+
'mt-auto flex w-full items-center gap-[18px] text-[16px] text-[#A5A5A5] max-xl:gap-3 max-xl:text-[14px] max-md:text-[12px]'
|
|
110
|
+
}
|
|
111
|
+
>
|
|
112
|
+
<p className={'flex items-center leading-none'}>
|
|
113
|
+
<Image
|
|
114
|
+
src={EyeImg}
|
|
115
|
+
alt={'법률지식인'}
|
|
116
|
+
width={24}
|
|
117
|
+
height={24}
|
|
118
|
+
className={'h-auto w-6 max-xl:w-5 '}
|
|
119
|
+
/>
|
|
120
|
+
<span className={'ml-1 mr-3 font-[700] max-xl:mr-2'}>
|
|
121
|
+
조회수
|
|
122
|
+
</span>
|
|
123
|
+
{item.hit?.toLocaleString()}
|
|
124
|
+
</p>
|
|
125
|
+
{/* <Image
|
|
126
|
+
src={'/images/faq/eye.webp'}
|
|
127
|
+
alt={'법률지식인'}
|
|
128
|
+
width={4}
|
|
129
|
+
height={4}
|
|
130
|
+
className={'h-auto w-1'}
|
|
131
|
+
/>
|
|
132
|
+
<p className={'flex items-center leading-none'}>
|
|
133
|
+
<Image
|
|
134
|
+
src={'/images/faq/cal.webp'}
|
|
135
|
+
alt={'법률지식인'}
|
|
136
|
+
width={24}
|
|
137
|
+
height={24}
|
|
138
|
+
className={'mr-3 h-auto w-6 max-xl:mr-2 max-xl:w-5'}
|
|
139
|
+
/>
|
|
140
|
+
{dayjs(item.created_at).format('YYYY.MM.DD')}
|
|
141
|
+
</p> */}
|
|
142
|
+
</span>
|
|
143
|
+
</span>
|
|
144
|
+
<span
|
|
145
|
+
className={
|
|
146
|
+
'ml-[100px] flex shrink-0 flex-col items-center gap-1 pt-[6px] text-[16px] font-[400] leading-[1.3] text-[#919191] max-xl:ml-10 max-xl:pt-[14px] max-md:ml-6 max-md:pt-0 max-md:text-[12px]'
|
|
147
|
+
}
|
|
148
|
+
>
|
|
149
|
+
<Image
|
|
150
|
+
src={PlusImg}
|
|
151
|
+
alt={'법률지식인'}
|
|
152
|
+
width={50}
|
|
153
|
+
height={50}
|
|
154
|
+
className={'h-auto w-[50px] max-md:w-8'}
|
|
155
|
+
/>
|
|
156
|
+
자세히보기
|
|
157
|
+
</span>
|
|
158
|
+
</Link>
|
|
159
|
+
</li>
|
|
160
|
+
);
|
|
161
|
+
})
|
|
162
|
+
) : (
|
|
163
|
+
<div className={'m-auto mb-20 mt-40 flex flex-col items-center font-[SUIT] '}>
|
|
164
|
+
<div
|
|
165
|
+
className={
|
|
166
|
+
'relative flex h-[80px] w-[80px] items-center justify-center rounded-full border-[2px] border-solid border-[#30539D] text-[50px] font-[900] leading-none text-[#30539D]'
|
|
167
|
+
}
|
|
168
|
+
>
|
|
169
|
+
!
|
|
170
|
+
</div>
|
|
171
|
+
<p className={'mt-4 text-[26px] font-[800] text-[#30539D] max-sm:text-[22px]'}>
|
|
172
|
+
검색 결과가 없습니다.
|
|
173
|
+
</p>
|
|
174
|
+
</div>
|
|
175
|
+
)}
|
|
176
|
+
</ul>
|
|
177
|
+
</div>
|
|
178
|
+
|
|
179
|
+
{faqList && faqList.length > 0 ? (
|
|
180
|
+
<div className={'pb-5 max-xl:pb-0'}>
|
|
181
|
+
{/*pc margin 100px*/}
|
|
182
|
+
<PaginationComponent
|
|
183
|
+
onChange={PaginationProps.onPaginationChange}
|
|
184
|
+
current={PaginationProps.currentPage}
|
|
185
|
+
total={PaginationProps.totalCount}
|
|
186
|
+
pageSize={9}
|
|
187
|
+
/>
|
|
188
|
+
</div>
|
|
189
|
+
) : (
|
|
190
|
+
<></>
|
|
191
|
+
)}
|
|
192
|
+
</section>
|
|
193
|
+
</PageWrapper>
|
|
194
|
+
</>
|
|
195
|
+
);
|
|
196
|
+
};
|
|
197
|
+
export default FaqList;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { useEffect, useState } from 'react';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import Link from 'next/link';
|
|
5
|
+
import IconRight from '../../../asset/images/faq/right.webp';
|
|
6
|
+
import { usePathname } from 'next/navigation';
|
|
7
|
+
const GroupList = ({ groupList }) => {
|
|
8
|
+
const pathname = usePathname();
|
|
9
|
+
const [select, setSelect] = useState('');
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
setSelect(String(pathname.replace('/faq/', '')));
|
|
12
|
+
}, [pathname]);
|
|
13
|
+
return (<div className="relative w-[350px] shrink-0 max-xl:w-[240px] max-md:hidden ">
|
|
14
|
+
<p className={'mb-8 px-3 py-[10px] text-[32px] font-[900] max-xl:mb-5 max-xl:text-[24px]'}>업무분야</p>
|
|
15
|
+
|
|
16
|
+
<ul className="flex flex-col gap-3 max-xl:gap-1" role="none">
|
|
17
|
+
{groupList.map((item, index) => (<li key={index + item.code} className={'h-full w-full'} role="menuitem">
|
|
18
|
+
<Link href={`/faq/${item.code_desc}`} className={'flex w-full cursor-pointer items-center justify-between p-3 text-[24px] font-[400] leading-[1.28] ' +
|
|
19
|
+
'group transition-[background-color,color] hover:bg-[#F7F7FD] hover:font-[700] hover:text-[#30539D] ' +
|
|
20
|
+
'max-xl:text-[20px] ' +
|
|
21
|
+
(select === item.code_desc ? 'bg-[#F7F7FD] font-[700] text-[#30539D] ' : '')}>
|
|
22
|
+
<p className={'line-clamp-1 '}>{item.code_name}</p>
|
|
23
|
+
<Image src={IconRight} alt={item.code_name + ' 법률지식인'} width={25} height={25} className={'h-auto w-6 opacity-0 transition-[opacity] group-hover:opacity-100 ' +
|
|
24
|
+
(select === item.code_desc ? 'opacity-100 ' : '')}/>
|
|
25
|
+
</Link>
|
|
26
|
+
</li>))}
|
|
27
|
+
</ul>
|
|
28
|
+
</div>);
|
|
29
|
+
};
|
|
30
|
+
export default GroupList;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import React, { useEffect, useState } from 'react';
|
|
4
|
+
import Image from 'next/image';
|
|
5
|
+
import Link from 'next/link';
|
|
6
|
+
|
|
7
|
+
import IconRight from '../../../asset/images/faq/right.webp';
|
|
8
|
+
import { usePathname } from 'next/navigation';
|
|
9
|
+
|
|
10
|
+
const GroupList = ({
|
|
11
|
+
groupList
|
|
12
|
+
}: {
|
|
13
|
+
groupList: { code: string; code_name: string | null; code_desc: string | null }[];
|
|
14
|
+
}) => {
|
|
15
|
+
const pathname = usePathname();
|
|
16
|
+
const [select, setSelect] = useState<string>('');
|
|
17
|
+
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
setSelect(String(pathname.replace('/faq/', '')));
|
|
20
|
+
}, [pathname]);
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<div className="relative w-[350px] shrink-0 max-xl:w-[240px] max-md:hidden ">
|
|
24
|
+
<p className={'mb-8 px-3 py-[10px] text-[32px] font-[900] max-xl:mb-5 max-xl:text-[24px]'}>업무분야</p>
|
|
25
|
+
|
|
26
|
+
<ul className="flex flex-col gap-3 max-xl:gap-1" role="none">
|
|
27
|
+
{groupList.map((item, index) => (
|
|
28
|
+
<li key={index + item.code} className={'h-full w-full'} role="menuitem">
|
|
29
|
+
<Link
|
|
30
|
+
href={`/faq/${item.code_desc}`}
|
|
31
|
+
className={
|
|
32
|
+
'flex w-full cursor-pointer items-center justify-between p-3 text-[24px] font-[400] leading-[1.28] ' +
|
|
33
|
+
'group transition-[background-color,color] hover:bg-[#F7F7FD] hover:font-[700] hover:text-[#30539D] ' +
|
|
34
|
+
'max-xl:text-[20px] ' +
|
|
35
|
+
(select === item.code_desc ? 'bg-[#F7F7FD] font-[700] text-[#30539D] ' : '')
|
|
36
|
+
}
|
|
37
|
+
>
|
|
38
|
+
<p className={'line-clamp-1 '}>{item.code_name}</p>
|
|
39
|
+
<Image
|
|
40
|
+
src={IconRight}
|
|
41
|
+
alt={item.code_name + ' 법률지식인'}
|
|
42
|
+
width={25}
|
|
43
|
+
height={25}
|
|
44
|
+
className={
|
|
45
|
+
'h-auto w-6 opacity-0 transition-[opacity] group-hover:opacity-100 ' +
|
|
46
|
+
(select === item.code_desc ? 'opacity-100 ' : '')
|
|
47
|
+
}
|
|
48
|
+
/>
|
|
49
|
+
</Link>
|
|
50
|
+
</li>
|
|
51
|
+
))}
|
|
52
|
+
</ul>
|
|
53
|
+
</div>
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export default GroupList;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { useEffect, useState } from 'react';
|
|
3
|
+
import { usePathname, useRouter } from 'next/navigation';
|
|
4
|
+
import IconArrow from '../../../asset/images/faq/vector_stroke.svg';
|
|
5
|
+
import IconArrowAct from '../../../asset/images/faq/vector_blu.svg';
|
|
6
|
+
const GroupSelectBox = ({ groupList }) => {
|
|
7
|
+
const router = useRouter();
|
|
8
|
+
const [select, setSelect] = useState('');
|
|
9
|
+
const [showAllFields, setShowAllFields] = useState(false);
|
|
10
|
+
const pathname = usePathname();
|
|
11
|
+
const previewCount = 8;
|
|
12
|
+
const displayedFields = !showAllFields ? groupList.slice(0, previewCount) : groupList;
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
setSelect(String(pathname.replace('/faq/', '')));
|
|
15
|
+
}, [pathname]);
|
|
16
|
+
const scrollToList = () => {
|
|
17
|
+
var _a, _b;
|
|
18
|
+
const location = (_b = (_a = document.getElementById('faq_list')) === null || _a === void 0 ? void 0 : _a.offsetTop) !== null && _b !== void 0 ? _b : 0;
|
|
19
|
+
window.scrollTo({ top: location + 230, behavior: 'smooth' });
|
|
20
|
+
};
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
if (pathname.startsWith('/faq') && select && groupList.some(item => item.code_desc === select)) {
|
|
23
|
+
scrollToList();
|
|
24
|
+
}
|
|
25
|
+
}, [pathname, select]);
|
|
26
|
+
//수정전
|
|
27
|
+
// const handleChange = (e: React.ChangeEvent<HTMLSelectElement>) => {
|
|
28
|
+
// const selectedValue = e.target.value
|
|
29
|
+
// setSelect(selectedValue)
|
|
30
|
+
// router.push(`/faq/${selectedValue}`)
|
|
31
|
+
// }
|
|
32
|
+
return (<div className="relative w-full md:hidden">
|
|
33
|
+
<p className="text-[24px] font-[900] ">업무분야</p>
|
|
34
|
+
<div className={'relative mt-[20px] grid grid-cols-2 ' +
|
|
35
|
+
'before:absolute before:bottom-0 before:left-0 before:h-[1px] before:w-full before:bg-[#D7D7D7] '}>
|
|
36
|
+
{displayedFields.map((item, index) => {
|
|
37
|
+
return (<button onClick={() => {
|
|
38
|
+
setSelect(item.code_desc || '');
|
|
39
|
+
router.push(`/faq/${item.code_desc}`);
|
|
40
|
+
}} key={index} className={`${select === item.code_desc ? 'font-[700] text-[#30539D] ' : ''}` +
|
|
41
|
+
'group flex border-b border-solid border-[#D7D7D7] p-[10px] sm:p-[12px]'}>
|
|
42
|
+
<span className={`${select === item.code_desc ? 'bg-[#ECF0F4] ' : ''}` +
|
|
43
|
+
'flex w-full items-center justify-between gap-[5px] px-2 py-[6px] text-left group-hover:bg-[#ECF0F4] sm:px-[16px] '}>
|
|
44
|
+
<p className={'pr-[1px] text-[14px] group-hover:pr-0 group-hover:font-[700] group-hover:text-[#30539D] sm:text-[16px] lg:text-[20px]'}>
|
|
45
|
+
{item.code_name}
|
|
46
|
+
</p>
|
|
47
|
+
<IconArrow className={`${select === item.code_desc ? 'hidden ' : ''}` + 'shrink-0 group-hover:hidden'}/>
|
|
48
|
+
<IconArrowAct className={`${select === item.code_desc ? 'block ' : 'hidden '}` +
|
|
49
|
+
'shrink-0 group-hover:block'}/>
|
|
50
|
+
</span>
|
|
51
|
+
</button>);
|
|
52
|
+
})}
|
|
53
|
+
</div>
|
|
54
|
+
<div className={'m-auto mb-[10px] mt-[40px] flex w-full items-center'}>
|
|
55
|
+
{groupList.length > previewCount && (<button onClick={() => {
|
|
56
|
+
setShowAllFields(!showAllFields);
|
|
57
|
+
}} className={'relative mx-auto flex h-[36px] w-auto items-center justify-between border border-solid border-[#192D56] bg-[#fff] pl-[16px] pr-[36px] text-[16px] font-[700] text-[#192D56] ' +
|
|
58
|
+
'before:absolute before:right-[20px] before:top-1/2 before:h-[12px] before:w-[1px] before:-translate-y-1/2 before:bg-[#192D56] before:content-[""] ' +
|
|
59
|
+
'after:absolute after:right-[14.5px] after:top-1/2 after:h-[1px] after:w-[12px] after:-translate-y-1/2 after:bg-[#192D56] after:content-[""] ' +
|
|
60
|
+
`${showAllFields ? 'before:hidden ' : ''}`}>
|
|
61
|
+
{showAllFields ? '닫기' : '분야 더보기'}
|
|
62
|
+
<div className={'absolute bottom-[-5px] left-[-5px] z-[-1] h-full w-full bg-[#192D56] '}></div>
|
|
63
|
+
</button>)}
|
|
64
|
+
</div>
|
|
65
|
+
</div>);
|
|
66
|
+
};
|
|
67
|
+
export default GroupSelectBox;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import React, { useEffect, useState } from 'react';
|
|
4
|
+
import { usePathname, useRouter } from 'next/navigation';
|
|
5
|
+
|
|
6
|
+
import IconArrow from '../../../asset/images/faq/vector_stroke.svg';
|
|
7
|
+
import IconArrowAct from '../../../asset/images/faq/vector_blu.svg';
|
|
8
|
+
|
|
9
|
+
const GroupSelectBox = ({
|
|
10
|
+
groupList
|
|
11
|
+
}: {
|
|
12
|
+
groupList: { code: string; code_name: string | null; code_desc: string | null }[];
|
|
13
|
+
}) => {
|
|
14
|
+
const router = useRouter();
|
|
15
|
+
const [select, setSelect] = useState<string>('');
|
|
16
|
+
const [showAllFields, setShowAllFields] = useState(false);
|
|
17
|
+
const pathname = usePathname();
|
|
18
|
+
const previewCount = 8;
|
|
19
|
+
|
|
20
|
+
const displayedFields = !showAllFields ? groupList.slice(0, previewCount) : groupList;
|
|
21
|
+
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
setSelect(String(pathname.replace('/faq/', '')));
|
|
24
|
+
}, [pathname]);
|
|
25
|
+
|
|
26
|
+
const scrollToList = () => {
|
|
27
|
+
const location = document.getElementById('faq_list')?.offsetTop ?? 0;
|
|
28
|
+
window.scrollTo({ top: location + 230, behavior: 'smooth' });
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
if (pathname.startsWith('/faq') && select && groupList.some(item => item.code_desc === select)) {
|
|
33
|
+
scrollToList();
|
|
34
|
+
}
|
|
35
|
+
}, [pathname, select]);
|
|
36
|
+
|
|
37
|
+
//수정전
|
|
38
|
+
// const handleChange = (e: React.ChangeEvent<HTMLSelectElement>) => {
|
|
39
|
+
// const selectedValue = e.target.value
|
|
40
|
+
// setSelect(selectedValue)
|
|
41
|
+
// router.push(`/faq/${selectedValue}`)
|
|
42
|
+
// }
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<div className="relative w-full md:hidden">
|
|
46
|
+
<p className="text-[24px] font-[900] ">업무분야</p>
|
|
47
|
+
<div
|
|
48
|
+
className={
|
|
49
|
+
'relative mt-[20px] grid grid-cols-2 ' +
|
|
50
|
+
'before:absolute before:bottom-0 before:left-0 before:h-[1px] before:w-full before:bg-[#D7D7D7] '
|
|
51
|
+
}
|
|
52
|
+
>
|
|
53
|
+
{displayedFields.map((item, index) => {
|
|
54
|
+
return (
|
|
55
|
+
<button
|
|
56
|
+
onClick={() => {
|
|
57
|
+
setSelect(item.code_desc || '');
|
|
58
|
+
router.push(`/faq/${item.code_desc}`);
|
|
59
|
+
}}
|
|
60
|
+
key={index}
|
|
61
|
+
className={
|
|
62
|
+
`${select === item.code_desc ? 'font-[700] text-[#30539D] ' : ''}` +
|
|
63
|
+
'group flex border-b border-solid border-[#D7D7D7] p-[10px] sm:p-[12px]'
|
|
64
|
+
}
|
|
65
|
+
>
|
|
66
|
+
<span
|
|
67
|
+
className={
|
|
68
|
+
`${select === item.code_desc ? 'bg-[#ECF0F4] ' : ''}` +
|
|
69
|
+
'flex w-full items-center justify-between gap-[5px] px-2 py-[6px] text-left group-hover:bg-[#ECF0F4] sm:px-[16px] '
|
|
70
|
+
}
|
|
71
|
+
>
|
|
72
|
+
<p
|
|
73
|
+
className={
|
|
74
|
+
'pr-[1px] text-[14px] group-hover:pr-0 group-hover:font-[700] group-hover:text-[#30539D] sm:text-[16px] lg:text-[20px]'
|
|
75
|
+
}
|
|
76
|
+
>
|
|
77
|
+
{item.code_name}
|
|
78
|
+
</p>
|
|
79
|
+
<IconArrow
|
|
80
|
+
className={
|
|
81
|
+
`${select === item.code_desc ? 'hidden ' : ''}` + 'shrink-0 group-hover:hidden'
|
|
82
|
+
}
|
|
83
|
+
/>
|
|
84
|
+
<IconArrowAct
|
|
85
|
+
className={
|
|
86
|
+
`${select === item.code_desc ? 'block ' : 'hidden '}` +
|
|
87
|
+
'shrink-0 group-hover:block'
|
|
88
|
+
}
|
|
89
|
+
/>
|
|
90
|
+
</span>
|
|
91
|
+
</button>
|
|
92
|
+
);
|
|
93
|
+
})}
|
|
94
|
+
</div>
|
|
95
|
+
<div className={'m-auto mb-[10px] mt-[40px] flex w-full items-center'}>
|
|
96
|
+
{groupList.length > previewCount && (
|
|
97
|
+
<button
|
|
98
|
+
onClick={() => {
|
|
99
|
+
setShowAllFields(!showAllFields);
|
|
100
|
+
}}
|
|
101
|
+
className={
|
|
102
|
+
'relative mx-auto flex h-[36px] w-auto items-center justify-between border border-solid border-[#192D56] bg-[#fff] pl-[16px] pr-[36px] text-[16px] font-[700] text-[#192D56] ' +
|
|
103
|
+
'before:absolute before:right-[20px] before:top-1/2 before:h-[12px] before:w-[1px] before:-translate-y-1/2 before:bg-[#192D56] before:content-[""] ' +
|
|
104
|
+
'after:absolute after:right-[14.5px] after:top-1/2 after:h-[1px] after:w-[12px] after:-translate-y-1/2 after:bg-[#192D56] after:content-[""] ' +
|
|
105
|
+
`${showAllFields ? 'before:hidden ' : ''}`
|
|
106
|
+
}
|
|
107
|
+
>
|
|
108
|
+
{showAllFields ? '닫기' : '분야 더보기'}
|
|
109
|
+
<div className={'absolute bottom-[-5px] left-[-5px] z-[-1] h-full w-full bg-[#192D56] '}></div>
|
|
110
|
+
</button>
|
|
111
|
+
)}
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
);
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export default GroupSelectBox;
|
|
@@ -8,3 +8,5 @@ export { default as MyCaseDetailPage } from './MyCase/[id]/MyCaseDetailPage';
|
|
|
8
8
|
export { default as Login } from './Login/Login';
|
|
9
9
|
export { default as Sign } from './Login/Sign';
|
|
10
10
|
export { default as logout } from './Login/_api/logout';
|
|
11
|
+
export { default as FaqList } from './Faq/FaqList';
|
|
12
|
+
export { default as FaqDetail } from './Faq/Detail/FaqDetail';
|
|
@@ -10,3 +10,5 @@ export { default as MyCaseDetailPage } from './MyCase/[id]/MyCaseDetailPage';
|
|
|
10
10
|
export { default as Login } from './Login/Login';
|
|
11
11
|
export { default as Sign } from './Login/Sign';
|
|
12
12
|
export { default as logout } from './Login/_api/logout';
|
|
13
|
+
export { default as FaqList } from './Faq/FaqList';
|
|
14
|
+
export { default as FaqDetail } from './Faq/Detail/FaqDetail';
|
|
@@ -10,3 +10,5 @@ export { default as MyCaseDetailPage } from './MyCase/[id]/MyCaseDetailPage';
|
|
|
10
10
|
export { default as Login } from './Login/Login';
|
|
11
11
|
export { default as Sign } from './Login/Sign';
|
|
12
12
|
export { default as logout } from './Login/_api/logout';
|
|
13
|
+
export { default as FaqList } from './Faq/FaqList';
|
|
14
|
+
export { default as FaqDetail } from './Faq/Detail/FaqDetail';
|
|
@@ -152,12 +152,18 @@ export function categoryMenuName({ url }) {
|
|
|
152
152
|
else if (url.includes('/solatium')) {
|
|
153
153
|
return { title: '업무분야', subTitle: '이혼 상간자위자료계산기', address: 'solatium' };
|
|
154
154
|
}
|
|
155
|
-
else if (url.includes('/detective')) {
|
|
155
|
+
else if (url.includes('/detective') && !url.includes('/faq/')) {
|
|
156
156
|
return { title: '업무분야', subTitle: '음주 처벌수위 사전검토', address: 'detective' };
|
|
157
157
|
}
|
|
158
158
|
else if (url.includes('/system')) {
|
|
159
159
|
return { title: '그룹소개', subTitle: '대륜만의 조력 시스템', address: 'system' };
|
|
160
160
|
}
|
|
161
|
+
else if (url.includes('/system')) {
|
|
162
|
+
return { title: '그룹소개', subTitle: '대륜만의 조력 시스템', address: 'system' };
|
|
163
|
+
}
|
|
164
|
+
else if (url.includes('/faq/') && !url.includes('/detective')) {
|
|
165
|
+
return { title: '업무사례', subTitle: '법률지식인', address: 'faq' };
|
|
166
|
+
}
|
|
161
167
|
else {
|
|
162
168
|
return { title: '', subTitle: '', address: '/' };
|
|
163
169
|
}
|