@daeryun/dr_components 0.5.0 → 0.5.2

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.
Files changed (65) hide show
  1. package/dist/asset/images/system/svg/Arrow_Right_LG.svg +3 -0
  2. package/dist/asset/images/system/svg/arrow_system.svg +3 -0
  3. package/dist/asset/images/system/system_allocation.webp +0 -0
  4. package/dist/asset/images/system/system_btn_1.webp +0 -0
  5. package/dist/asset/images/system/system_btn_2.webp +0 -0
  6. package/dist/asset/images/system/system_btn_3.webp +0 -0
  7. package/dist/asset/images/system/system_consult_now.webp +0 -0
  8. package/dist/asset/images/system/system_consult_now_m.webp +0 -0
  9. package/dist/asset/images/system/system_consult_now_t.webp +0 -0
  10. package/dist/asset/images/system/system_consultation.webp +0 -0
  11. package/dist/asset/images/system/system_consultation_img.webp +0 -0
  12. package/dist/asset/images/system/system_consultation_img_m.webp +0 -0
  13. package/dist/asset/images/system/system_consultation_img_t.webp +0 -0
  14. package/dist/asset/images/system/system_consultation_txt.webp +0 -0
  15. package/dist/asset/images/system/system_post.webp +0 -0
  16. package/dist/asset/images/system/system_sec1_bg.webp +0 -0
  17. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  18. package/dist/components/common/system/index.d.ts +14 -0
  19. package/dist/components/common/system/index.jsx +37 -0
  20. package/dist/components/common/system/index.tsx +40 -0
  21. package/dist/components/page/LawyerDetail/LawyerDetail.stories.d.ts +1 -0
  22. package/dist/components/page/LawyerDetail/LawyerDetail.stories.jsx +2130 -0
  23. package/dist/components/page/LawyerDetail/LawyerDetail.stories.tsx +2141 -0
  24. package/dist/components/page/LawyerDetail/component/BasicInfo.jsx +14 -5
  25. package/dist/components/page/LawyerDetail/component/BasicInfo.tsx +15 -5
  26. package/dist/components/page/LawyerDetail/component/CareerList.jsx +7 -7
  27. package/dist/components/page/LawyerDetail/component/CareerList.tsx +7 -7
  28. package/dist/components/page/LawyerDetail/component/MobileRelatedPage.jsx +0 -2
  29. package/dist/components/page/LawyerDetail/component/MobileRelatedPage.tsx +0 -3
  30. package/dist/components/page/LawyerDetail/component/MobileSpeciality.jsx +0 -2
  31. package/dist/components/page/LawyerDetail/component/MobileSpeciality.tsx +1 -2
  32. package/dist/components/page/LawyerDetail/component/PcTabButton.tsx +0 -2
  33. package/dist/components/page/System/AllocationSystem.d.ts +2 -0
  34. package/dist/components/page/System/AllocationSystem.jsx +64 -0
  35. package/dist/components/page/System/AllocationSystem.tsx +94 -0
  36. package/dist/components/page/System/ConsultNow.d.ts +2 -0
  37. package/dist/components/page/System/ConsultNow.jsx +64 -0
  38. package/dist/components/page/System/ConsultNow.tsx +113 -0
  39. package/dist/components/page/System/ConsultationSystem.d.ts +2 -0
  40. package/dist/components/page/System/ConsultationSystem.jsx +96 -0
  41. package/dist/components/page/System/ConsultationSystem.tsx +163 -0
  42. package/dist/components/page/System/PostSystem.d.ts +2 -0
  43. package/dist/components/page/System/PostSystem.jsx +55 -0
  44. package/dist/components/page/System/PostSystem.tsx +79 -0
  45. package/dist/components/page/System/System.stories.d.ts +6 -0
  46. package/dist/components/page/System/System.stories.jsx +14 -0
  47. package/dist/components/page/System/System.stories.tsx +21 -0
  48. package/dist/components/page/System/SystemLayout.d.ts +7 -0
  49. package/dist/components/page/System/SystemLayout.jsx +49 -0
  50. package/dist/components/page/System/SystemLayout.tsx +89 -0
  51. package/dist/components/page/System/SystemPage.d.ts +1 -1
  52. package/dist/components/page/System/SystemPage.jsx +13 -1
  53. package/dist/components/page/System/SystemPage.tsx +17 -1
  54. package/dist/components/page/System/SystemTextBox.d.ts +7 -0
  55. package/dist/components/page/System/SystemTextBox.jsx +29 -0
  56. package/dist/components/page/System/SystemTextBox.tsx +35 -0
  57. package/dist/components/page/System/SystemTitle.d.ts +3 -0
  58. package/dist/components/page/System/SystemTitle.jsx +87 -0
  59. package/dist/components/page/System/SystemTitle.tsx +162 -0
  60. package/dist/components/page/System/SystemWrapper.d.ts +8 -0
  61. package/dist/components/page/System/SystemWrapper.jsx +31 -0
  62. package/dist/components/page/System/SystemWrapper.tsx +38 -0
  63. package/dist/styles/globals.css +680 -4
  64. package/dist/tsconfig.tsbuildinfo +1 -1
  65. package/package.json +1 -1
