@daeryun/dr_components 0.4.92 → 0.4.95
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/Header/MobileHeader.d.ts +8 -0
- package/dist/components/Header/MobileHeader.jsx +47 -0
- package/dist/components/Header/MobileHeader.stories.d.ts +7 -0
- package/dist/components/Header/MobileHeader.stories.jsx +26 -0
- package/dist/components/Header/MobileHeader.stories.tsx +34 -0
- package/dist/components/Header/MobileHeader.tsx +85 -0
- package/dist/components/Header/PcHeader.d.ts +10 -0
- package/dist/components/Header/PcHeader.jsx +110 -0
- package/dist/components/Header/PcHeader.stories.d.ts +7 -0
- package/dist/components/Header/PcHeader.stories.jsx +29 -0
- package/dist/components/Header/PcHeader.stories.tsx +37 -0
- package/dist/components/Header/PcHeader.tsx +203 -0
- package/dist/components/common/integrate/index.d.ts +1 -1
- package/dist/components/common/types/index.d.ts +10 -0
- package/dist/components/common/types/index.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +1 -0
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +1 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.jsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.tsx +1 -1
- package/dist/components/page/MyCase/_component/_table/CaseLine.jsx +2 -2
- package/dist/components/page/MyCase/_component/_table/CaseLine.tsx +2 -2
- package/dist/components/page/MyCase/_type/type.d.ts +1 -0
- package/dist/components/page/MyCase/_type/type.ts +1 -0
- package/dist/components/page/System/SystemPage.d.ts +2 -0
- package/dist/components/page/System/SystemPage.jsx +4 -0
- package/dist/components/page/System/SystemPage.tsx +4 -0
- package/dist/components/routes/gnb.d.ts +1 -10
- package/dist/components/routes/gnb.jsx +33 -96
- package/dist/components/routes/gnb.tsx +35 -101
- package/dist/styles/globals.css +305 -199
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { usePathname, useRouter } from 'next/navigation';
|
|
12
|
+
import { useEffect, useRef, useState } from 'react';
|
|
13
|
+
import { Wrapper } from '../index';
|
|
14
|
+
import Link from 'next/link';
|
|
15
|
+
import Image from 'next/image';
|
|
16
|
+
import SearchWhite from '../../asset/images/header/search_white.webp';
|
|
17
|
+
import SearchBlack from '../../asset/images/header/search_black.webp';
|
|
18
|
+
import MenuWhite from '../../asset/images/header/h_menu.webp';
|
|
19
|
+
import MenuBlack from '../../asset/images/header/h_menu_b.webp';
|
|
20
|
+
const PcHeader = ({ pcRoutes, isMain, isTop, menuToggle, handleMenuToggle, centerName }) => {
|
|
21
|
+
const router = useRouter();
|
|
22
|
+
const pathname = usePathname();
|
|
23
|
+
const [isHover, setIsHover] = useState(false);
|
|
24
|
+
const headerRef = useRef(null);
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
setIsHover(false);
|
|
27
|
+
}, [pathname]);
|
|
28
|
+
// 배경과의 격차를 줄이기위한 useEffect
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
if (isHover) {
|
|
31
|
+
if (headerRef.current) {
|
|
32
|
+
headerRef.current.style.height = 'auto';
|
|
33
|
+
headerRef.current.style.overflow = 'visible';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
const heightSet = setTimeout(() => {
|
|
38
|
+
if (headerRef.current) {
|
|
39
|
+
headerRef.current.style.height = '80px';
|
|
40
|
+
headerRef.current.style.overflow = 'hidden';
|
|
41
|
+
}
|
|
42
|
+
}, 300);
|
|
43
|
+
return () => clearTimeout(heightSet);
|
|
44
|
+
}
|
|
45
|
+
}, [isHover]);
|
|
46
|
+
return (<header ref={headerRef} className={'relative w-full transition-colors duration-300 max-sm:hidden'} onMouseEnter={() => setIsHover(true)} onMouseLeave={() => setIsHover(false)}>
|
|
47
|
+
{/*상단 배경*/}
|
|
48
|
+
<div className={'z-1 absolute left-0 top-0 h-[80px] w-full transition-colors duration-300 ' +
|
|
49
|
+
`${(isMain && !isTop) || isHover || menuToggle ? 'bg-[#545454] bg-opacity-90 ' : ''}` +
|
|
50
|
+
`${!isMain && !isHover && !menuToggle ? 'bg-white ' : ''}`}/>
|
|
51
|
+
{/*하단배경 (세부 nav)*/}
|
|
52
|
+
<div className={'z-1 absolute bottom-0 left-0 h-[calc(100%-80px)] w-full transition-colors duration-300 ' +
|
|
53
|
+
`${isHover ? 'bg-[#545454] bg-opacity-90 ' : ''}`}/>
|
|
54
|
+
<Wrapper className={'flex min-h-[80px] items-start justify-between pt-[22px] ' +
|
|
55
|
+
//1024px
|
|
56
|
+
'max-lg:items-center max-lg:pt-0 '}>
|
|
57
|
+
<Link href={`/`} className={'shrink-0'}>
|
|
58
|
+
<Image src={`${process.env.NEXT_PUBLIC_S3_URL}/logo/${centerName}${isTop || isMain || isHover || menuToggle ? '_w' : ''}.webp`} alt="법무법인(유한)대륜" width={isTop ? 216 : 432} priority height={isTop ? 33 : 67} className={'h-[30px] w-auto ' +
|
|
59
|
+
//1280px
|
|
60
|
+
'max-xl:h-[28px] '}/>
|
|
61
|
+
<h1 className={'hidden'}>변호사 | 법률상담은 법무법인(유한) 대륜</h1>
|
|
62
|
+
</Link>
|
|
63
|
+
<span className={'flex flex-1 items-start justify-end gap-[20px] pt-[2px] ' +
|
|
64
|
+
//1024px
|
|
65
|
+
'max-lg:pt-0'}>
|
|
66
|
+
{/*nav*/}
|
|
67
|
+
<span className={'gr mr-[70px] grid min-w-[750px] max-w-[850px] gap-[30px] pt-[5px] ' +
|
|
68
|
+
//1500px
|
|
69
|
+
'max-3xl:mr-[20px] max-3xl:max-w-[800px] max-3xl:gap-[20px] ' +
|
|
70
|
+
//1280px
|
|
71
|
+
'max-xl:mr-[10px] max-xl:min-w-[500px] max-xl:max-w-[600px] max-xl:gap-[10px] max-xl:pt-[7px] ' +
|
|
72
|
+
//1024px
|
|
73
|
+
'max-lg:hidden '} style={{ gridTemplateColumns: `repeat(${pcRoutes.length}, minmax(0, 1fr))` }}>
|
|
74
|
+
{pcRoutes.map(pcRoute => (<span key={'route_' + pcRoute.name} className={'flex flex-1 flex-col items-center gap-[15px] pb-[35px]'}>
|
|
75
|
+
<Link href={pcRoute.path} className={`${isMain || isHover || menuToggle ? 'text-white ' : ''}` +
|
|
76
|
+
'mb-[20px] text-[20px] font-[800] leading-none tracking-[-0.7px] ' +
|
|
77
|
+
//1280px
|
|
78
|
+
'max-xl:text-[18px] '}>
|
|
79
|
+
{pcRoute.name}
|
|
80
|
+
</Link>
|
|
81
|
+
{pcRoute.routes.map(inRoute => (<Link key={'in_route_' + inRoute.name} href={inRoute.path} target={inRoute.newTab ? '_blank' : ''} className={'break-keep text-center text-[16px] font-[500] leading-[1.2] tracking-[-0.6px] text-[#C4C4C4] transition-opacity ' +
|
|
82
|
+
'hover:font-[800] hover:text-white ' +
|
|
83
|
+
`${isHover ? '' : 'opacity-0 '}` +
|
|
84
|
+
//1280px
|
|
85
|
+
'max-xl:text-[14px] '}>
|
|
86
|
+
{inRoute.name}
|
|
87
|
+
</Link>))}
|
|
88
|
+
</span>))}
|
|
89
|
+
</span>
|
|
90
|
+
|
|
91
|
+
{/*통합 검색*/}
|
|
92
|
+
<button onClick={() => __awaiter(void 0, void 0, void 0, function* () {
|
|
93
|
+
yield router.push('/integrate?search=&tab=전체');
|
|
94
|
+
})} className={'relative flex aspect-square w-[27px] shrink-0 ' +
|
|
95
|
+
//1280px
|
|
96
|
+
'max-xl:w-[25px] '}>
|
|
97
|
+
<Image src={isMain || isHover || menuToggle ? SearchWhite : SearchBlack} alt={'통합검색 이동'} width={24} height={24} className={'h-full w-full scale-90 object-contain'}/>
|
|
98
|
+
</button>
|
|
99
|
+
|
|
100
|
+
{/*메뉴 버튼*/}
|
|
101
|
+
<button tabIndex={0} onClick={() => handleMenuToggle()} className={'relative flex aspect-square w-[27px] shrink-0 ' +
|
|
102
|
+
//1280px
|
|
103
|
+
'max-xl:w-[25px] '}>
|
|
104
|
+
<Image id={'menu'} src={isMain || isHover || menuToggle ? MenuWhite : MenuBlack} alt="전체메뉴 열기" width={38} height={20} className={'h-full w-full object-contain'}/>
|
|
105
|
+
</button>
|
|
106
|
+
</span>
|
|
107
|
+
</Wrapper>
|
|
108
|
+
</header>);
|
|
109
|
+
};
|
|
110
|
+
export default PcHeader;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import PcHeader from './PcHeader';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import '../../styles/globals.css';
|
|
4
|
+
declare const meta: Meta<typeof PcHeader>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import PcHeader from './PcHeader';
|
|
2
|
+
import '../../styles/globals.css';
|
|
3
|
+
import { QueryClient, QueryClientProvider } from 'react-query';
|
|
4
|
+
import { routes } from '../routes/gnb';
|
|
5
|
+
const meta = {
|
|
6
|
+
component: PcHeader,
|
|
7
|
+
title: 'PcHeader',
|
|
8
|
+
argTypes: {
|
|
9
|
+
isMain: Boolean,
|
|
10
|
+
isTop: Boolean
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
export const Default = {
|
|
15
|
+
render: args => {
|
|
16
|
+
const queryClient = new QueryClient();
|
|
17
|
+
return (<QueryClientProvider client={queryClient}>
|
|
18
|
+
<PcHeader {...args}/>
|
|
19
|
+
</QueryClientProvider>);
|
|
20
|
+
},
|
|
21
|
+
args: {
|
|
22
|
+
isMain: true,
|
|
23
|
+
isTop: true,
|
|
24
|
+
menuToggle: false,
|
|
25
|
+
handleMenuToggle: () => { },
|
|
26
|
+
pcRoutes: routes,
|
|
27
|
+
centerName: 'divorce'
|
|
28
|
+
}
|
|
29
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import PcHeader from './PcHeader';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import '../../styles/globals.css';
|
|
4
|
+
import { QueryClient, QueryClientProvider } from 'react-query';
|
|
5
|
+
import { routes } from '../routes/gnb';
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof PcHeader> = {
|
|
8
|
+
component: PcHeader,
|
|
9
|
+
title: 'PcHeader',
|
|
10
|
+
argTypes: {
|
|
11
|
+
isMain: Boolean,
|
|
12
|
+
isTop: Boolean
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default meta;
|
|
17
|
+
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
|
|
20
|
+
export const Default: Story = {
|
|
21
|
+
render: args => {
|
|
22
|
+
const queryClient = new QueryClient();
|
|
23
|
+
return (
|
|
24
|
+
<QueryClientProvider client={queryClient}>
|
|
25
|
+
<PcHeader {...args} />
|
|
26
|
+
</QueryClientProvider>
|
|
27
|
+
);
|
|
28
|
+
},
|
|
29
|
+
args: {
|
|
30
|
+
isMain: true,
|
|
31
|
+
isTop: true,
|
|
32
|
+
menuToggle: false,
|
|
33
|
+
handleMenuToggle: () => {},
|
|
34
|
+
pcRoutes: routes,
|
|
35
|
+
centerName: 'divorce'
|
|
36
|
+
}
|
|
37
|
+
};
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { IRoute } from '../common';
|
|
4
|
+
import { usePathname, useRouter } from 'next/navigation';
|
|
5
|
+
import { useEffect, useRef, useState } from 'react';
|
|
6
|
+
import { Wrapper } from '../index';
|
|
7
|
+
import Link from 'next/link';
|
|
8
|
+
import Image from 'next/image';
|
|
9
|
+
|
|
10
|
+
import SearchWhite from '../../asset/images/header/search_white.webp';
|
|
11
|
+
import SearchBlack from '../../asset/images/header/search_black.webp';
|
|
12
|
+
import MenuWhite from '../../asset/images/header/h_menu.webp';
|
|
13
|
+
import MenuBlack from '../../asset/images/header/h_menu_b.webp';
|
|
14
|
+
|
|
15
|
+
const PcHeader = ({
|
|
16
|
+
pcRoutes,
|
|
17
|
+
isMain,
|
|
18
|
+
isTop,
|
|
19
|
+
menuToggle,
|
|
20
|
+
handleMenuToggle,
|
|
21
|
+
centerName
|
|
22
|
+
}: {
|
|
23
|
+
pcRoutes: IRoute[];
|
|
24
|
+
isMain: boolean;
|
|
25
|
+
isTop: boolean;
|
|
26
|
+
menuToggle: boolean;
|
|
27
|
+
handleMenuToggle: (url?: string | undefined) => void;
|
|
28
|
+
centerName: string;
|
|
29
|
+
}) => {
|
|
30
|
+
const router = useRouter();
|
|
31
|
+
const pathname = usePathname();
|
|
32
|
+
const [isHover, setIsHover] = useState<boolean>(false);
|
|
33
|
+
const headerRef = useRef<HTMLHtmlElement>(null);
|
|
34
|
+
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
setIsHover(false);
|
|
37
|
+
}, [pathname]);
|
|
38
|
+
|
|
39
|
+
// 배경과의 격차를 줄이기위한 useEffect
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
if (isHover) {
|
|
42
|
+
if (headerRef.current) {
|
|
43
|
+
headerRef.current.style.height = 'auto';
|
|
44
|
+
headerRef.current.style.overflow = 'visible';
|
|
45
|
+
}
|
|
46
|
+
} else {
|
|
47
|
+
const heightSet = setTimeout(() => {
|
|
48
|
+
if (headerRef.current) {
|
|
49
|
+
headerRef.current.style.height = '80px';
|
|
50
|
+
headerRef.current.style.overflow = 'hidden';
|
|
51
|
+
}
|
|
52
|
+
}, 300);
|
|
53
|
+
|
|
54
|
+
return () => clearTimeout(heightSet);
|
|
55
|
+
}
|
|
56
|
+
}, [isHover]);
|
|
57
|
+
|
|
58
|
+
return (
|
|
59
|
+
<header
|
|
60
|
+
ref={headerRef}
|
|
61
|
+
className={'relative w-full transition-colors duration-300 max-sm:hidden'}
|
|
62
|
+
onMouseEnter={() => setIsHover(true)}
|
|
63
|
+
onMouseLeave={() => setIsHover(false)}
|
|
64
|
+
>
|
|
65
|
+
{/*상단 배경*/}
|
|
66
|
+
<div
|
|
67
|
+
className={
|
|
68
|
+
'z-1 absolute left-0 top-0 h-[80px] w-full transition-colors duration-300 ' +
|
|
69
|
+
`${(isMain && !isTop) || isHover || menuToggle ? 'bg-[#545454] bg-opacity-90 ' : ''}` +
|
|
70
|
+
`${!isMain && !isHover && !menuToggle ? 'bg-white ' : ''}`
|
|
71
|
+
}
|
|
72
|
+
/>
|
|
73
|
+
{/*하단배경 (세부 nav)*/}
|
|
74
|
+
<div
|
|
75
|
+
className={
|
|
76
|
+
'z-1 absolute bottom-0 left-0 h-[calc(100%-80px)] w-full transition-colors duration-300 ' +
|
|
77
|
+
`${isHover ? 'bg-[#545454] bg-opacity-90 ' : ''}`
|
|
78
|
+
}
|
|
79
|
+
/>
|
|
80
|
+
<Wrapper
|
|
81
|
+
className={
|
|
82
|
+
'flex min-h-[80px] items-start justify-between pt-[22px] ' +
|
|
83
|
+
//1024px
|
|
84
|
+
'max-lg:items-center max-lg:pt-0 '
|
|
85
|
+
}
|
|
86
|
+
>
|
|
87
|
+
<Link href={`/`} className={'shrink-0'}>
|
|
88
|
+
<Image
|
|
89
|
+
src={`${process.env.NEXT_PUBLIC_S3_URL}/logo/${centerName}${isTop || isMain || isHover || menuToggle ? '_w' : ''}.webp`}
|
|
90
|
+
alt="법무법인(유한)대륜"
|
|
91
|
+
width={isTop ? 216 : 432}
|
|
92
|
+
priority
|
|
93
|
+
height={isTop ? 33 : 67}
|
|
94
|
+
className={
|
|
95
|
+
'h-[30px] w-auto ' +
|
|
96
|
+
//1280px
|
|
97
|
+
'max-xl:h-[28px] '
|
|
98
|
+
}
|
|
99
|
+
/>
|
|
100
|
+
<h1 className={'hidden'}>변호사 | 법률상담은 법무법인(유한) 대륜</h1>
|
|
101
|
+
</Link>
|
|
102
|
+
<span
|
|
103
|
+
className={
|
|
104
|
+
'flex flex-1 items-start justify-end gap-[20px] pt-[2px] ' +
|
|
105
|
+
//1024px
|
|
106
|
+
'max-lg:pt-0'
|
|
107
|
+
}
|
|
108
|
+
>
|
|
109
|
+
{/*nav*/}
|
|
110
|
+
<span
|
|
111
|
+
className={
|
|
112
|
+
'gr mr-[70px] grid min-w-[750px] max-w-[850px] gap-[30px] pt-[5px] ' +
|
|
113
|
+
//1500px
|
|
114
|
+
'max-3xl:mr-[20px] max-3xl:max-w-[800px] max-3xl:gap-[20px] ' +
|
|
115
|
+
//1280px
|
|
116
|
+
'max-xl:mr-[10px] max-xl:min-w-[500px] max-xl:max-w-[600px] max-xl:gap-[10px] max-xl:pt-[7px] ' +
|
|
117
|
+
//1024px
|
|
118
|
+
'max-lg:hidden '
|
|
119
|
+
}
|
|
120
|
+
style={{ gridTemplateColumns: `repeat(${pcRoutes.length}, minmax(0, 1fr))` }}
|
|
121
|
+
>
|
|
122
|
+
{pcRoutes.map(pcRoute => (
|
|
123
|
+
<span
|
|
124
|
+
key={'route_' + pcRoute.name}
|
|
125
|
+
className={'flex flex-1 flex-col items-center gap-[15px] pb-[35px]'}
|
|
126
|
+
>
|
|
127
|
+
<Link
|
|
128
|
+
href={pcRoute.path}
|
|
129
|
+
className={
|
|
130
|
+
`${isMain || isHover || menuToggle ? 'text-white ' : ''}` +
|
|
131
|
+
'mb-[20px] text-[20px] font-[800] leading-none tracking-[-0.7px] ' +
|
|
132
|
+
//1280px
|
|
133
|
+
'max-xl:text-[18px] '
|
|
134
|
+
}
|
|
135
|
+
>
|
|
136
|
+
{pcRoute.name}
|
|
137
|
+
</Link>
|
|
138
|
+
{pcRoute.routes.map(inRoute => (
|
|
139
|
+
<Link
|
|
140
|
+
key={'in_route_' + inRoute.name}
|
|
141
|
+
href={inRoute.path}
|
|
142
|
+
target={inRoute.newTab ? '_blank' : ''}
|
|
143
|
+
className={
|
|
144
|
+
'break-keep text-center text-[16px] font-[500] leading-[1.2] tracking-[-0.6px] text-[#C4C4C4] transition-opacity ' +
|
|
145
|
+
'hover:font-[800] hover:text-white ' +
|
|
146
|
+
`${isHover ? '' : 'opacity-0 '}` +
|
|
147
|
+
//1280px
|
|
148
|
+
'max-xl:text-[14px] '
|
|
149
|
+
}
|
|
150
|
+
>
|
|
151
|
+
{inRoute.name}
|
|
152
|
+
</Link>
|
|
153
|
+
))}
|
|
154
|
+
</span>
|
|
155
|
+
))}
|
|
156
|
+
</span>
|
|
157
|
+
|
|
158
|
+
{/*통합 검색*/}
|
|
159
|
+
<button
|
|
160
|
+
onClick={async () => {
|
|
161
|
+
await router.push('/integrate?search=&tab=전체');
|
|
162
|
+
}}
|
|
163
|
+
className={
|
|
164
|
+
'relative flex aspect-square w-[27px] shrink-0 ' +
|
|
165
|
+
//1280px
|
|
166
|
+
'max-xl:w-[25px] '
|
|
167
|
+
}
|
|
168
|
+
>
|
|
169
|
+
<Image
|
|
170
|
+
src={isMain || isHover || menuToggle ? SearchWhite : SearchBlack}
|
|
171
|
+
alt={'통합검색 이동'}
|
|
172
|
+
width={24}
|
|
173
|
+
height={24}
|
|
174
|
+
className={'h-full w-full scale-90 object-contain'}
|
|
175
|
+
/>
|
|
176
|
+
</button>
|
|
177
|
+
|
|
178
|
+
{/*메뉴 버튼*/}
|
|
179
|
+
<button
|
|
180
|
+
tabIndex={0}
|
|
181
|
+
onClick={() => handleMenuToggle()}
|
|
182
|
+
className={
|
|
183
|
+
'relative flex aspect-square w-[27px] shrink-0 ' +
|
|
184
|
+
//1280px
|
|
185
|
+
'max-xl:w-[25px] '
|
|
186
|
+
}
|
|
187
|
+
>
|
|
188
|
+
<Image
|
|
189
|
+
id={'menu'}
|
|
190
|
+
src={isMain || isHover || menuToggle ? MenuWhite : MenuBlack}
|
|
191
|
+
alt="전체메뉴 열기"
|
|
192
|
+
width={38}
|
|
193
|
+
height={20}
|
|
194
|
+
className={'h-full w-full object-contain'}
|
|
195
|
+
/>
|
|
196
|
+
</button>
|
|
197
|
+
</span>
|
|
198
|
+
</Wrapper>
|
|
199
|
+
</header>
|
|
200
|
+
);
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
export default PcHeader;
|
|
@@ -26,6 +26,7 @@ const DetailInfo = ({ detailList, isLoading }) => {
|
|
|
26
26
|
<Line title="사건 시작일" content={detailList === null || detailList === void 0 ? void 0 : detailList.accept_date}/>
|
|
27
27
|
<Line title="사건 종료일" content={detailList === null || detailList === void 0 ? void 0 : detailList.end_date}/>
|
|
28
28
|
<Line title="담당 변호사" content={detailList === null || detailList === void 0 ? void 0 : detailList.lawyer}/>
|
|
29
|
+
<Line title="나의 비서" content={detailList === null || detailList === void 0 ? void 0 : detailList.assistants}/>
|
|
29
30
|
<Line title="나의 정보" content={`${(_a = detailList === null || detailList === void 0 ? void 0 : detailList.my_info) === null || _a === void 0 ? void 0 : _a.position} / ${(_b = detailList === null || detailList === void 0 ? void 0 : detailList.my_info) === null || _b === void 0 ? void 0 : _b.name} / ${(_c = detailList === null || detailList === void 0 ? void 0 : detailList.my_info) === null || _c === void 0 ? void 0 : _c.tel}`}/>
|
|
30
31
|
<Line title="상대방 정보" content={(detailList === null || detailList === void 0 ? void 0 : detailList.other_info.length) > 0
|
|
31
32
|
? detailList === null || detailList === void 0 ? void 0 : detailList.other_info.map((info, index) => `${info.position} / ${info.name} / ${info.tel}`)
|
|
@@ -53,6 +53,7 @@ const DetailInfo = ({ detailList, isLoading }: { detailList: DetailList; isLoadi
|
|
|
53
53
|
<Line title="사건 시작일" content={detailList?.accept_date} />
|
|
54
54
|
<Line title="사건 종료일" content={detailList?.end_date} />
|
|
55
55
|
<Line title="담당 변호사" content={detailList?.lawyer} />
|
|
56
|
+
<Line title="나의 비서" content={detailList?.assistants} />
|
|
56
57
|
<Line
|
|
57
58
|
title="나의 정보"
|
|
58
59
|
content={`${detailList?.my_info?.position} / ${detailList?.my_info?.name} / ${detailList?.my_info?.tel}`}
|
|
@@ -19,7 +19,7 @@ const ContractModal = ({ isOpen, onClose, data }) => {
|
|
|
19
19
|
onClose();
|
|
20
20
|
}} className="h-[16px] w-[16px] cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]"/>
|
|
21
21
|
</div>
|
|
22
|
-
<div className="mt-[12px] h-
|
|
22
|
+
<div className="mt-[12px] h-[453px] w-full overflow-y-auto rounded-[8px] border border-solid border-grayScale1 sm-top:mt-[20px] sm-top:h-[605px] lg:h-[calc(100%-62px)]">
|
|
23
23
|
{data === null || data === void 0 ? void 0 : data.map((item, index) => (<div key={index}>
|
|
24
24
|
<Image src={item.path} alt={item.name} width={3000} height={3000} unoptimized className="h-auto w-full"/>
|
|
25
25
|
</div>))}
|
|
@@ -38,7 +38,7 @@ const ContractModal = ({ isOpen, onClose, data }: { isOpen: boolean; onClose: ()
|
|
|
38
38
|
className="h-[16px] w-[16px] cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]"
|
|
39
39
|
/>
|
|
40
40
|
</div>
|
|
41
|
-
<div className="mt-[12px] h-
|
|
41
|
+
<div className="mt-[12px] h-[453px] w-full overflow-y-auto rounded-[8px] border border-solid border-grayScale1 sm-top:mt-[20px] sm-top:h-[605px] lg:h-[calc(100%-62px)]">
|
|
42
42
|
{data?.map((item, index) => (
|
|
43
43
|
<div key={index}>
|
|
44
44
|
<Image
|
|
@@ -37,7 +37,7 @@ const CaseLine = ({ title, isRefund }) => {
|
|
|
37
37
|
}
|
|
38
38
|
})();
|
|
39
39
|
return (number >= -1 && (<div className="mt-[16px] sm-top:mt-[24px] lg:mt-[32px]">
|
|
40
|
-
<div className="
|
|
40
|
+
<div className=" flex flex-row items-center ">
|
|
41
41
|
{number === 1 ? <ProcessCircle isRefund={isRefund}/> : <CheckCircle isRefund={isRefund}/>}
|
|
42
42
|
<Line isRedLine={number > 1} isRefund={isRefund}/>
|
|
43
43
|
|
|
@@ -49,7 +49,7 @@ const CaseLine = ({ title, isRefund }) => {
|
|
|
49
49
|
<p className={`body_small2_mo sm-top:body_medium2_tb lg:body_medium2 ${isRefund ? 'text-grayScale4' : number >= 1 ? 'text-subColor01' : 'text-[#B9B9B9]'}`}>
|
|
50
50
|
담당팀구성
|
|
51
51
|
</p>
|
|
52
|
-
<p className={`body_small2_mo sm-top:body_medium2_tb lg:body_medium2
|
|
52
|
+
<p className={`body_small2_mo sm-top:body_medium2_tb lg:body_medium2 ${number >= 2 ? 'text-subColor01' : 'text-[#B9B9B9]'}`}>
|
|
53
53
|
사건검토
|
|
54
54
|
</p>
|
|
55
55
|
<p className={`body_small2_mo sm-top:body_medium2_tb lg:body_medium2 ${number >= 3 ? 'text-subColor01' : 'text-[#B9B9B9]'}`}>
|
|
@@ -76,7 +76,7 @@ const CaseLine = ({ title, isRefund }: { title: string; isRefund: boolean }) =>
|
|
|
76
76
|
return (
|
|
77
77
|
number >= -1 && (
|
|
78
78
|
<div className="mt-[16px] sm-top:mt-[24px] lg:mt-[32px]">
|
|
79
|
-
<div className="
|
|
79
|
+
<div className=" flex flex-row items-center ">
|
|
80
80
|
{number === 1 ? <ProcessCircle isRefund={isRefund} /> : <CheckCircle isRefund={isRefund} />}
|
|
81
81
|
<Line isRedLine={number > 1} isRefund={isRefund} />
|
|
82
82
|
|
|
@@ -105,7 +105,7 @@ const CaseLine = ({ title, isRefund }: { title: string; isRefund: boolean }) =>
|
|
|
105
105
|
담당팀구성
|
|
106
106
|
</p>
|
|
107
107
|
<p
|
|
108
|
-
className={`body_small2_mo sm-top:body_medium2_tb lg:body_medium2
|
|
108
|
+
className={`body_small2_mo sm-top:body_medium2_tb lg:body_medium2 ${
|
|
109
109
|
number >= 2 ? 'text-subColor01' : 'text-[#B9B9B9]'
|
|
110
110
|
}`}
|
|
111
111
|
>
|