@daeryun/dr_components 0.7.52 → 0.7.54

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/common/hook/index.d.ts +1 -0
  56. package/dist/components/common/hook/index.js +1 -0
  57. package/dist/components/common/hook/index.ts +1 -0
  58. package/dist/components/{hook → common/hook}/useElementObserve.d.ts +2 -0
  59. package/dist/components/{hook → common/hook}/useElementObserve.js +4 -2
  60. package/dist/components/{hook → common/hook}/useElementObserve.ts +4 -2
  61. package/dist/components/page/Lawfirm/CardSection1.d.ts +14 -0
  62. package/dist/components/page/Lawfirm/CardSection1.jsx +41 -0
  63. package/dist/components/page/Lawfirm/CardSection1.tsx +101 -0
  64. package/dist/components/page/Lawfirm/CardSection3.d.ts +17 -0
  65. package/dist/components/page/Lawfirm/CardSection3.jsx +45 -0
  66. package/dist/components/page/Lawfirm/CardSection3.tsx +132 -0
  67. package/dist/components/page/Lawfirm/CardSection5.d.ts +10 -0
  68. package/dist/components/page/Lawfirm/CardSection5.jsx +26 -0
  69. package/dist/components/page/Lawfirm/CardSection5.tsx +38 -0
  70. package/dist/components/page/Lawfirm/CardSection7.d.ts +12 -0
  71. package/dist/components/page/Lawfirm/CardSection7.jsx +21 -0
  72. package/dist/components/page/Lawfirm/CardSection7.tsx +46 -0
  73. package/dist/components/page/Lawfirm/Lawfirm.d.ts +2 -0
  74. package/dist/components/page/Lawfirm/Lawfirm.jsx +28 -0
  75. package/dist/components/page/Lawfirm/Lawfirm.stories.d.ts +6 -0
  76. package/dist/components/page/Lawfirm/Lawfirm.stories.jsx +14 -0
  77. package/dist/components/page/Lawfirm/Lawfirm.stories.tsx +21 -0
  78. package/dist/components/page/Lawfirm/Lawfirm.tsx +34 -0
  79. package/dist/components/page/Lawfirm/Section1.d.ts +5 -0
  80. package/dist/components/page/Lawfirm/Section1.jsx +114 -0
  81. package/dist/components/page/Lawfirm/Section1.tsx +221 -0
  82. package/dist/components/page/Lawfirm/Section2.d.ts +5 -0
  83. package/dist/components/page/Lawfirm/Section2.jsx +81 -0
  84. package/dist/components/page/Lawfirm/Section2.tsx +121 -0
  85. package/dist/components/page/Lawfirm/Section3.d.ts +8 -0
  86. package/dist/components/page/Lawfirm/Section3.jsx +213 -0
  87. package/dist/components/page/Lawfirm/Section3.tsx +274 -0
  88. package/dist/components/page/Lawfirm/Section4.d.ts +5 -0
  89. package/dist/components/page/Lawfirm/Section4.jsx +45 -0
  90. package/dist/components/page/Lawfirm/Section4.tsx +75 -0
  91. package/dist/components/page/Lawfirm/Section5.d.ts +8 -0
  92. package/dist/components/page/Lawfirm/Section5.jsx +135 -0
  93. package/dist/components/page/Lawfirm/Section5.tsx +174 -0
  94. package/dist/components/page/Lawfirm/Section6.d.ts +3 -0
  95. package/dist/components/page/Lawfirm/Section6.jsx +41 -0
  96. package/dist/components/page/Lawfirm/Section6.tsx +66 -0
  97. package/dist/components/page/Lawfirm/Section7.d.ts +5 -0
  98. package/dist/components/page/Lawfirm/Section7.jsx +136 -0
  99. package/dist/components/page/Lawfirm/Section7.tsx +201 -0
  100. package/dist/components/page/Lawfirm/Section8.d.ts +5 -0
  101. package/dist/components/page/Lawfirm/Section8.jsx +110 -0
  102. package/dist/components/page/Lawfirm/Section8.tsx +145 -0
  103. package/dist/components/page/Lawfirm/Section9.d.ts +3 -0
  104. package/dist/components/page/Lawfirm/Section9.jsx +36 -0
  105. package/dist/components/page/Lawfirm/Section9.tsx +70 -0
  106. package/dist/components/page/Lawfirm/lawfirm.module.css +541 -0
  107. package/dist/components/page/index.d.ts +1 -0
  108. package/dist/components/page/index.js +1 -0
  109. package/dist/components/page/index.ts +1 -0
  110. package/dist/lib/categoryMenuName.js +3 -0
  111. package/dist/lib/categoryMenuName.ts +2 -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,174 @@
