@daeryun/dr_components 0.7.51 → 0.7.53

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 (115) hide show
  1. package/dist/asset/images/lawfirm/balance.svg +19 -0
  2. package/dist/asset/images/lawfirm/certified.svg +33 -0
  3. package/dist/asset/images/lawfirm/checkbox.svg +11 -0
  4. package/dist/asset/images/lawfirm/document.svg +23 -0
  5. package/dist/asset/images/lawfirm/downArrow.svg +5 -0
  6. package/dist/asset/images/lawfirm/picture.svg +12 -0
  7. package/dist/asset/images/lawfirm/section_1_1.webp +0 -0
  8. package/dist/asset/images/lawfirm/section_1_1_m.webp +0 -0
  9. package/dist/asset/images/lawfirm/section_1_2.webp +0 -0
  10. package/dist/asset/images/lawfirm/section_1_3.webp +0 -0
  11. package/dist/asset/images/lawfirm/section_1_3_m.webp +0 -0
  12. package/dist/asset/images/lawfirm/section_1_4.webp +0 -0
  13. package/dist/asset/images/lawfirm/section_1_5.webp +0 -0
  14. package/dist/asset/images/lawfirm/section_1_5_m.webp +0 -0
  15. package/dist/asset/images/lawfirm/section_1_6.webp +0 -0
  16. package/dist/asset/images/lawfirm/section_1_7.webp +0 -0
  17. package/dist/asset/images/lawfirm/section_1_8.webp +0 -0
  18. package/dist/asset/images/lawfirm/section_2.webp +0 -0
  19. package/dist/asset/images/lawfirm/section_2_m.webp +0 -0
  20. package/dist/asset/images/lawfirm/section_3_1.webp +0 -0
  21. package/dist/asset/images/lawfirm/section_3_1_m.webp +0 -0
  22. package/dist/asset/images/lawfirm/section_3_1_t.webp +0 -0
  23. package/dist/asset/images/lawfirm/section_3_2.webp +0 -0
  24. package/dist/asset/images/lawfirm/section_3_2_m.webp +0 -0
  25. package/dist/asset/images/lawfirm/section_3_2_t.webp +0 -0
  26. package/dist/asset/images/lawfirm/section_3_3.webp +0 -0
  27. package/dist/asset/images/lawfirm/section_3_3_m.webp +0 -0
  28. package/dist/asset/images/lawfirm/section_3_3_t.webp +0 -0
  29. package/dist/asset/images/lawfirm/section_3_4.webp +0 -0
  30. package/dist/asset/images/lawfirm/section_3_4_m.webp +0 -0
  31. package/dist/asset/images/lawfirm/section_3_4_t.webp +0 -0
  32. package/dist/asset/images/lawfirm/section_3_5.webp +0 -0
  33. package/dist/asset/images/lawfirm/section_3_5_m.webp +0 -0
  34. package/dist/asset/images/lawfirm/section_3_5_t.webp +0 -0
  35. package/dist/asset/images/lawfirm/section_4.webp +0 -0
  36. package/dist/asset/images/lawfirm/section_4_m.webp +0 -0
  37. package/dist/asset/images/lawfirm/section_5_1.webp +0 -0
  38. package/dist/asset/images/lawfirm/section_5_2.webp +0 -0
  39. package/dist/asset/images/lawfirm/section_5_3.webp +0 -0
  40. package/dist/asset/images/lawfirm/section_5_4.webp +0 -0
  41. package/dist/asset/images/lawfirm/section_5_5.webp +0 -0
  42. package/dist/asset/images/lawfirm/section_5_6.webp +0 -0
  43. package/dist/asset/images/lawfirm/section_6.webp +0 -0
  44. package/dist/asset/images/lawfirm/section_6_m.webp +0 -0
  45. package/dist/asset/images/lawfirm/section_6_t.webp +0 -0
  46. package/dist/asset/images/lawfirm/section_7_1.webp +0 -0
  47. package/dist/asset/images/lawfirm/section_7_2.webp +0 -0
  48. package/dist/asset/images/lawfirm/section_7_3.webp +0 -0
  49. package/dist/asset/images/lawfirm/section_9.webp +0 -0
  50. package/dist/asset/images/lawfirm/section_9_m.webp +0 -0
  51. package/dist/asset/images/lawfirm/section_9_t.webp +0 -0
  52. package/dist/components/PageTitleBox/PageTitleBox.d.ts +6 -2
  53. package/dist/components/PageTitleBox/PageTitleBox.jsx +3 -2
  54. package/dist/components/PageTitleBox/PageTitleBox.tsx +10 -4
  55. package/dist/components/Seo/Lawyer.jsx +1 -1
  56. package/dist/components/Seo/Lawyer.tsx +1 -0
  57. package/dist/components/common/hook/index.d.ts +1 -0
  58. package/dist/components/common/hook/index.js +1 -0
  59. package/dist/components/common/hook/index.ts +1 -0
  60. package/dist/components/{hook → common/hook}/useElementObserve.d.ts +2 -0
  61. package/dist/components/{hook → common/hook}/useElementObserve.js +4 -2
  62. package/dist/components/{hook → common/hook}/useElementObserve.ts +4 -2
  63. package/dist/components/page/Lawfirm/CardSection1.d.ts +14 -0
  64. package/dist/components/page/Lawfirm/CardSection1.jsx +41 -0
  65. package/dist/components/page/Lawfirm/CardSection1.tsx +101 -0
  66. package/dist/components/page/Lawfirm/CardSection3.d.ts +17 -0
  67. package/dist/components/page/Lawfirm/CardSection3.jsx +45 -0
  68. package/dist/components/page/Lawfirm/CardSection3.tsx +132 -0
  69. package/dist/components/page/Lawfirm/CardSection5.d.ts +10 -0
  70. package/dist/components/page/Lawfirm/CardSection5.jsx +26 -0
  71. package/dist/components/page/Lawfirm/CardSection5.tsx +38 -0
  72. package/dist/components/page/Lawfirm/CardSection7.d.ts +12 -0
  73. package/dist/components/page/Lawfirm/CardSection7.jsx +21 -0
  74. package/dist/components/page/Lawfirm/CardSection7.tsx +46 -0
  75. package/dist/components/page/Lawfirm/Lawfirm.d.ts +2 -0
  76. package/dist/components/page/Lawfirm/Lawfirm.jsx +28 -0
  77. package/dist/components/page/Lawfirm/Lawfirm.stories.d.ts +6 -0
  78. package/dist/components/page/Lawfirm/Lawfirm.stories.jsx +14 -0
  79. package/dist/components/page/Lawfirm/Lawfirm.stories.tsx +21 -0
  80. package/dist/components/page/Lawfirm/Lawfirm.tsx +34 -0
  81. package/dist/components/page/Lawfirm/Section1.d.ts +5 -0
  82. package/dist/components/page/Lawfirm/Section1.jsx +114 -0
  83. package/dist/components/page/Lawfirm/Section1.tsx +221 -0
  84. package/dist/components/page/Lawfirm/Section2.d.ts +5 -0
  85. package/dist/components/page/Lawfirm/Section2.jsx +81 -0
  86. package/dist/components/page/Lawfirm/Section2.tsx +121 -0
  87. package/dist/components/page/Lawfirm/Section3.d.ts +8 -0
  88. package/dist/components/page/Lawfirm/Section3.jsx +213 -0
  89. package/dist/components/page/Lawfirm/Section3.tsx +274 -0
  90. package/dist/components/page/Lawfirm/Section4.d.ts +5 -0
  91. package/dist/components/page/Lawfirm/Section4.jsx +45 -0
  92. package/dist/components/page/Lawfirm/Section4.tsx +75 -0
  93. package/dist/components/page/Lawfirm/Section5.d.ts +8 -0
  94. package/dist/components/page/Lawfirm/Section5.jsx +135 -0
  95. package/dist/components/page/Lawfirm/Section5.tsx +174 -0
  96. package/dist/components/page/Lawfirm/Section6.d.ts +3 -0
  97. package/dist/components/page/Lawfirm/Section6.jsx +41 -0
  98. package/dist/components/page/Lawfirm/Section6.tsx +66 -0
  99. package/dist/components/page/Lawfirm/Section7.d.ts +5 -0
  100. package/dist/components/page/Lawfirm/Section7.jsx +136 -0
  101. package/dist/components/page/Lawfirm/Section7.tsx +201 -0
  102. package/dist/components/page/Lawfirm/Section8.d.ts +5 -0
  103. package/dist/components/page/Lawfirm/Section8.jsx +110 -0
  104. package/dist/components/page/Lawfirm/Section8.tsx +145 -0
  105. package/dist/components/page/Lawfirm/Section9.d.ts +3 -0
  106. package/dist/components/page/Lawfirm/Section9.jsx +36 -0
  107. package/dist/components/page/Lawfirm/Section9.tsx +70 -0
  108. package/dist/components/page/Lawfirm/lawfirm.module.css +541 -0
  109. package/dist/components/page/index.d.ts +1 -0
  110. package/dist/components/page/index.js +1 -0
  111. package/dist/components/page/index.ts +1 -0
  112. package/dist/styles/globals.css +1491 -16
  113. package/dist/styles/observe.module.css +19 -0
  114. package/dist/tsconfig.tsbuildinfo +1 -1
  115. package/package.json +1 -1