@@ -0,0 +1,29 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React, { forwardRef } from 'react';
13
+ const SystemTextBox = forwardRef((_a, ref) => {
14
+ var { children, className = '' } = _a, others = __rest(_a, ["children", "className"]);
15
+ return (<p className={'text-[24px] leading-[1.7] tracking-[-0.96px] text-[#58595B] ' +
16
+ //1500px
17
+ 'max-3xl:text-[22px] ' +
18
+ //1024px
19
+ 'max-lg:text-[20px] max-lg:leading-[1.8] ' +
20
+ //768px
21
+ 'max-md:text-[18px] ' +
22
+ //520px
23
+ 'max-2sm:text-[16px] ' +
24
+ className} ref={ref} {...others}>
25
+ {children ? children : null}
26
+ </p>);
27
+ });
28
+ SystemTextBox.displayName = 'SystemTextBox';
29
+ export default SystemTextBox;
@@ -0,0 +1,35 @@
1
+ import React, { forwardRef, ReactNode } from 'react';
2
+
3
+ interface SystemTextBoxProps extends React.HTMLAttributes<HTMLParagraphElement> {
4
+ children?: ReactNode;
5
+ className?: string;
6
+ }
7
+
8
+ const SystemTextBox = forwardRef<HTMLParagraphElement, SystemTextBoxProps>(
9
+ ({ children, className = '', ...others }, ref) => {
10
+ return (
11
+ <p
12
+ className={
13
+ 'text-[24px] leading-[1.7] tracking-[-0.96px] text-[#58595B] ' +
14
+ //1500px
15
+ 'max-3xl:text-[22px] ' +
16
+ //1024px
17
+ 'max-lg:text-[20px] max-lg:leading-[1.8] ' +
18
+ //768px
19
+ 'max-md:text-[18px] ' +
20
+ //520px
21
+ 'max-2sm:text-[16px] ' +
22
+ className
23
+ }
24
+ ref={ref}
25
+ {...others}
26
+ >
27
+ {children ? children : null}
28
+ </p>
29
+ );
30
+ }
31
+ );
32
+
33
+ SystemTextBox.displayName = 'SystemTextBox';
34
+
35
+ export default SystemTextBox;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SystemTitle: () => React.JSX.Element;
3
+ export default SystemTitle;
@@ -0,0 +1,87 @@
1
+ 'use client';
2
+ import Image from 'next/image';
3
+ import React from 'react';
4
+ import { btnList } from '../../common/system';
5
+ import IconArrow from '../../../asset/images/system/svg/arrow_system.svg';
6
+ import SystemWrapper from './SystemWrapper';
7
+ import CategoryMenu from '../MyCase/_component/_breadCrumble/CategoryMenu';
8
+ import BgImg from '../../../asset/images/system/system_sec1_bg.webp';
9
+ import ConsultationBtnImg from '../../../asset/images/system/system_btn_1.webp';
10
+ import AllocationBtnImg from '../../../asset/images/system/system_btn_1.webp';
11
+ import PostBtnImg from '../../../asset/images/system/system_btn_1.webp';
12
+ const SystemTitle = () => {
13
+ const [hoverNum, setHoverNum] = React.useState(0);
14
+ const handelOnClick = (id) => {
15
+ var _a, _b;
16
+ const location = (_b = (_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.offsetTop) !== null && _b !== void 0 ? _b : 0;
17
+ window.scrollTo({ top: location - 50, behavior: 'smooth' });
18
+ };
19
+ return (<section className={'relative h-auto w-full'}>
20
+ <div className={'absolute left-0 top-0 h-[72%] w-full ' + 'max-lg:h-[82%] '}>
21
+ <Image src={BgImg} alt={''} fill className={'h-full w-full object-cover'}/>
22
+ </div>
23
+ <SystemWrapper className={'pb-[120px] pt-[170px] max-lg:pb-[52px] max-md:pb-[40px] max-sm:pt-[110px] '}>
24
+ <div className={'mb-[46px] lg:flex lg:flex-row lg:items-center lg:justify-center'}>
25
+ <CategoryMenu isMargin={false}/>
26
+ </div>
27
+ <h1 className={'text-[60px] font-[800] tracking-[-2.4px] ' +
28
+ //1500px
29
+ 'max-3xl:text-[54px] ' +
30
+ //1024px
31
+ 'max-lg:text-[48px] ' +
32
+ //768px
33
+ 'max-md:text-[34px] ' +
34
+ //520px
35
+ 'max-2sm:text-[28px] '}>
36
+ 대륜만의 조력 시스템
37
+ </h1>
38
+ <span className={'relative mt-[100px] block h-[216px] w-full ' +
39
+ //1500px
40
+ 'max-3xl:h-[160px] ' +
41
+ //1024px
42
+ 'max-lg:mt-[72px] max-lg:h-[110px] ' +
43
+ //768px
44
+ 'max-md:mt-[40px] max-md:h-auto '}>
45
+ {/*링크*/}
46
+ <span className={'absolute left-0 top-0 z-[1] flex h-full w-full gap-[14px]'}>
47
+ {btnList.map(item => (<button key={'system_btn_' + item.index} onMouseEnter={() => setHoverNum(item.index)} onMouseLeave={() => setHoverNum(0)} onClick={() => {
48
+ handelOnClick(item.title);
49
+ }} id={'system_btn_' + item.index} className={'h-full flex-1'}/>))}
50
+ </span>
51
+ <span className={'flex h-full w-full gap-[14px] max-lg:gap-[8px] max-md:gap-[4px]'}>
52
+ {btnList.map(item => (<div key={'system_btn_bg_' + item.index} id={'system_btn_bg_' + item.index} className={'relative z-0 flex h-full flex-1 items-center justify-between overflow-hidden px-[48px] transition-[flex,border-radius] duration-300 ' +
53
+ `${hoverNum === item.index ? 'md:flex-[0.72] md:rounded-tr-[100px] ' : ''}` +
54
+ 'max-xl:px-[28px] ' +
55
+ 'max-lg:px-[22px] ' +
56
+ 'max-md:flex-col max-md:gap-[8px] max-md:px-[10px] max-md:py-[16px] max-md:text-center '}>
57
+ <div className={'absolute left-0 top-0 h-full w-full opacity-80 mix-blend-multiply transition-colors duration-300 ' +
58
+ `${hoverNum === item.index ? 'max-md:bg-[#58595B] md:bg-[#04325A] ' : 'bg-[#58595B] '}`}/>
59
+ {item.title === 'system_consultation' ? (<Image src={ConsultationBtnImg} alt={''} fill className={'absolute left-0 top-0 z-[-1] h-full w-full object-cover object-right'}/>) : item.title === 'system_allocation' ? (<Image src={AllocationBtnImg} alt={''} fill className={'absolute left-0 top-0 z-[-1] h-full w-full object-cover object-right'}/>) : (<Image src={PostBtnImg} alt={''} fill className={'absolute left-0 top-0 z-[-1] h-full w-full object-cover object-right'}/>)}
60
+
61
+ <p className={'relative z-[1] whitespace-pre-wrap text-[32px] font-[800] leading-[1.3] tracking-[-0.96px] text-white ' +
62
+ //1500px
63
+ 'max-3xl:text-[26px] ' +
64
+ //1024px
65
+ 'max-lg:text-[20px] ' +
66
+ //768px
67
+ 'max-md:text-[16px] '}>
68
+ {item.name}
69
+ </p>
70
+ <div className={'z-[1] flex aspect-square w-[48px] items-center justify-center rounded-full bg-white transition-colors duration-300 ' +
71
+ 'max-3xl:w-[38px] ' +
72
+ 'max-lg:w-[28px] ' +
73
+ 'max-md:w-[22px] ' +
74
+ 'max-2sm:w-[16px] ' +
75
+ `${hoverNum === item.index ? 'bg-opacity-100 ' : 'bg-opacity-70 '}`}>
76
+ <IconArrow className={'block aspect-square h-[16px] object-contain pl-[8%] ' +
77
+ 'max-3xl:h-[12px] ' +
78
+ 'max-lg:h-[9px] ' +
79
+ 'max-2sm:h-[5px]'}/>
80
+ </div>
81
+ </div>))}
82
+ </span>
83
+ </span>
84
+ </SystemWrapper>
85
+ </section>);
86
+ };
87
+ export default SystemTitle;
@@ -0,0 +1,162 @@
1
+ 'use client';
2
+
3
+ import Image from 'next/image';
4
+ import React from 'react';
5
+ import { btnList } from '../../common/system';
6
+
7
+ import IconArrow from '../../../asset/images/system/svg/arrow_system.svg';
8
+ import SystemWrapper from './SystemWrapper';
9
+ import CategoryMenu from '../MyCase/_component/_breadCrumble/CategoryMenu';
10
+ import BgImg from '../../../asset/images/system/system_sec1_bg.webp';
11
+ import ConsultationBtnImg from '../../../asset/images/system/system_btn_1.webp';
12
+ import AllocationBtnImg from '../../../asset/images/system/system_btn_1.webp';
13
+ import PostBtnImg from '../../../asset/images/system/system_btn_1.webp';
14
+
15
+ const SystemTitle = () => {
16
+ const [hoverNum, setHoverNum] = React.useState(0);
17
+
18
+ const handelOnClick = (id: string) => {
19
+ const location = document.getElementById(id)?.offsetTop ?? 0;
20
+ window.scrollTo({ top: location - 50, behavior: 'smooth' });
21
+ };
22
+
23
+ return (
24
+ <section className={'relative h-auto w-full'}>
25
+ <div className={'absolute left-0 top-0 h-[72%] w-full ' + 'max-lg:h-[82%] '}>
26
+ <Image src={BgImg} alt={''} fill className={'h-full w-full object-cover'} />
27
+ </div>
28
+ <SystemWrapper className={'pb-[120px] pt-[170px] max-lg:pb-[52px] max-md:pb-[40px] max-sm:pt-[110px] '}>
29
+ <div className={'mb-[46px] lg:flex lg:flex-row lg:items-center lg:justify-center'}>
30
+ <CategoryMenu isMargin={false} />
31
+ </div>
32
+ <h1
33
+ className={
34
+ 'text-[60px] font-[800] tracking-[-2.4px] ' +
35
+ //1500px
36
+ 'max-3xl:text-[54px] ' +
37
+ //1024px
38
+ 'max-lg:text-[48px] ' +
39
+ //768px
40
+ 'max-md:text-[34px] ' +
41
+ //520px
42
+ 'max-2sm:text-[28px] '
43
+ }
44
+ >
45
+ 대륜만의 조력 시스템
46
+ </h1>
47
+ <span
48
+ className={
49
+ 'relative mt-[100px] block h-[216px] w-full ' +
50
+ //1500px
51
+ 'max-3xl:h-[160px] ' +
52
+ //1024px
53
+ 'max-lg:mt-[72px] max-lg:h-[110px] ' +
54
+ //768px
55
+ 'max-md:mt-[40px] max-md:h-auto '
56
+ }
57
+ >
58
+ {/*링크*/}
59
+ <span className={'absolute left-0 top-0 z-[1] flex h-full w-full gap-[14px]'}>
60
+ {btnList.map(item => (
61
+ <button
62
+ key={'system_btn_' + item.index}
63
+ onMouseEnter={() => setHoverNum(item.index)}
64
+ onMouseLeave={() => setHoverNum(0)}
65
+ onClick={() => {
66
+ handelOnClick(item.title);
67
+ }}
68
+ id={'system_btn_' + item.index}
69
+ className={'h-full flex-1'}
70
+ />
71
+ ))}
72
+ </span>
73
+ <span className={'flex h-full w-full gap-[14px] max-lg:gap-[8px] max-md:gap-[4px]'}>
74
+ {btnList.map(item => (
75
+ <div
76
+ key={'system_btn_bg_' + item.index}
77
+ id={'system_btn_bg_' + item.index}
78
+ className={
79
+ 'relative z-0 flex h-full flex-1 items-center justify-between overflow-hidden px-[48px] transition-[flex,border-radius] duration-300 ' +
80
+ `${hoverNum === item.index ? 'md:flex-[0.72] md:rounded-tr-[100px] ' : ''}` +
81
+ 'max-xl:px-[28px] ' +
82
+ 'max-lg:px-[22px] ' +
83
+ 'max-md:flex-col max-md:gap-[8px] max-md:px-[10px] max-md:py-[16px] max-md:text-center '
84
+ }
85
+ >
86
+ <div
87
+ className={
88
+ 'absolute left-0 top-0 h-full w-full opacity-80 mix-blend-multiply transition-colors duration-300 ' +
89
+ `${hoverNum === item.index ? 'max-md:bg-[#58595B] md:bg-[#04325A] ' : 'bg-[#58595B] '}`
90
+ }
91
+ />
92
+ {item.title === 'system_consultation' ? (
93
+ <Image
94
+ src={ConsultationBtnImg}
95
+ alt={''}
96
+ fill
97
+ className={
98
+ 'absolute left-0 top-0 z-[-1] h-full w-full object-cover object-right'
99
+ }
100
+ />
101
+ ) : item.title === 'system_allocation' ? (
102
+ <Image
103
+ src={AllocationBtnImg}
104
+ alt={''}
105
+ fill
106
+ className={
107
+ 'absolute left-0 top-0 z-[-1] h-full w-full object-cover object-right'
108
+ }
109
+ />
110
+ ) : (
111
+ <Image
112
+ src={PostBtnImg}
113
+ alt={''}
114
+ fill
115
+ className={
116
+ 'absolute left-0 top-0 z-[-1] h-full w-full object-cover object-right'
117
+ }
118
+ />
119
+ )}
120
+
121
+ <p
122
+ className={
123
+ 'relative z-[1] whitespace-pre-wrap text-[32px] font-[800] leading-[1.3] tracking-[-0.96px] text-white ' +
124
+ //1500px
125
+ 'max-3xl:text-[26px] ' +
126
+ //1024px
127
+ 'max-lg:text-[20px] ' +
128
+ //768px
129
+ 'max-md:text-[16px] '
130
+ }
131
+ >
132
+ {item.name}
133
+ </p>
134
+ <div
135
+ className={
136
+ 'z-[1] flex aspect-square w-[48px] items-center justify-center rounded-full bg-white transition-colors duration-300 ' +
137
+ 'max-3xl:w-[38px] ' +
138
+ 'max-lg:w-[28px] ' +
139
+ 'max-md:w-[22px] ' +
140
+ 'max-2sm:w-[16px] ' +
141
+ `${hoverNum === item.index ? 'bg-opacity-100 ' : 'bg-opacity-70 '}`
142
+ }
143
+ >
144
+ <IconArrow
145
+ className={
146
+ 'block aspect-square h-[16px] object-contain pl-[8%] ' +
147
+ 'max-3xl:h-[12px] ' +
148
+ 'max-lg:h-[9px] ' +
149
+ 'max-2sm:h-[5px]'
150
+ }
151
+ />
152
+ </div>
153
+ </div>
154
+ ))}
155
+ </span>
156
+ </span>
157
+ </SystemWrapper>
158
+ </section>
159
+ );
160
+ };
161
+
162
+ export default SystemTitle;
@@ -0,0 +1,8 @@
1
+ import React, { ReactNode } from 'react';
2
+ interface SystemWrapperProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ children: ReactNode;
4
+ className?: string;
5
+ noPaddingY?: boolean;
6
+ }
7
+ declare const SystemWrapper: React.ForwardRefExoticComponent<SystemWrapperProps & React.RefAttributes<HTMLDivElement>>;
8
+ export default SystemWrapper;
@@ -0,0 +1,31 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React, { forwardRef } from 'react';
13
+ const SystemWrapper = forwardRef((_a, ref) => {
14
+ var { children, noPaddingY, className = '' } = _a, others = __rest(_a, ["children", "noPaddingY", "className"]);
15
+ return (<div className={'relative mx-auto w-full max-w-[1920px] ' +
16
+ // PC ( ~ 1500px )
17
+ 'px-[190px] ' +
18
+ // 1500px
19
+ 'max-3xl:px-[80px] ' +
20
+ // 1024px - dev Tablets
21
+ 'max-lg:px-[40px] ' +
22
+ // 900px - design Tablets
23
+ 'max-md2:px-[40px] ' +
24
+ // 520px - dev Mobile ( 320px - design Mobile )
25
+ 'max-2sm:px-[20px] ' +
26
+ className} ref={ref} {...others}>
27
+ {children}
28
+ </div>);
29
+ });
30
+ SystemWrapper.displayName = 'SystemWrapper';
31
+ export default SystemWrapper;
@@ -0,0 +1,38 @@
1
+ import React, { ReactNode, forwardRef } from 'react';
2
+
3
+ interface SystemWrapperProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ children: ReactNode;
5
+ className?: string; // 스타일 추가
6
+ noPaddingY?: boolean;
7
+ }
8
+
9
+ const SystemWrapper = forwardRef<HTMLDivElement, SystemWrapperProps>(
10
+ ({ children, noPaddingY, className = '', ...others }, ref) => {
11
+ return (
12
+ <div
13
+ className={
14
+ 'relative mx-auto w-full max-w-[1920px] ' +
15
+ // PC ( ~ 1500px )
16
+ 'px-[190px] ' +
17
+ // 1500px
18
+ 'max-3xl:px-[80px] ' +
19
+ // 1024px - dev Tablets
20
+ 'max-lg:px-[40px] ' +
21
+ // 900px - design Tablets
22
+ 'max-md2:px-[40px] ' +
23
+ // 520px - dev Mobile ( 320px - design Mobile )
24
+ 'max-2sm:px-[20px] ' +
25
+ className
26
+ }
27
+ ref={ref}
28
+ {...others}
29
+ >
30
+ {children}
31
+ </div>
32
+ );
33
+ }
34
+ );
35
+
36
+ SystemWrapper.displayName = 'SystemWrapper';
37
+
38
+ export default SystemWrapper;