1
+ import React, { useEffect, useRef } from 'react';
2
+ import CardSection5 from './CardSection5';
3
+ import useElementObserve from '../../common/hook/useElementObserve';
4
+ import style from './lawfirm.module.css';
5
+ import useBrowser from '../../hook/useBrowser';
6
+ import { SwiperSlide } from 'swiper/react';
7
+ import { Swiper } from 'swiper';
8
+ import { Autoplay, Pagination } from 'swiper/modules';
9
+ import 'swiper/css';
10
+ import 'swiper/css/navigation';
11
+ import 'swiper/css/pagination';
12
+ import Section_5_1 from '../../../asset/images/lawfirm/section_5_1.webp';
13
+ import Section_5_2 from '../../../asset/images/lawfirm/section_5_2.webp';
14
+ import Section_5_3 from '../../../asset/images/lawfirm/section_5_3.webp';
15
+ import Section_5_4 from '../../../asset/images/lawfirm/section_5_4.webp';
16
+ import Section_5_5 from '../../../asset/images/lawfirm/section_5_5.webp';
17
+ import Section_5_6 from '../../../asset/images/lawfirm/section_5_6.webp';
18
+
19
+ const Section5 = ({ CommonPadding }: { CommonPadding: string }) => {
20
+ const target1Ref = useRef<HTMLDivElement>(null);
21
+ const target2Ref = useRef<HTMLDivElement>(null);
22
+ const { flagFastClass: divClass } = useElementObserve(target1Ref, 0.3);
23
+ const { flag: flag2 } = useElementObserve(target2Ref, 0.1);
24
+ const { width } = useBrowser();
25
+ const swiper = useRef<Swiper | null>(null);
26
+
27
+ const lawFirmSteps = [
28
+ {
29
+ img: Section_5_1,
30
+ title: ['상담변호사가', '상담 진행'],
31
+ desc: ['치열한 경쟁을 통해 선발된 상담변호사가', '상담을 진행합니다']
32
+ },
33
+ {
34
+ img: Section_5_2,
35
+ title: ['상담변호사가', '재판까지 수행'],
36
+ desc: ['상담변호사가 사건의 전 과정을', '책임지고 진행합니다']
37
+ },
38
+ {
39
+ img: Section_5_3,
40
+ title: ['고객이 직접', '사건 수행 변호사 지정'],
41
+ desc: ['원하는 변호사가 있다면', '그 변호사가 재판에 나섭니다']
42
+ },
43
+ {
44
+ img: Section_5_4,
45
+ title: ['상담변호사&지정변호사', '공동 참여'],
46
+ desc: ['상담변호사와 고객이 선택한 변호사가', '함께 협업해 사건을 대응합니다']
47
+ },
48
+ {
49
+ img: Section_5_5,
50
+ title: ['지정변호사가', '상담 및 재판 수행'],
51
+ desc: ['상담변호사가 아닌 원하는 변호사와', '상담부터 함께할 수 있습니다']
52
+ },
53
+ {
54
+ img: Section_5_6,
55
+ title: ['전문 그룹에 맡기는', '확장 대응'],
56
+ desc: ['원하는 변호사와 상담 후 사건을 전문적으로', '수행하는 그룹과 심화 대응이 가능합니다']
57
+ }
58
+ ];
59
+
60
+ useEffect(() => {
61
+ if (width > 640) return;
62
+ swiper.current = new Swiper('#swiper-container-sec5-m', {
63
+ spaceBetween: 20,
64
+ slidesPerView: 1,
65
+ loop: false,
66
+ autoplay: { delay: 3500, disableOnInteraction: false },
67
+ pagination: {
68
+ clickable: true,
69
+ el: '.sec5-pagination',
70
+ bulletClass: style.bullet,
71
+ bulletActiveClass: style.bulletActive,
72
+ renderBullet: (index, className) => {
73
+ return `<div class="${className} custom-bullet"></div>`;
74
+ }
75
+ },
76
+ breakpoints: {
77
+ 520: {
78
+ spaceBetween: 20,
79
+ slidesPerView: 1
80
+ },
81
+ 640: {
82
+ spaceBetween: 40,
83
+ slidesPerView: 1
84
+ }
85
+ },
86
+ modules: [Pagination, Autoplay]
87
+ });
88
+ return () => {
89
+ if (swiper.current && swiper.current.destroy) {
90
+ swiper.current.destroy();
91
+ }
92
+ };
93
+ }, [width]);
94
+
95
+ return (
96
+ <>
97
+ <section
98
+ className={
99
+ CommonPadding +
100
+ ' flex flex-col gap-y-[120px] overflow-hidden py-[180px] tracking-[-1.92px] max-xl:gap-y-20 max-xl:py-[120px] max-sm:gap-y-[60px]'
101
+ }
102
+ >
103
+ <div ref={target1Ref} className={`${divClass} flex flex-col`}>
104
+ <span
105
+ className={
106
+ 'mb-[60px] w-fit border-b border-solid border-black text-[32px] font-extrabold max-xl:mb-10 max-xl:text-2xl max-xl:!leading-[144%] max-xl:tracking-[-0.04em] max-sm:text-xl'
107
+ }
108
+ >
109
+ 고객 맞춤형 조력 시스템
110
+ </span>
111
+ <p
112
+ className={
113
+ 'mb-5 text-[52px] font-extrabold text-[#909090] max-xl:text-[32px] max-xl:leading-[145%] max-xl:tracking-[-0.04em] max-sm:text-[28px]'
114
+ }
115
+ >
116
+ 대륜은 정해진 대로가 아닌 <br className={'hidden max-2sm:block'} />
117
+ <span className={'text-black'}>‘ 고객이 원하는 대로’ </span>
118
+ <br className={'hidden max-2sm:block'} /> 움직입니다
119
+ </p>
120
+ <p
121
+ className={
122
+ 'text-[32px] max-xl:text-2xl max-xl:leading-[140%] max-xl:tracking-[-0.04em] max-sm:text-xl'
123
+ }
124
+ >
125
+ 고객의 니즈와 사건의 특성을 반영해{' '}
126
+ <br className={'hidden max-xl:block max-md:hidden max-2sm:block'} />
127
+ 변호사 구성과 수행 방식까지 선택이 가능한 <br className={'hidden max-2sm:block'} />
128
+ 유연한 시스템을 운영합니다
129
+ </p>
130
+ </div>
131
+ <div className={'w-full'} ref={target2Ref}>
132
+ <ol className="grid w-full grid-cols-3 gap-x-5 gap-y-[77px] max-xl:grid-cols-2 max-xl:gap-y-9 max-sm:hidden max-sm:grid-cols-1 max-sm:gap-y-5">
133
+ {lawFirmSteps.map((item, index) => (
134
+ <CardSection5
135
+ key={index}
136
+ {...item}
137
+ className={flag2 ? style.fadeInUp : 'opacity-0 max-xl:translate-y-0 max-xl:opacity-100'}
138
+ style={
139
+ flag2 && width >= 1280
140
+ ? { animationDelay: width === 1280 ? '0s' : index < 3 ? '0s' : '0.8s' }
141
+ : {}
142
+ }
143
+ />
144
+ ))}
145
+ </ol>
146
+ <div className={`hidden w-full max-sm:block`}>
147
+ <div id={'swiper-container-sec5-m'}>
148
+ <ul className="swiper-wrapper">
149
+ {lawFirmSteps.map((item, i) => (
150
+ <SwiperSlide key={i}>
151
+ <ul className="flex flex-col gap-y-5">
152
+ <CardSection5
153
+ {...item}
154
+ className={
155
+ flag2
156
+ ? style.fadeInUp
157
+ : 'opacity-0 max-xl:translate-y-0 max-xl:opacity-100'
158
+ }
159
+ />
160
+ </ul>
161
+ </SwiperSlide>
162
+ ))}
163
+ </ul>
164
+ </div>
165
+ <div
166
+ className={`sec5-pagination mx-auto mt-10 flex !w-fit justify-center space-x-4 rounded-full bg-[#F4F3F6] px-5 py-4 md:hidden`}
167
+ />
168
+ </div>
169
+ </div>
170
+ </section>
171
+ </>
172
+ );
173
+ };
174
+ export default Section5;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const Section6: () => React.JSX.Element;
3
+ export default Section6;
@@ -0,0 +1,41 @@
1
+ import React from 'react';
2
+ import Image from 'next/image';
3
+ import Link from 'next/link';
4
+ import Section_6 from '../../../asset/images/lawfirm/section_6.webp';
5
+ import Section_6_t from '../../../asset/images/lawfirm/section_6_t.webp';
6
+ import Section_6_m from '../../../asset/images/lawfirm/section_6_m.webp';
7
+ const Section6 = () => {
8
+ return (<>
9
+ <section className={'relative h-[402px] w-full overflow-hidden max-xl:h-[237px] max-2sm:h-[352px]'}>
10
+ <Image src={Section_6} className="absolute bottom-0 right-0 object-cover max-md:hidden" unoptimized fill alt=""/>
11
+ <Image src={Section_6_t} className="hidden object-cover max-md:block max-2sm:hidden" fill alt=""/>
12
+ <Image src={Section_6_m} className="hidden object-fill max-2sm:block" fill alt=""/>
13
+ <div className={'flex h-full w-full flex-col items-center justify-between gap-y-10 py-20 max-xl:gap-y-5 max-xl:py-10 max-2sm:py-[60px]'}>
14
+ <div className={'z-20 font-extrabold'}>
15
+ <p className={'text-center text-[40px] max-xl:text-2xl max-sm:text-[22px] max-2sm:mb-5 max-2sm:text-xl max-2sm:tracking-[-0.04em]'}>
16
+ 당신에게 맞는 <br className={'hidden max-2sm:block'}/>
17
+ 맞춤형 법률 대응.
18
+ </p>
19
+ <p className={'text-center text-[52px] max-xl:text-[32px] max-sm:text-[30px] max-2sm:text-[28px] max-2sm:leading-[130%] max-2sm:tracking-[-0.04em]'}>
20
+ 원하는 방식
21
+ <span className={'font-medium '}>
22
+ 으로 <br className={'hidden max-2sm:block'}/>
23
+ </span>{' '}
24
+ 사건
25
+ <span className={'font-medium'}>을 맡겨보세요</span>
26
+ </p>
27
+ </div>
28
+ <Link href={'/choice'} className="z-20 w-fit rounded-full p-1" style={{
29
+ background: 'linear-gradient(90deg, #3482F6 0%, #A358FB 30%, #E73B6A 55%, #ED4914 100%)'
30
+ }}>
31
+ <div className="rounded-full bg-white p-[1px]">
32
+ <div className="max-xl:px5 flex items-center justify-center rounded-full bg-[linear-gradient(90deg,_#3482F6_0%,_#A358FB_30%,_#E73B6A_55%,_#ED4914_100%)] px-[30px] py-[9px] text-[32px] font-normal text-white max-xl:py-2 max-xl:text-2xl max-sm:text-[22px] max-2sm:text-xl">
33
+ 바로 <span className="ml-1 font-extrabold">상담 예약하기</span>
34
+ </div>
35
+ </div>
36
+ </Link>
37
+ </div>
38
+ </section>
39
+ </>);
40
+ };
41
+ export default Section6;
@@ -0,0 +1,66 @@
1
+ import React from 'react';
2
+ import Image from 'next/image';
3
+ import Link from 'next/link';
4
+ import Section_6 from '../../../asset/images/lawfirm/section_6.webp';
5
+ import Section_6_t from '../../../asset/images/lawfirm/section_6_t.webp';
6
+ import Section_6_m from '../../../asset/images/lawfirm/section_6_m.webp';
7
+
8
+ const Section6 = () => {
9
+ return (
10
+ <>
11
+ <section className={'relative h-[402px] w-full overflow-hidden max-xl:h-[237px] max-2sm:h-[352px]'}>
12
+ <Image
13
+ src={Section_6}
14
+ className="absolute bottom-0 right-0 object-cover max-md:hidden"
15
+ unoptimized
16
+ fill
17
+ alt=""
18
+ />
19
+ <Image src={Section_6_t} className="hidden object-cover max-md:block max-2sm:hidden" fill alt="" />
20
+ <Image src={Section_6_m} className="hidden object-fill max-2sm:block" fill alt="" />
21
+ <div
22
+ className={
23
+ 'flex h-full w-full flex-col items-center justify-between gap-y-10 py-20 max-xl:gap-y-5 max-xl:py-10 max-2sm:py-[60px]'
24
+ }
25
+ >
26
+ <div className={'z-20 font-extrabold'}>
27
+ <p
28
+ className={
29
+ 'text-center text-[40px] max-xl:text-2xl max-sm:text-[22px] max-2sm:mb-5 max-2sm:text-xl max-2sm:tracking-[-0.04em]'
30
+ }
31
+ >
32
+ 당신에게 맞는 <br className={'hidden max-2sm:block'} />
33
+ 맞춤형 법률 대응.
34
+ </p>
35
+ <p
36
+ className={
37
+ 'text-center text-[52px] max-xl:text-[32px] max-sm:text-[30px] max-2sm:text-[28px] max-2sm:leading-[130%] max-2sm:tracking-[-0.04em]'
38
+ }
39
+ >
40
+ 원하는 방식
41
+ <span className={'font-medium '}>
42
+ 으로 <br className={'hidden max-2sm:block'} />
43
+ </span>{' '}
44
+ 사건
45
+ <span className={'font-medium'}>을 맡겨보세요</span>
46
+ </p>
47
+ </div>
48
+ <Link
49
+ href={'/choice'}
50
+ className="z-20 w-fit rounded-full p-1"
51
+ style={{
52
+ background: 'linear-gradient(90deg, #3482F6 0%, #A358FB 30%, #E73B6A 55%, #ED4914 100%)'
53
+ }}
54
+ >
55
+ <div className="rounded-full bg-white p-[1px]">
56
+ <div className="max-xl:px5 flex items-center justify-center rounded-full bg-[linear-gradient(90deg,_#3482F6_0%,_#A358FB_30%,_#E73B6A_55%,_#ED4914_100%)] px-[30px] py-[9px] text-[32px] font-normal text-white max-xl:py-2 max-xl:text-2xl max-sm:text-[22px] max-2sm:text-xl">
57
+ 바로 <span className="ml-1 font-extrabold">상담 예약하기</span>
58
+ </div>
59
+ </div>
60
+ </Link>
61
+ </div>
62
+ </section>
63
+ </>
64
+ );
65
+ };
66
+ export default Section6;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const Section7: ({ CommonPadding }: {
3
+ CommonPadding: string;
4
+ }) => React.JSX.Element;
5
+ export default Section7;
@@ -0,0 +1,136 @@
1
+ import React, { useRef, useState } from 'react';
2
+ import DownArrow from '../../../asset/images/lawfirm/downArrow.svg';
3
+ import CardSection7 from './CardSection7';
4
+ import useElementObserve from '../../common/hook/useElementObserve';
5
+ import style from './lawfirm.module.css';
6
+ import Section_7_1 from '../../../asset/images/lawfirm/section_7_1.webp';
7
+ import Section_7_2 from '../../../asset/images/lawfirm/section_7_2.webp';
8
+ import Section_7_3 from '../../../asset/images/lawfirm/section_7_3.webp';
9
+ const Section7 = ({ CommonPadding }) => {
10
+ const [active, setActive] = useState('system');
11
+ const target1Ref = useRef(null);
12
+ const target2Ref = useRef(null);
13
+ const { flagFastClass: divClass } = useElementObserve(target1Ref, 0.3);
14
+ const { flag: flag2 } = useElementObserve(target2Ref, 0.1);
15
+ const sectionItems = [
16
+ {
17
+ imageSrc: Section_7_1,
18
+ gradient: style.bgGrad1,
19
+ bgColor: 'bg-[#0F0F0F]',
20
+ title: ['정확한', '소송 초기 진단'],
21
+ paragraphs: (<span className="z-20 text-[20px] font-medium text-white/80">
22
+ 대형병원에는 응급의학과 및 병리과 의사가 환자의 초기 처치 및 질병 원인을{' '}
23
+ <br className="hidden max-xl:block max-md2:hidden"/>
24
+ 진단하듯{' '}
25
+ <span className="font-bold text-white">대륜의 상담변호사가 소송 초기 진단과 쟁점 파악</span>에
26
+ 나섭니다.
27
+ </span>)
28
+ },
29
+ {
30
+ imageSrc: Section_7_2,
31
+ gradient: style.bgGrad2,
32
+ title: ['분야별', '전문 변호사 상담'],
33
+ bgColor: 'bg-[#0D233B]',
34
+ paragraphs: (<>
35
+ <span className="z-20 text-[20px] font-medium text-white/80">
36
+ 전문적인 분석 및 법리 검토를 위해{' '}
37
+ <span className="font-bold text-white">해당 분야의 전문 변호사가 고객을 마주</span>
38
+ 합니다. <br className="hidden max-xl:block max-md2:hidden"/> 한 번의 상담으로 놓칠 수 있는
39
+ 쟁점도 다각도로 검토할 수 있습니다.
40
+ </span>
41
+ <span className="z-20 text-[20px] font-medium text-white/80">
42
+ 고객의 희망에 따라 회계사, 세무사, 관세전문위원, 노무사, 변리사 등{' '}
43
+ <span className="font-bold text-white">
44
+ 전문가가 <br className="hidden max-xl:block max-md2:hidden"/> 직접 배석
45
+ </span>
46
+ 합니다.
47
+ </span>
48
+ </>)
49
+ },
50
+ {
51
+ imageSrc: Section_7_3,
52
+ gradient: style.bgGrad3,
53
+ title: ['수행그룹 또는', '담당 TF와 상담'],
54
+ bgColor: 'bg-[#151924]',
55
+ paragraphs: (<>
56
+ <span className="z-20 text-[20px] font-medium text-white/80">
57
+ 해당 사건을 전문적으로 수행하는 그룹 또는 담당 TF와 상담을 진행합니다.
58
+ </span>
59
+ <span className="z-20 text-[20px] font-medium text-white/80">
60
+ 대형병원에서 교수급 협진 및 치료방향을 설정하듯 대륜은{' '}
61
+ <span className="font-bold text-white">
62
+ 전문성을 단계별로 <br className="hidden max-xl:block max-md2:hidden"/> 분리
63
+ </span>
64
+ 하여 <span className="font-bold text-white">정확한 판단과 전략 수립</span>에 나섭니다.
65
+ </span>
66
+ </>)
67
+ }
68
+ ];
69
+ // 스크롤 다운 속도 조절/
70
+ const scrollToId = (id) => {
71
+ const el = document.getElementById(id);
72
+ if (!el)
73
+ return;
74
+ // 20px 위로 조정할지 여부 결정
75
+ const offset = id === 'distribution' ? -60 : 0;
76
+ const targetY = el.getBoundingClientRect().top + window.scrollY + offset;
77
+ const startY = window.scrollY;
78
+ const distance = targetY - startY;
79
+ const duration = 400;
80
+ const startTime = performance.now();
81
+ const animate = (time) => {
82
+ const elapsed = time - startTime;
83
+ const progress = Math.min(elapsed / duration, 1);
84
+ const ease = 1 - Math.pow(1 - progress, 3);
85
+ window.scrollTo(0, startY + distance * ease);
86
+ if (progress < 1) {
87
+ requestAnimationFrame(animate);
88
+ }
89
+ };
90
+ requestAnimationFrame(animate);
91
+ };
92
+ return (<>
93
+ <section className={CommonPadding +
94
+ ' flex flex-col gap-y-[180px] tracking-[-1.92px] max-xl:gap-y-[120px] max-sm:gap-y-[60px]'}>
95
+ <div className={'flex w-full justify-center'}>
96
+ <div id={'system'} className={'grid h-fit w-full max-w-[840px] grid-cols-2 rounded-full border border-solid border-black p-[10px] text-[32px] font-extrabold max-xl:w-[500px] max-xl:p-2 max-xl:text-2xl max-xl:tracking-[-0.04em] max-sm:w-[420px] max-sm:p-1 max-sm:text-xl max-xs:max-w-[320px] max-xs:text-[16px]'} onMouseLeave={() => setActive('system')}>
97
+ <div onMouseEnter={() => setActive('system')} className={`flex h-[65px] w-full cursor-pointer items-center justify-center rounded-full transition-all duration-300 max-xl:h-[54px] max-sm:h-[42px]
98
+ ${active === 'system' ? 'gap-x-5 bg-black text-white max-xl:gap-x-3 max-sm:gap-x-2' : 'gap-x-0 bg-transparent text-black'}
99
+ `} onClick={() => scrollToId('system')}>
100
+ <span className="transition-opacity duration-300">3단계 상담 시스템</span>
101
+ <DownArrow className={`h-[19px] w-[22px] overflow-hidden object-contain transition-all duration-300 ease-in-out max-xl:h-[14px] max-xl:w-3 max-sm:h-[11px] max-sm:w-[11px] ${active === 'system' ? 'ml-2 w-[22px] opacity-100' : 'ml-0 w-0 opacity-0'}`}/>
102
+ </div>
103
+ <div onMouseEnter={() => setActive('distribution')} className={`flex h-[65px] w-full cursor-pointer items-center justify-center rounded-full transition-all duration-300 max-xl:h-[54px] max-sm:h-[42px]
104
+ ${active === 'distribution' ? 'gap-x-5 bg-black text-white max-xl:gap-x-3 max-sm:gap-x-2' : 'gap-x-0 bg-transparent text-black'}
105
+ `} onClick={() => scrollToId('distribution')}>
106
+ <span className={`transition-opacity duration-300 `}>정밀 배당 시스템</span>
107
+ <DownArrow className={`h-[19px] w-[22px] overflow-hidden object-contain transition-all duration-300 ease-in-out max-xl:h-[14px] max-xl:w-3 max-sm:h-[11px] max-sm:w-[11px] ${active === 'distribution' ? 'ml-2 w-[22px] opacity-100' : 'ml-0 w-0 opacity-0'}`}/>
108
+ </div>
109
+ </div>
110
+ </div>
111
+ <div className={'flex flex-col gap-y-[120px] max-xl:gap-y-20 max-sm:gap-y-[60px]'}>
112
+ <div ref={target1Ref} className={`${divClass} flex flex-col`}>
113
+ <span className={'mb-[60px] w-fit border-b border-solid border-black text-[32px] font-extrabold max-xl:mb-10 max-xl:text-2xl max-xl:!leading-[144%] max-xl:tracking-[-0.04em] max-sm:text-xl'}>
114
+ 3단계 상담 시스템
115
+ </span>
116
+ <p className={'mb-5 text-[52px] font-extrabold text-[#909090] max-xl:text-[32px] max-xl:leading-[145%] max-xl:tracking-[-0.04em] max-sm:text-[28px]'}>
117
+ 전략 설계의 시작점, <br className={'hidden max-2sm:block'}/>
118
+ <span className={'text-black'}>
119
+ 단순 상담 그 이상을 <br className={'hidden max-2sm:block'}/>
120
+ 제공
121
+ </span>
122
+ 합니다
123
+ </p>
124
+ <p className={'text-[32px] max-xl:text-2xl max-xl:leading-[140%] max-xl:tracking-[-0.04em] max-sm:text-xl'}>
125
+ 진단 → 전문의견 → 맞춤 대응까지 <br className={'hidden max-2sm:block'}/>
126
+ 이어지는 3단계 상담 시스템을 운영합니다
127
+ </p>
128
+ </div>
129
+ <ol ref={target2Ref} className="grid h-[650px] w-full grid-cols-3 gap-5 text-white max-xl:flex max-xl:h-fit max-xl:flex-col">
130
+ {sectionItems.map((item, index) => (<CardSection7 key={index} className={flag2 ? style.fadeInUp : 'opacity-0'} style={flag2 ? { animationDelay: `${index * 0.4}s` } : {}} {...item}/>))}
131
+ </ol>
132
+ </div>
133
+ </section>
134
+ </>);
135
+ };
136
+ export default Section7;
@@ -0,0 +1,201 @@
1
+ import React, { useRef, useState } from 'react';
2
+ import DownArrow from '../../../asset/images/lawfirm/downArrow.svg';
3
+ import CardSection7 from './CardSection7';
4
+ import useElementObserve from '../../common/hook/useElementObserve';
5
+ import style from './lawfirm.module.css';
6
+ import Section_7_1 from '../../../asset/images/lawfirm/section_7_1.webp';
7
+ import Section_7_2 from '../../../asset/images/lawfirm/section_7_2.webp';
8
+ import Section_7_3 from '../../../asset/images/lawfirm/section_7_3.webp';
9
+
10
+ const Section7 = ({ CommonPadding }: { CommonPadding: string }) => {
11
+ const [active, setActive] = useState<'system' | 'distribution'>('system');
12
+ const target1Ref = useRef<HTMLDivElement>(null);
13
+ const target2Ref = useRef<HTMLOListElement>(null);
14
+ const { flagFastClass: divClass } = useElementObserve(target1Ref, 0.3);
15
+ const { flag: flag2 } = useElementObserve(target2Ref, 0.1);
16
+
17
+ const sectionItems = [
18
+ {
19
+ imageSrc: Section_7_1,
20
+ gradient: style.bgGrad1,
21
+ bgColor: 'bg-[#0F0F0F]',
22
+ title: ['정확한', '소송 초기 진단'],
23
+ paragraphs: (
24
+ <span className="z-20 text-[20px] font-medium text-white/80">
25
+ 대형병원에는 응급의학과 및 병리과 의사가 환자의 초기 처치 및 질병 원인을{' '}
26
+ <br className="hidden max-xl:block max-md2:hidden" />
27
+ 진단하듯{' '}
28
+ <span className="font-bold text-white">대륜의 상담변호사가 소송 초기 진단과 쟁점 파악</span>에
29
+ 나섭니다.
30
+ </span>
31
+ )
32
+ },
33
+ {
34
+ imageSrc: Section_7_2,
35
+ gradient: style.bgGrad2,
36
+ title: ['분야별', '전문 변호사 상담'],
37
+ bgColor: 'bg-[#0D233B]',
38
+ paragraphs: (
39
+ <>
40
+ <span className="z-20 text-[20px] font-medium text-white/80">
41
+ 전문적인 분석 및 법리 검토를 위해{' '}
42
+ <span className="font-bold text-white">해당 분야의 전문 변호사가 고객을 마주</span>
43
+ 합니다. <br className="hidden max-xl:block max-md2:hidden" /> 한 번의 상담으로 놓칠 수 있는
44
+ 쟁점도 다각도로 검토할 수 있습니다.
45
+ </span>
46
+ <span className="z-20 text-[20px] font-medium text-white/80">
47
+ 고객의 희망에 따라 회계사, 세무사, 관세전문위원, 노무사, 변리사 등{' '}
48
+ <span className="font-bold text-white">
49
+ 전문가가 <br className="hidden max-xl:block max-md2:hidden" /> 직접 배석
50
+ </span>
51
+ 합니다.
52
+ </span>
53
+ </>
54
+ )
55
+ },
56
+ {
57
+ imageSrc: Section_7_3,
58
+ gradient: style.bgGrad3,
59
+ title: ['수행그룹 또는', '담당 TF와 상담'],
60
+ bgColor: 'bg-[#151924]',
61
+ paragraphs: (
62
+ <>
63
+ <span className="z-20 text-[20px] font-medium text-white/80">
64
+ 해당 사건을 전문적으로 수행하는 그룹 또는 담당 TF와 상담을 진행합니다.
65
+ </span>
66
+ <span className="z-20 text-[20px] font-medium text-white/80">
67
+ 대형병원에서 교수급 협진 및 치료방향을 설정하듯 대륜은{' '}
68
+ <span className="font-bold text-white">
69
+ 전문성을 단계별로 <br className="hidden max-xl:block max-md2:hidden" /> 분리
70
+ </span>
71
+ 하여 <span className="font-bold text-white">정확한 판단과 전략 수립</span>에 나섭니다.
72
+ </span>
73
+ </>
74
+ )
75
+ }
76
+ ];
77
+
78
+ // 스크롤 다운 속도 조절/
79
+ const scrollToId = (id: string) => {
80
+ const el = document.getElementById(id);
81
+ if (!el) return;
82
+
83
+ // 20px 위로 조정할지 여부 결정
84
+ const offset = id === 'distribution' ? -60 : 0;
85
+
86
+ const targetY = el.getBoundingClientRect().top + window.scrollY + offset;
87
+ const startY = window.scrollY;
88
+ const distance = targetY - startY;
89
+ const duration = 400;
90
+ const startTime = performance.now();
91
+
92
+ const animate = (time: number) => {
93
+ const elapsed = time - startTime;
94
+ const progress = Math.min(elapsed / duration, 1);
95
+ const ease = 1 - Math.pow(1 - progress, 3);
96
+
97
+ window.scrollTo(0, startY + distance * ease);
98
+
99
+ if (progress < 1) {
100
+ requestAnimationFrame(animate);
101
+ }
102
+ };
103
+
104
+ requestAnimationFrame(animate);
105
+ };
106
+
107
+ return (
108
+ <>
109
+ <section
110
+ className={
111
+ CommonPadding +
112
+ ' flex flex-col gap-y-[180px] tracking-[-1.92px] max-xl:gap-y-[120px] max-sm:gap-y-[60px]'
113
+ }
114
+ >
115
+ <div className={'flex w-full justify-center'}>
116
+ <div
117
+ id={'system'}
118
+ className={
119
+ 'grid h-fit w-full max-w-[840px] grid-cols-2 rounded-full border border-solid border-black p-[10px] text-[32px] font-extrabold max-xl:w-[500px] max-xl:p-2 max-xl:text-2xl max-xl:tracking-[-0.04em] max-sm:w-[420px] max-sm:p-1 max-sm:text-xl max-xs:max-w-[320px] max-xs:text-[16px]'
120
+ }
121
+ onMouseLeave={() => setActive('system')}
122
+ >
123
+ <div
124
+ onMouseEnter={() => setActive('system')}
125
+ className={`flex h-[65px] w-full cursor-pointer items-center justify-center rounded-full transition-all duration-300 max-xl:h-[54px] max-sm:h-[42px]
126
+ ${active === 'system' ? 'gap-x-5 bg-black text-white max-xl:gap-x-3 max-sm:gap-x-2' : 'gap-x-0 bg-transparent text-black'}
127
+ `}
128
+ onClick={() => scrollToId('system')}
129
+ >
130
+ <span className="transition-opacity duration-300">3단계 상담 시스템</span>
131
+ <DownArrow
132
+ className={`h-[19px] w-[22px] overflow-hidden object-contain transition-all duration-300 ease-in-out max-xl:h-[14px] max-xl:w-3 max-sm:h-[11px] max-sm:w-[11px] ${
133
+ active === 'system' ? 'ml-2 w-[22px] opacity-100' : 'ml-0 w-0 opacity-0'
134
+ }`}
135
+ />
136
+ </div>
137
+ <div
138
+ onMouseEnter={() => setActive('distribution')}
139
+ className={`flex h-[65px] w-full cursor-pointer items-center justify-center rounded-full transition-all duration-300 max-xl:h-[54px] max-sm:h-[42px]
140
+ ${active === 'distribution' ? 'gap-x-5 bg-black text-white max-xl:gap-x-3 max-sm:gap-x-2' : 'gap-x-0 bg-transparent text-black'}
141
+ `}
142
+ onClick={() => scrollToId('distribution')}
143
+ >
144
+ <span className={`transition-opacity duration-300 `}>정밀 배당 시스템</span>
145
+ <DownArrow
146
+ className={`h-[19px] w-[22px] overflow-hidden object-contain transition-all duration-300 ease-in-out max-xl:h-[14px] max-xl:w-3 max-sm:h-[11px] max-sm:w-[11px] ${
147
+ active === 'distribution' ? 'ml-2 w-[22px] opacity-100' : 'ml-0 w-0 opacity-0'
148
+ }`}
149
+ />
150
+ </div>
151
+ </div>
152
+ </div>
153
+ <div className={'flex flex-col gap-y-[120px] max-xl:gap-y-20 max-sm:gap-y-[60px]'}>
154
+ <div ref={target1Ref} className={`${divClass} flex flex-col`}>
155
+ <span
156
+ className={
157
+ 'mb-[60px] w-fit border-b border-solid border-black text-[32px] font-extrabold max-xl:mb-10 max-xl:text-2xl max-xl:!leading-[144%] max-xl:tracking-[-0.04em] max-sm:text-xl'
158
+ }
159
+ >
160
+ 3단계 상담 시스템
161
+ </span>
162
+ <p
163
+ className={
164
+ 'mb-5 text-[52px] font-extrabold text-[#909090] max-xl:text-[32px] max-xl:leading-[145%] max-xl:tracking-[-0.04em] max-sm:text-[28px]'
165
+ }
166
+ >
167
+ 전략 설계의 시작점, <br className={'hidden max-2sm:block'} />
168
+ <span className={'text-black'}>
169
+ 단순 상담 그 이상을 <br className={'hidden max-2sm:block'} />
170
+ 제공
171
+ </span>
172
+ 합니다
173
+ </p>
174
+ <p
175
+ className={
176
+ 'text-[32px] max-xl:text-2xl max-xl:leading-[140%] max-xl:tracking-[-0.04em] max-sm:text-xl'
177
+ }
178
+ >
179
+ 진단 → 전문의견 → 맞춤 대응까지 <br className={'hidden max-2sm:block'} />
180
+ 이어지는 3단계 상담 시스템을 운영합니다
181
+ </p>
182
+ </div>
183
+ <ol
184
+ ref={target2Ref}
185
+ className="grid h-[650px] w-full grid-cols-3 gap-5 text-white max-xl:flex max-xl:h-fit max-xl:flex-col"
186
+ >
187
+ {sectionItems.map((item, index) => (
188
+ <CardSection7
189
+ key={index}
190
+ className={flag2 ? style.fadeInUp : 'opacity-0'}
191
+ style={flag2 ? { animationDelay: `${index * 0.4}s` } : {}}
192
+ {...item}
193
+ />
194
+ ))}
195
+ </ol>
196
+ </div>
197
+ </section>
198
+ </>
199
+ );
200
+ };
201
+ export default Section7;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const Section8: ({ CommonPadding }: {
3
+ CommonPadding: string;
4
+ }) => React.JSX.Element;
5
+ export default Section8;