@@ -0,0 +1,221 @@
1
+ import Image from 'next/image';
2
+ import React, { useEffect, useRef, useState } from 'react';
3
+ import style from './lawfirm.module.css';
4
+ import useElementObserve from '../../common/hook/useElementObserve';
5
+ import CardSection1 from './CardSection1';
6
+ import Section_1_1 from '../../../asset/images/lawfirm/section_1_1.webp';
7
+ import Section_1_1_m from '../../../asset/images/lawfirm/section_1_1_m.webp';
8
+ import Section_1_2 from '../../../asset/images/lawfirm/section_1_2.webp';
9
+ import Section_1_3 from '../../../asset/images/lawfirm/section_1_3.webp';
10
+ import Section_1_3_m from '../../../asset/images/lawfirm/section_1_3_m.webp';
11
+ import Section_1_4 from '../../../asset/images/lawfirm/section_1_4.webp';
12
+ import Section_1_5 from '../../../asset/images/lawfirm/section_1_5.webp';
13
+ import Section_1_5_m from '../../../asset/images/lawfirm/section_1_5_m.webp';
14
+ import Section_1_6 from '../../../asset/images/lawfirm/section_1_6.webp';
15
+ import Section_1_7 from '../../../asset/images/lawfirm/section_1_7.webp';
16
+ import Section_1_8 from '../../../asset/images/lawfirm/section_1_8.webp';
17
+
18
+ const Section1 = ({ CommonPadding }: { CommonPadding: string }) => {
19
+ const target1Ref = useRef<HTMLDivElement>(null);
20
+ const target2Ref = useRef<HTMLDivElement>(null);
21
+ const target3Ref = useRef<HTMLDivElement>(null);
22
+ const target4Ref = useRef<HTMLDivElement>(null);
23
+ const { flag: flag1, flagFastClass: div1Class } = useElementObserve(target1Ref, 0.2);
24
+ const { flag: flag2, flagFastClass: div2Class } = useElementObserve(target2Ref, 1);
25
+ const { flag: flag3, flagFastClass: div3Class } = useElementObserve(target3Ref, 1);
26
+ const { flag: flag4, flagFastClass: div4Class } = useElementObserve(target4Ref, 0.6);
27
+
28
+ // 이미지 페이드
29
+ const [fade1, setFade1] = useState(false);
30
+ const [fade2, setFade2] = useState(false);
31
+ const [fade3, setFade3] = useState(false);
32
+
33
+ useEffect(() => {
34
+ if (flag1) {
35
+ let img1 = setTimeout(() => {
36
+ setFade1(true);
37
+ }, 550);
38
+
39
+ return () => {
40
+ clearTimeout(img1);
41
+ };
42
+ }
43
+ }, [flag1]);
44
+
45
+ useEffect(() => {
46
+ if (flag2) {
47
+ let img2 = setTimeout(() => {
48
+ setFade2(true);
49
+ }, 550);
50
+
51
+ return () => {
52
+ clearTimeout(img2);
53
+ };
54
+ }
55
+ }, [flag2]);
56
+
57
+ useEffect(() => {
58
+ if (flag3) {
59
+ let img3 = setTimeout(() => {
60
+ setFade3(true);
61
+ }, 550);
62
+
63
+ return () => {
64
+ clearTimeout(img3);
65
+ };
66
+ }
67
+ }, [flag3]);
68
+
69
+ return (
70
+ <>
71
+ <section
72
+ className={
73
+ CommonPadding +
74
+ ` max flex flex-col gap-y-[30px] py-[180px] tracking-[-1.92px] max-xl:pb-[120px] max-xl:pt-20 max-sm:pb-[40px]`
75
+ }
76
+ >
77
+ <CardSection1
78
+ fade={fade1}
79
+ minStep={1}
80
+ title="중소로펌, 1인 변호사 전담 구조"
81
+ subtitle="로펌 1.0"
82
+ tags={['과중한 업무', '느린 대응', '잦은 실수', '변호사 개인 역량에 의존']}
83
+ image1={Section_1_1}
84
+ image2={Section_1_2}
85
+ imageMo={Section_1_1_m}
86
+ divClass={div1Class}
87
+ observeRef={target1Ref}
88
+ />
89
+ <CardSection1
90
+ fade={fade2}
91
+ minStep={2}
92
+ title="대형로펌 시스템"
93
+ subtitle="로펌 2.0"
94
+ tags={['고비용', '낮은 접근성', '전관 중심', '상담·서면·재판 분리']}
95
+ image1={Section_1_3}
96
+ image2={Section_1_4}
97
+ imageMo={Section_1_3_m}
98
+ divClass={div2Class}
99
+ observeRef={target2Ref}
100
+ />
101
+ <CardSection1
102
+ fade={fade3}
103
+ minStep={3}
104
+ title="한국형 네트워크 로펌"
105
+ subtitle="로펌 2.5"
106
+ tags={['사무소별 소통 부족', '책임 소재 불명확', '품질의 비일관성', '허위·과장광고']}
107
+ image1={Section_1_5}
108
+ image2={Section_1_6}
109
+ imageMo={Section_1_5_m}
110
+ divClass={div3Class}
111
+ observeRef={target3Ref}
112
+ />
113
+ <div ref={target4Ref} className={`${div4Class}`}>
114
+ <div
115
+ className={` ${style.borderGradientAnimated} relative h-[500px] w-full overflow-hidden max-xl:h-[400px] max-md:h-[380px]`}
116
+ >
117
+ <div className="relative z-10 h-full w-full overflow-hidden rounded-[28px] bg-white px-[160px] py-20 max-5xl:px-[60px] max-xl:px-10 max-xl:py-[60px] max-md:px-5 max-md:py-10">
118
+ <div
119
+ className={
120
+ 'relative z-20 flex h-full w-fit flex-col justify-between max-md:w-full max-md:justify-normal max-md:gap-y-10'
121
+ }
122
+ >
123
+ <p className={'z-20 flex flex-col py-8 font-[SUIT] max-xl:py-0'}>
124
+ <span
125
+ className={
126
+ 'text-[32px] font-extrabold max-xl:text-[28px] max-sm:text-xl max-2sm:text-[16px]'
127
+ }
128
+ >
129
+ 대륜형 글로벌 로펌 시스템
130
+ </span>
131
+ <span
132
+ className={
133
+ 'text-7xl font-extrabold max-xl:text-5xl max-sm:text-[40px] max-2sm:text-[32px]'
134
+ }
135
+ >
136
+ 로펌 3.0
137
+ </span>
138
+ </p>
139
+ <p
140
+ className={
141
+ 'z-20 flex w-[500px] flex-wrap gap-x-[10px] gap-y-4 max-3xl:gap-x-2 max-3xl:gap-y-[10px] max-md:w-[400px]'
142
+ }
143
+ >
144
+ {[
145
+ '실력 중심',
146
+ '상담·서면·재판 원팀 수행',
147
+ '전국적·국제적 대응체계',
148
+ '합리적 비용'
149
+ ].map((tag, idx) => (
150
+ <span
151
+ key={idx}
152
+ className="max-2sm::px-3 h-fit w-fit rounded-full border border-solid border-black px-5 py-1 text-[28px] font-medium leading-[160%] max-xl:px-4 max-xl:text-xl max-2sm:py-[6px] max-2sm:text-[16px] max-2sm:leading-[100%]"
153
+ >
154
+ {tag}
155
+ </span>
156
+ ))}
157
+ </p>
158
+ </div>
159
+ <div className={'absolute left-0 top-0 h-full w-full'}>
160
+ <div className={'relative h-full w-full'}>
161
+ <Image
162
+ src={Section_1_7}
163
+ alt=""
164
+ className={style.orbitImage1}
165
+ width={514}
166
+ height={521}
167
+ priority
168
+ />
169
+ <Image
170
+ src={Section_1_7}
171
+ alt=""
172
+ className={style.orbitImage2 + ''}
173
+ width={514}
174
+ height={521}
175
+ priority
176
+ />
177
+ </div>
178
+ </div>
179
+ <div className="absolute bottom-[-30px] left-0 z-10 h-full w-full">
180
+ <div className="absolute bottom-[-155px] right-[-65px] aspect-square w-[590px] max-xl:-bottom-[120px] max-xl:-right-[58px] max-xl:w-[430px] max-md2:-bottom-[127px] max-md2:-right-[118px] max-md:-bottom-[95px] max-md:-right-[85px] max-md:w-[280px]">
181
+ <div className="relative h-full w-full rounded-full border border-solid border-[#FAFAFA]">
182
+ <div
183
+ className={`absolute left-1/2 top-1/2 -ml-[295px] -mt-[295px] h-full w-full max-xl:-ml-[214px] max-xl:-mt-[215px] max-md2:-ml-[215px] max-md2:-mt-[214px] max-md:-ml-[139px] max-md:-mt-[140px] ${style.rotateStepPause}`}
184
+ style={{ transformOrigin: '50% 50%' }}
185
+ >
186
+ <div
187
+ className="absolute h-4 w-4 rounded-full bg-[#FAFAFA] max-xl:h-3 max-xl:w-3 max-md:h-2 max-md:w-2"
188
+ style={{ left: '50%', top: 0, transform: 'translate(-50%, -50%)' }}
189
+ />
190
+ <div
191
+ className="absolute h-4 w-4 rounded-full bg-[#FAFAFA] max-xl:h-3 max-xl:w-3 max-md:h-2 max-md:w-2"
192
+ style={{ left: '100%', top: '50%', transform: 'translate(-50%, -50%)' }}
193
+ />
194
+ <div
195
+ className="absolute h-4 w-4 rounded-full bg-[#FAFAFA] max-xl:h-3 max-xl:w-3 max-md:h-2 max-md:w-2"
196
+ style={{ left: '50%', top: '100%', transform: 'translate(-50%, -50%)' }}
197
+ />
198
+ <div
199
+ className="absolute h-4 w-4 rounded-full bg-[#FAFAFA] max-xl:h-3 max-xl:w-3 max-md:h-2 max-md:w-2"
200
+ style={{ left: 0, top: '50%', transform: 'translate(-50%, -50%)' }}
201
+ />
202
+ </div>
203
+ </div>
204
+ </div>
205
+ <Image
206
+ src={Section_1_8}
207
+ className="absolute bottom-0 right-0 h-fit w-[499px] max-xl:w-[345px] max-md2:-right-12 max-md:-bottom-4 max-md:w-[230px]"
208
+ width={500}
209
+ height={369}
210
+ alt=""
211
+ priority
212
+ />
213
+ </div>
214
+ </div>
215
+ </div>
216
+ </div>
217
+ </section>
218
+ </>
219
+ );
220
+ };
221
+ export default Section1;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const Section2: ({ CommonPadding }: {
3
+ CommonPadding: string;
4
+ }) => React.JSX.Element;
5
+ export default Section2;
@@ -0,0 +1,81 @@
1
+ import Image from 'next/image';
2
+ import React, { useEffect, useRef, useState } from 'react';
3
+ import style from './lawfirm.module.css';
4
+ import useElementObserve from '../../common/hook/useElementObserve';
5
+ import Section_2 from '../../../asset/images/lawfirm/section_2.webp';
6
+ import Section_2_m from '../../../asset/images/lawfirm/section_2_m.webp';
7
+ const Section2 = ({ CommonPadding }) => {
8
+ const phrases = ['기존의', '네트워크', '로펌 구조를', '넘어서'];
9
+ const [activeIndex, setActiveIndex] = useState(-1);
10
+ const [showNewPhrase, setShowNewPhrase] = useState(false);
11
+ const [showGradient, setShowGradient] = useState(false);
12
+ const targetRef = useRef(null);
13
+ const target2Ref = useRef(null);
14
+ const { flag, flagFastClass: divClass } = useElementObserve(targetRef, 0.3);
15
+ const { flag: flag2 } = useElementObserve(target2Ref, 0.4);
16
+ // 애니메이션 시작
17
+ useEffect(() => {
18
+ if (!flag2)
19
+ return;
20
+ if (activeIndex < phrases.length - 1) {
21
+ const timer = setTimeout(() => setActiveIndex(prev => prev + 1), 600);
22
+ return () => clearTimeout(timer);
23
+ }
24
+ else if (!showNewPhrase) {
25
+ const timer = setTimeout(() => setShowNewPhrase(true), 900);
26
+ return () => clearTimeout(timer);
27
+ }
28
+ }, [activeIndex, showNewPhrase, flag2, phrases.length]);
29
+ useEffect(() => {
30
+ if (!flag2 || !showNewPhrase)
31
+ return;
32
+ const timer = setTimeout(() => setShowGradient(true), 500);
33
+ return () => clearTimeout(timer);
34
+ }, [showNewPhrase, flag2]);
35
+ return (<>
36
+ <section className="relative flex h-[780px] w-full flex-col items-center gap-y-[194px] pb-[200px] tracking-[-1.92px] max-xl:h-[614px] max-xl:gap-y-20 max-xl:pb-[160px] max-sm:h-[568px] max-sm:gap-y-10 max-sm:pb-[120px]">
37
+ <div className="absolute top-0 h-[500px] w-full max-xl:h-[328px] max-sm:h-[222px]">
38
+ <Image src={Section_2} className="block object-cover max-sm:hidden 6xl:object-center full:object-fill" fill unoptimized sizes="100vw" alt=""/>{' '}
39
+ <Image src={Section_2_m} className="hidden object-cover max-sm:block" fill unoptimized sizes="100vw" alt=""/>
40
+ <div className="absolute bottom-0 right-0 h-[30px] w-full bg-gradient-to-b from-white/0 to-white"/>
41
+ <div className="absolute right-0 top-0 h-[30px] w-full bg-gradient-to-b from-white to-white/0"/>
42
+ </div>
43
+ <div ref={targetRef} className={`${divClass} z-20 flex flex-col text-center text-black max-xl:h-[254px] max-xl:py-20 max-xl:leading-[52px] max-sm:h-[222px] max-sm:gap-y-1 max-sm:leading-10`}>
44
+ <span className="text-[40px] font-normal max-xl:text-[32px] max-sm:text-xl">
45
+ 대륜의 새로운 수식어
46
+ </span>
47
+ <span className={`${style.animateGradientX} text-[80px] font-extrabold max-xl:text-[52px] max-sm:text-[32px]`}>
48
+ 글로벌 메가 로펌.
49
+ </span>
50
+ </div>
51
+
52
+ <div ref={target2Ref} className={`h-[200px] flex-col items-center justify-between overflow-hidden text-[52px] font-extrabold max-xl:h-[120px] max-xl:text-4xl max-sm:flex max-sm:h-[186px] max-sm:text-2xl`}>
53
+ <p className={'flex flex-wrap items-center justify-center gap-y-[2px] max-sm:w-[170px]'}>
54
+ {phrases.map((word, i) => (<span key={i} className={`${style.word} ${activeIndex !== -1 && i <= activeIndex ? style.active : ''} mx-[6px] max-sm:mx-[2px]`} data-text={word}>
55
+ {word}
56
+ </span>))}
57
+ </p>
58
+ {showNewPhrase && (<div className={style.slideFadeIn + ' mt-6 max-sm:w-[250px]'}>
59
+ <p className={'text-center'}>
60
+ 법률 시장의 <br className="hidden max-sm:block"/>
61
+ <span className={'parent relative mb-2 inline-block max-sm:mt-[10px]'}>
62
+ {showGradient && (<span className={style.dotWave}>
63
+ {[...Array(5)].map((_, i) => (<span key={i} className={`${style.dot} ${style[`dot${i + 1}`]} `}>
64
+ .
65
+ </span>))}
66
+ </span>)}
67
+ <span className={`${style.blackText} ${showGradient ? style.fadeOut : ''}`}>
68
+ 새로운 기준
69
+ </span>
70
+ <span className={`${style.gradientText} ${showGradient ? style.visible : ''}`}>
71
+ 새로운 기준
72
+ </span>
73
+ </span>
74
+ 을 만들어갑니다
75
+ </p>
76
+ </div>)}
77
+ </div>
78
+ </section>
79
+ </>);
80
+ };
81
+ export default Section2;
@@ -0,0 +1,121 @@
1
+ import Image from 'next/image';
2
+ import React, { useEffect, useRef, useState } from 'react';
3
+ import style from './lawfirm.module.css';
4
+ import useElementObserve from '../../common/hook/useElementObserve';
5
+ import Section_2 from '../../../asset/images/lawfirm/section_2.webp';
6
+ import Section_2_m from '../../../asset/images/lawfirm/section_2_m.webp';
7
+
8
+ const Section2 = ({ CommonPadding }: { CommonPadding: string }) => {
9
+ const phrases = ['기존의', '네트워크', '로펌 구조를', '넘어서'];
10
+ const [activeIndex, setActiveIndex] = useState(-1);
11
+ const [showNewPhrase, setShowNewPhrase] = useState(false);
12
+ const [showGradient, setShowGradient] = useState(false);
13
+ const targetRef = useRef<HTMLDivElement>(null);
14
+ const target2Ref = useRef<HTMLDivElement>(null);
15
+ const { flag, flagFastClass: divClass } = useElementObserve(targetRef, 0.3);
16
+ const { flag: flag2 } = useElementObserve(target2Ref, 0.4);
17
+
18
+ // 애니메이션 시작
19
+ useEffect(() => {
20
+ if (!flag2) return;
21
+
22
+ if (activeIndex < phrases.length - 1) {
23
+ const timer = setTimeout(() => setActiveIndex(prev => prev + 1), 600);
24
+ return () => clearTimeout(timer);
25
+ } else if (!showNewPhrase) {
26
+ const timer = setTimeout(() => setShowNewPhrase(true), 900);
27
+ return () => clearTimeout(timer);
28
+ }
29
+ }, [activeIndex, showNewPhrase, flag2, phrases.length]);
30
+
31
+ useEffect(() => {
32
+ if (!flag2 || !showNewPhrase) return;
33
+ const timer = setTimeout(() => setShowGradient(true), 500);
34
+ return () => clearTimeout(timer);
35
+ }, [showNewPhrase, flag2]);
36
+
37
+ return (
38
+ <>
39
+ <section className="relative flex h-[780px] w-full flex-col items-center gap-y-[194px] pb-[200px] tracking-[-1.92px] max-xl:h-[614px] max-xl:gap-y-20 max-xl:pb-[160px] max-sm:h-[568px] max-sm:gap-y-10 max-sm:pb-[120px]">
40
+ <div className="absolute top-0 h-[500px] w-full max-xl:h-[328px] max-sm:h-[222px]">
41
+ <Image
42
+ src={Section_2}
43
+ className="block object-cover max-sm:hidden 6xl:object-center full:object-fill"
44
+ fill
45
+ unoptimized
46
+ sizes="100vw"
47
+ alt=""
48
+ />{' '}
49
+ <Image
50
+ src={Section_2_m}
51
+ className="hidden object-cover max-sm:block"
52
+ fill
53
+ unoptimized
54
+ sizes="100vw"
55
+ alt=""
56
+ />
57
+ <div className="absolute bottom-0 right-0 h-[30px] w-full bg-gradient-to-b from-white/0 to-white" />
58
+ <div className="absolute right-0 top-0 h-[30px] w-full bg-gradient-to-b from-white to-white/0" />
59
+ </div>
60
+ <div
61
+ ref={targetRef}
62
+ className={`${divClass} z-20 flex flex-col text-center text-black max-xl:h-[254px] max-xl:py-20 max-xl:leading-[52px] max-sm:h-[222px] max-sm:gap-y-1 max-sm:leading-10`}
63
+ >
64
+ <span className="text-[40px] font-normal max-xl:text-[32px] max-sm:text-xl">
65
+ 대륜의 새로운 수식어
66
+ </span>
67
+ <span
68
+ className={`${style.animateGradientX} text-[80px] font-extrabold max-xl:text-[52px] max-sm:text-[32px]`}
69
+ >
70
+ 글로벌 메가 로펌.
71
+ </span>
72
+ </div>
73
+
74
+ <div
75
+ ref={target2Ref}
76
+ className={`h-[200px] flex-col items-center justify-between overflow-hidden text-[52px] font-extrabold max-xl:h-[120px] max-xl:text-4xl max-sm:flex max-sm:h-[186px] max-sm:text-2xl`}
77
+ >
78
+ <p className={'flex flex-wrap items-center justify-center gap-y-[2px] max-sm:w-[170px]'}>
79
+ {phrases.map((word, i) => (
80
+ <span
81
+ key={i}
82
+ className={`${style.word} ${
83
+ activeIndex !== -1 && i <= activeIndex ? style.active : ''
84
+ } mx-[6px] max-sm:mx-[2px]`}
85
+ data-text={word}
86
+ >
87
+ {word}
88
+ </span>
89
+ ))}
90
+ </p>
91
+ {showNewPhrase && (
92
+ <div className={style.slideFadeIn + ' mt-6 max-sm:w-[250px]'}>
93
+ <p className={'text-center'}>
94
+ 법률 시장의 <br className="hidden max-sm:block" />
95
+ <span className={'parent relative mb-2 inline-block max-sm:mt-[10px]'}>
96
+ {showGradient && (
97
+ <span className={style.dotWave}>
98
+ {[...Array(5)].map((_, i) => (
99
+ <span key={i} className={`${style.dot} ${style[`dot${i + 1}`]} `}>
100
+ .
101
+ </span>
102
+ ))}
103
+ </span>
104
+ )}
105
+ <span className={`${style.blackText} ${showGradient ? style.fadeOut : ''}`}>
106
+ 새로운 기준
107
+ </span>
108
+ <span className={`${style.gradientText} ${showGradient ? style.visible : ''}`}>
109
+ 새로운 기준
110
+ </span>
111
+ </span>
112
+ 을 만들어갑니다
113
+ </p>
114
+ </div>
115
+ )}
116
+ </div>
117
+ </section>
118
+ </>
119
+ );
120
+ };
121
+ export default Section2;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import 'swiper/css';
3
+ import 'swiper/css/navigation';
4
+ import 'swiper/css/pagination';
5
+ declare const Section3: ({ CommonPadding }: {
6
+ CommonPadding: string;
7
+ }) => React.JSX.Element;
8
+ export default Section3;
@@ -0,0 +1,213 @@
1
+ import React, { useEffect, useRef } from 'react';
2
+ import CardSection3 from './CardSection3';
3
+ import useElementObserve from '../../common/hook/useElementObserve';
4
+ import style from './lawfirm.module.css';
5
+ import { SwiperSlide } from 'swiper/react';
6
+ import { Swiper } from 'swiper';
7
+ import { Autoplay, Pagination } from 'swiper/modules';
8
+ import 'swiper/css';
9
+ import 'swiper/css/navigation';
10
+ import 'swiper/css/pagination';
11
+ import useBrowser from '../../hook/useBrowser';
12
+ import Section_3_1 from '../../../asset/images/lawfirm/section_3_1.webp';
13
+ import Section_3_1_m from '../../../asset/images/lawfirm/section_3_1_m.webp';
14
+ import Section_3_1_t from '../../../asset/images/lawfirm/section_3_1_t.webp';
15
+ import Section_3_2 from '../../../asset/images/lawfirm/section_3_2.webp';
16
+ import Section_3_2_m from '../../../asset/images/lawfirm/section_3_2_m.webp';
17
+ import Section_3_2_t from '../../../asset/images/lawfirm/section_3_2_t.webp';
18
+ import Section_3_3 from '../../../asset/images/lawfirm/section_3_3.webp';
19
+ import Section_3_3_m from '../../../asset/images/lawfirm/section_3_3_m.webp';
20
+ import Section_3_3_t from '../../../asset/images/lawfirm/section_3_3_t.webp';
21
+ import Section_3_4 from '../../../asset/images/lawfirm/section_3_4.webp';
22
+ import Section_3_4_m from '../../../asset/images/lawfirm/section_3_4_m.webp';
23
+ import Section_3_4_t from '../../../asset/images/lawfirm/section_3_4_t.webp';
24
+ import Section_3_5 from '../../../asset/images/lawfirm/section_3_5.webp';
25
+ import Section_3_5_m from '../../../asset/images/lawfirm/section_3_5_m.webp';
26
+ import Section_3_5_t from '../../../asset/images/lawfirm/section_3_5_t.webp';
27
+ const Section3 = ({ CommonPadding }) => {
28
+ const { width } = useBrowser();
29
+ const target1Ref = useRef(null);
30
+ const target2Ref = useRef(null);
31
+ const { flagFastClass: divClass } = useElementObserve(target1Ref, 0.3);
32
+ const { flag: flag2 } = useElementObserve(target2Ref, 0.1);
33
+ const swiper = useRef(null);
34
+ const cards = [
35
+ {
36
+ title: (<>
37
+ 조직 <br className={'hidden max-xl:block'}/>
38
+ 운영 방식
39
+ </>),
40
+ label: '대륜',
41
+ description: (<>
42
+ 원펌 구조, <br className={'hidden max-sm:block'}/>
43
+ 주사무소 책임
44
+ </>),
45
+ compareLabel: '한국형 네트워크 로펌',
46
+ compareDescription: (<>
47
+ 지점별 독립 운영, <br className={'hidden max-sm:block'}/>
48
+ 개별 책임
49
+ </>),
50
+ image: Section_3_1,
51
+ imageTa: Section_3_1_t,
52
+ imageMo: Section_3_1_m,
53
+ imageWidth: 805,
54
+ imageHeight: 275
55
+ },
56
+ {
57
+ title: (<>
58
+ 상담 <br className={'hidden max-xl:block'}/>
59
+ 시스템
60
+ </>),
61
+ label: '대륜',
62
+ description: (<>
63
+ 정확한 초기 진단을 위한 <br className={'hidden max-sm:block'}/>
64
+ 상담변호사 투입 및 <br className={'max-5xl:hidden max-lg2:block max-md2:hidden max-sm:block'}/>
65
+ 변호사 지정 상담 가능
66
+ </>),
67
+ compareLabel: '한국형 네트워크 로펌',
68
+ compareDescription: (<>
69
+ 상담, 서면, 재판 각기 <br className={'hidden max-sm:block'}/>
70
+ 분리 구조로 사건 처리
71
+ </>),
72
+ image: Section_3_2,
73
+ imageTa: Section_3_2_t,
74
+ imageMo: Section_3_2_m,
75
+ imageWidth: 805,
76
+ imageHeight: 275
77
+ },
78
+ {
79
+ title: (<>
80
+ 업무 <br className={'hidden max-xl:block'}/>
81
+ 배당 시스템
82
+ </>),
83
+ label: '대륜',
84
+ description: (<>
85
+ 내부 빅데이터 및
86
+ <br />
87
+ AI 분석 기반 전문가 <br className={'hidden max-sm:block'}/>
88
+ TF 배당
89
+ </>),
90
+ compareLabel: '한국형 네트워크 로펌',
91
+ compareDescription: (<>
92
+ 사무소별 상황에 따른 <br className={'hidden max-sm:block'}/>
93
+ 수동 배정
94
+ </>),
95
+ image: Section_3_3,
96
+ imageTa: Section_3_3_t,
97
+ imageMo: Section_3_3_m,
98
+ imageWidth: 805,
99
+ imageHeight: 275
100
+ },
101
+ {
102
+ title: (<>
103
+ 고객 <br className={'hidden max-xl:block'}/>
104
+ 대응 체계
105
+ </>),
106
+ label: '대륜',
107
+ description: (<>
108
+ 상담부터 진단, <br className={'hidden max-sm:block'}/>
109
+ 배당, 사후관리까지
110
+ <br />
111
+ 통합 시스템 운영
112
+ </>),
113
+ compareLabel: '한국형 네트워크 로펌',
114
+ compareDescription: (<>
115
+ 담당자 역량에 따른 <br className={'hidden max-sm:block'}/>
116
+ 편차 발생
117
+ </>),
118
+ image: Section_3_4,
119
+ imageTa: Section_3_4_t,
120
+ imageMo: Section_3_4_m,
121
+ imageWidth: 805,
122
+ imageHeight: 275
123
+ },
124
+ {
125
+ title: (<>
126
+ 글로벌 <br className={'hidden max-xl:block'}/>
127
+ 스탠더드 부합
128
+ </>),
129
+ label: '대륜',
130
+ description: (<>
131
+ 미국 메가 로펌의 <br className={'hidden max-sm:block'}/>
132
+ 선진화된 시스템 도입
133
+ </>),
134
+ compareLabel: '한국형 네트워크 로펌',
135
+ compareDescription: (<>
136
+ 국내 관행 중심 <br className={'hidden max-sm:block'}/>
137
+ 운영
138
+ </>),
139
+ image: Section_3_5,
140
+ imageTa: Section_3_5_t,
141
+ imageMo: Section_3_5_m,
142
+ imageWidth: 1640,
143
+ imageHeight: 500,
144
+ isFullWidth: true
145
+ }
146
+ ];
147
+ useEffect(() => {
148
+ if (width > 640)
149
+ return;
150
+ swiper.current = new Swiper('#swiper-container-sec3-m', {
151
+ spaceBetween: 20,
152
+ slidesPerView: 1,
153
+ loop: false,
154
+ autoplay: { delay: 3500, disableOnInteraction: false },
155
+ pagination: {
156
+ clickable: true,
157
+ el: '.sec3-pagination',
158
+ bulletClass: style.bullet,
159
+ bulletActiveClass: style.bulletActive,
160
+ renderBullet: (index, className) => {
161
+ return `<div class="${className} custom-bullet"></div>`;
162
+ }
163
+ },
164
+ breakpoints: {
165
+ 520: {
166
+ spaceBetween: 20,
167
+ slidesPerView: 1
168
+ },
169
+ 640: {
170
+ spaceBetween: 40,
171
+ slidesPerView: 1
172
+ }
173
+ },
174
+ modules: [Pagination, Autoplay]
175
+ });
176
+ return () => {
177
+ if (swiper.current && swiper.current.destroy) {
178
+ swiper.current.destroy();
179
+ }
180
+ };
181
+ }, [width]);
182
+ return (<>
183
+ <section className={'flex h-fit w-full justify-center overflow-hidden bg-gradient-to-b from-[#eeeeee] to-[#eeeeee00] max-sm:to-[#eeeeee1a]'}>
184
+ <div className={CommonPadding +
185
+ ` flex flex-col items-center gap-y-[180px] py-[180px] tracking-[-1.92px] max-xl:gap-y-[80px] max-xl:py-[120px] max-sm:gap-y-[60px] max-sm:py-[60px]`}>
186
+ <p ref={target1Ref} className={`${divClass} text-center text-[72px] font-extrabold max-xl:text-5xl max-md:text-[40px] max-sm:text-[28px] max-sm:leading-8 `}>
187
+ 왜 대륜은 <br className={'hidden max-sm:block'}/>
188
+ ‘글로벌 메가 로펌’인가.
189
+ </p>
190
+ {/*pc*/}
191
+ <div ref={target2Ref} className={'h-fit w-full'}>
192
+ <ol className={`grid w-full grid-cols-2 gap-[30px] max-xl:grid-cols-1 max-sm:hidden`}>
193
+ {cards.map((card, index) => (<CardSection3 key={index} {...card} className={flag2 ? style.fadeInUp : 'opacity-0'} style={flag2 ? { animationDelay: `${index * 0.4}s` } : {}}/>))}
194
+ </ol>
195
+ {/*모바일*/}
196
+ <div className={`hidden w-full max-sm:block`}>
197
+ <div id={'swiper-container-sec3-m'}>
198
+ <ol className={'swiper-wrapper '}>
199
+ {cards.map((card, index) => {
200
+ return (<SwiperSlide key={index}>
201
+ <CardSection3 key={index} {...card} className={flag2 ? style.fadeInUp : 'opacity-0'}/>
202
+ </SwiperSlide>);
203
+ })}
204
+ </ol>
205
+ </div>
206
+ <div className={`sec3-pagination mx-auto mt-10 flex !w-fit justify-center space-x-4 rounded-full bg-[#F4F3F6] px-5 py-4 md:hidden`}/>
207
+ </div>
208
+ </div>
209
+ </div>
210
+ </section>
211
+ </>);
212
+ };
213
+ export default Section3;