@daeryun/dr_components 1.0.30 → 1.0.32

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 (42) hide show
  1. package/dist/asset/images/strength_new/logo.svg +37 -0
  2. package/dist/components/Footer/index.jsx +41 -46
  3. package/dist/components/Footer/index.tsx +48 -48
  4. package/dist/components/common/types/strength_new/index.d.ts +48 -6
  5. package/dist/components/common/types/strength_new/index.ts +51 -6
  6. package/dist/components/page/StrengthNew/StrengthCustomer.d.ts +8 -0
  7. package/dist/components/page/StrengthNew/StrengthCustomer.jsx +15 -0
  8. package/dist/components/page/StrengthNew/StrengthCustomer.tsx +36 -0
  9. package/dist/components/page/StrengthNew/StrengthInfra.d.ts +8 -0
  10. package/dist/components/page/StrengthNew/StrengthInfra.jsx +13 -0
  11. package/dist/components/page/StrengthNew/StrengthInfra.tsx +34 -0
  12. package/dist/components/page/StrengthNew/StrengthPeople.jsx +1 -1
  13. package/dist/components/page/StrengthNew/StrengthPeople.tsx +3 -3
  14. package/dist/components/page/StrengthNew/StrengthSystem.jsx +1 -1
  15. package/dist/components/page/StrengthNew/StrengthSystem.tsx +3 -3
  16. package/dist/components/page/StrengthNew/components/common/BannerSection.jsx +38 -37
  17. package/dist/components/page/StrengthNew/components/common/BannerSection.tsx +41 -41
  18. package/dist/components/page/StrengthNew/components/common/ItemNumber.d.ts +6 -0
  19. package/dist/components/page/StrengthNew/components/common/ItemNumber.jsx +12 -0
  20. package/dist/components/page/StrengthNew/components/common/ItemNumber.tsx +19 -0
  21. package/dist/components/page/StrengthNew/components/common/LawyerSection.jsx +35 -32
  22. package/dist/components/page/StrengthNew/components/common/LawyerSection.tsx +70 -52
  23. package/dist/components/page/StrengthNew/components/common/ViewMoreSection.jsx +26 -19
  24. package/dist/components/page/StrengthNew/components/common/ViewMoreSection.tsx +43 -27
  25. package/dist/components/page/StrengthNew/components/customer/CustomerSection.d.ts +14 -0
  26. package/dist/components/page/StrengthNew/components/customer/CustomerSection.jsx +237 -0
  27. package/dist/components/page/StrengthNew/components/customer/CustomerSection.tsx +489 -0
  28. package/dist/components/page/StrengthNew/components/customer/DaeryunSection.d.ts +9 -0
  29. package/dist/components/page/StrengthNew/components/customer/DaeryunSection.jsx +85 -0
  30. package/dist/components/page/StrengthNew/components/customer/DaeryunSection.tsx +203 -0
  31. package/dist/components/page/StrengthNew/components/infra/InfraSection.d.ts +16 -0
  32. package/dist/components/page/StrengthNew/components/infra/InfraSection.jsx +254 -0
  33. package/dist/components/page/StrengthNew/components/infra/InfraSection.tsx +522 -0
  34. package/dist/components/page/StrengthNew/components/main/IntroSection.jsx +19 -11
  35. package/dist/components/page/StrengthNew/components/main/IntroSection.tsx +31 -11
  36. package/dist/components/page/StrengthNew/components/people/PeopleSection.jsx +81 -67
  37. package/dist/components/page/StrengthNew/components/people/PeopleSection.tsx +117 -80
  38. package/dist/components/page/StrengthNew/components/system/SystemSection.jsx +127 -99
  39. package/dist/components/page/StrengthNew/components/system/SystemSection.tsx +182 -108
  40. package/dist/styles/globals.css +1023 -186
  41. package/dist/tsconfig.tsbuildinfo +1 -1
  42. package/package.json +1 -1
@@ -1,9 +1,11 @@
1
1
  import Image from 'next/image';
2
2
  import React, { useEffect, useState } from 'react';
3
+ import ItemNumber from '../common/ItemNumber';
4
+ import { useRouter } from 'next/navigation';
3
5
  import useBrowser from '../../../../hook/useBrowser';
4
6
  import { replaceInitialData } from '../../../../../lib';
5
7
  const PeopleSection = ({ people_list, initialData }) => {
6
- return (<section className={'w-full pt-[100px] tracking-[-0.04em] max-lg:pt-10 '}>
8
+ return (<section className={'w-full border-b border-solid border-[#4E00B3] pt-[100px] tracking-[-0.04em] max-xl:pt-20 max-sm:pt-10 '}>
7
9
  {people_list.map((item, index) => {
8
10
  const Component = index % 2 === 0 ? RightTextItem : LeftTextItem;
9
11
  return <Component item={item} key={index} index={index} initialData={initialData}/>;
@@ -15,15 +17,20 @@ const RightTextItem = ({ item, index, initialData }) => {
15
17
  const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
16
18
  const { width } = useBrowser(true);
17
19
  const [padding, setPadding] = useState(0);
18
- useEffect(() => {
19
- if (width != 0) {
20
- if (width > 2119) {
21
- setPadding((width - 1920 + 80) / 2);
20
+ const router = useRouter();
21
+ const handleSetPadding = () => {
22
+ if (typeof window != 'undefined') {
23
+ const widthBrowser = width != 0 ? width : window.innerWidth;
24
+ if (widthBrowser > 2119) {
25
+ setPadding((widthBrowser - 1920 + 80) / 2);
22
26
  }
23
- else if (width < 2120 && width > 1920) {
24
- setPadding((width - 1920 + 280) / 2);
27
+ else if (widthBrowser < 2120 && widthBrowser > 1919) {
28
+ setPadding((widthBrowser - 1920 + 280) / 2);
25
29
  }
26
30
  }
31
+ };
32
+ useEffect(() => {
33
+ handleSetPadding();
27
34
  }, [width]);
28
35
  return (<div className={'w-full pl-[calc((100%-1920px+80px)/2)] ' +
29
36
  'max-[2120px]:pl-[calc((100%-1920px+280px)/2)] ' +
@@ -31,55 +38,58 @@ const RightTextItem = ({ item, index, initialData }) => {
31
38
  'max-3xl:pl-20 ' +
32
39
  'max-lg:pl-[60px] ' +
33
40
  'max-sm:pl-5 ' +
34
- (index != 0 ? 'mt-[-100px] max-xl:mt-[-50px] max-sm:mt-[-20px]' : '')}>
41
+ (index != 0 ? 'mt-[-100px] max-3xl:mt-[-80px] max-xl:mt-[-50px] max-sm:mt-[-20px]' : '')}>
35
42
  <div className={'relative h-full w-full '}>
36
43
  {/*원*/}
37
44
  <div className={'absolute left-0 top-0 h-[400px] w-[400px] overflow-hidden rounded-full border border-solid border-[#4E00B3] ' +
45
+ 'max-3xl:h-[300px] max-3xl:w-[300px] ' +
38
46
  'max-xl:h-[200px] max-xl:w-[200px] ' +
39
47
  'max-sm:h-[180px] max-sm:w-[180px]'}>
40
48
  {/*이미지*/}
41
49
  <span className={'absolute bottom-0 right-0 block h-[299px] w-[279px] overflow-hidden ' +
42
- 'max-xl:h-[149px] max-xl:w-[139px] max-xl:rounded-tl-[100px] ' +
43
- 'max-sm:h-[160px] max-sm:w-[160px]'}>
44
- <Image src={imagePath + `/strength_new/people_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px" className={'object-contain object-right max-sm:hidden'} quality={100}/>
50
+ 'max-3xl:h-[219px] max-3xl:w-[199px] max-3xl:rounded-tl-[100px] ' +
51
+ 'max-xl:h-[149px] max-xl:w-[139px] max-xl:rounded-tl-[50px] ' +
52
+ 'max-sm:h-[159px] max-sm:w-[159px] max-sm:rounded-tl-[100px]'}>
53
+ <Image src={imagePath + `/strength_new/people_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px" className={'object-contain object-right max-3xl:scale-110 max-lg:hidden'} quality={100}/>
54
+ <Image src={imagePath + `/strength_new/people_tab_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px" className={'object-contain object-right max-sm:hidden lg:hidden'} quality={100}/>
45
55
  <Image src={imagePath + `/strength_new/people_mo_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px" className={'object-contain object-right sm:hidden'} quality={100}/>
46
56
  </span>
47
57
  </div>
48
58
 
49
59
  {/*내용 박스 > 원 위에*/}
50
- <div className={'relative w-full pl-[120px] pt-[100px] max-xl:pl-[60px] max-xl:pt-[50px] max-sm:pl-5 max-sm:pt-5'}>
60
+ <div className={'relative w-full pl-[120px] pt-[100px] ' +
61
+ 'max-3xl:pl-[100px] max-3xl:pt-20 ' +
62
+ 'max-xl:pl-[60px] max-xl:pt-[50px] ' +
63
+ 'max-sm:pl-5 max-sm:pt-5'}>
51
64
  {/*보더*/}
52
65
  <div className={'relative w-full rounded-tl-[100px] border-l border-t border-solid border-l-[#4E00B3] border-t-[#4E00B3] pb-[100px] pl-[280px] ' +
53
- 'max-xl:pb-[50px] max-xl:pl-[140px] ' +
66
+ 'max-3xl:pb-[80px] max-3xl:pl-[200px] ' +
67
+ 'max-xl:rounded-tl-[50px] max-xl:pb-[50px] max-xl:pl-[140px] ' +
54
68
  'max-md:pl-10 max-md:pt-[140px] ' +
55
- 'max-sm:pb-5 max-sm:pl-5 max-sm:pt-[160px] '}>
69
+ 'max-sm:rounded-tl-[100px] max-sm:pb-5 max-sm:pl-5 max-sm:pt-[160px] '}>
56
70
  {/*글자 내용*/}
57
- <div style={{ paddingRight: padding + 120 }} className={'relative flex min-h-[360px] w-full flex-col gap-10 pb-[65px] pl-[120px] pt-[60px] ' +
58
- 'max-3xl:gap-7 max-3xl:!pr-[200px] max-3xl:pl-20 ' +
59
- 'max-xl:min-h-[228px] max-xl:gap-5 max-xl:p-10 max-xl:!pr-[140px] ' +
60
- 'max-lg:!pr-[120px] ' +
61
- 'max-sm:p-5 max-sm:!pr-10 max-sm:pb-10 '}>
71
+ <div style={width > 1919 ? { paddingRight: padding + 120 } : {}} className={'relative flex min-h-[360px] w-full flex-col gap-10 pb-[65px] pl-[120px] pt-[60px] max-full:pr-[260px] ' +
72
+ 'max-5xl:pl-[100px] ' +
73
+ 'max-3xl:pl-20 max-3xl:pr-[180px] ' +
74
+ 'max-xl:min-h-[228px] max-xl:gap-5 max-xl:p-10 max-xl:pr-[140px] ' +
75
+ 'max-lg:pr-[120px] ' +
76
+ 'max-sm:pb-10 max-sm:pl-0 max-sm:pr-10 max-sm:pt-5 '}>
62
77
  <h2 className={'whitespace-pre-wrap text-[36px] font-[800] leading-[1.3] ' +
63
78
  'max-5xl:text-[34px] ' +
64
79
  'max-3xl:text-[32px] ' +
65
80
  'max-xl:text-[24px] ' +
66
- 'max-md:text-right ' +
67
- 'max-sm:text-right max-sm:text-[20px]'} dangerouslySetInnerHTML={{
68
- __html: replaceInitialData(item.title.replace('(*consult_date*)', `<span class='text-[20px] font-medium'>(*consult_date*)</span>`), initialData)
69
- }}></h2>
70
- <p className={'relative z-10 whitespace-pre-wrap text-[24px] font-[400] leading-[1.4] ' +
81
+ 'max-md:text-right '} dangerouslySetInnerHTML={{
82
+ __html: replaceInitialData(item.title
83
+ .replace('(', `<span class='text-[20px] font-medium max-xl:text-[16px] '>(`)
84
+ .replace(')', `)</span>`), initialData)
85
+ }}/>
86
+ <p className={'relative z-10 text-[24px] font-[400] leading-[1.4] ' +
71
87
  'max-5xl:text-[22px] ' +
72
88
  'max-3xl:text-[20px] ' +
73
89
  'max-xl:text-[16px]'}>
74
- {replaceInitialData(item.desc, initialData)}
75
- <p className={'absolute right-0 top-[-160px] z-0 text-[200px] font-[900] leading-none text-[#E7E7E7] opacity-25 ' +
76
- 'max-3xl:top-[-130px] max-3xl:text-[150px] ' +
77
- 'max-xl:top-[-95px] max-xl:text-[120px] ' +
78
- 'max-md2:text-[100px] ' +
79
- 'max-md:top-[-190px] ' +
80
- 'max-sm:top-[-176px] max-sm:text-[80px]'}>
81
- 0{index + 1}
82
- </p>
90
+ <span className={'relative z-20 whitespace-pre-wrap'} dangerouslySetInnerHTML={{ __html: replaceInitialData(item.desc, initialData) }}></span>
91
+
92
+ <ItemNumber index={index} className={'right-0 top-[-160px] max-3xl:top-[-130px] max-xl:top-[-95px] max-md:top-[-189px] max-sm:top-[-184px] '}/>
83
93
  </p>
84
94
  </div>
85
95
  </div>
@@ -91,73 +101,77 @@ const LeftTextItem = ({ item, index, initialData }) => {
91
101
  const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
92
102
  const { width } = useBrowser(true);
93
103
  const [padding, setPadding] = useState(0);
94
- useEffect(() => {
95
- if (width != 0) {
96
- if (width > 2119) {
97
- setPadding((width - 1920 + 80) / 2);
104
+ const router = useRouter();
105
+ const handleSetPadding = () => {
106
+ if (typeof window != 'undefined') {
107
+ const widthBrowser = width != 0 ? width : window.innerWidth;
108
+ if (widthBrowser > 2119) {
109
+ setPadding((widthBrowser - 1920 + 80) / 2);
98
110
  }
99
- else if (width < 2120 && width > 1920) {
100
- setPadding((width - 1920 + 280) / 2);
111
+ else if (widthBrowser < 2120 && widthBrowser > 1919) {
112
+ setPadding((widthBrowser - 1920 + 280) / 2);
101
113
  }
102
114
  }
115
+ };
116
+ useEffect(() => {
117
+ handleSetPadding();
103
118
  }, [width]);
104
- return (<div className={'mt-[-100px] w-full pr-[calc((100%-1920px+80px)/2)] ' +
119
+ return (<div className={'mt-[-100px] w-full pr-[calc((100%-1920px+80px)/2)] ' +
105
120
  'max-[2120px]:pr-[calc((100%-1920px+280px)/2)] ' +
106
121
  'max-full:pr-[140px] ' +
107
- 'max-3xl:pr-20 ' +
122
+ 'max-3xl:mt-[-80px] max-3xl:pr-20 ' +
108
123
  'max-xl:mt-[-50px] ' +
109
124
  'max-lg:pr-[60px] ' +
110
125
  'max-sm:mt-[-20px] max-sm:pr-5'}>
111
126
  <div className={'relative h-full w-full '}>
112
127
  {/*원*/}
113
- <div className={'absolute right-0 top-0 h-[400px] w-[400px] overflow-hidden rounded-full border border-solid border-[#4E00B3] ' +
128
+ <div className={'absolute right-0 top-0 h-[400px] w-[400px] overflow-hidden rounded-full border border-solid border-[#5368C4] ' +
129
+ 'max-3xl:h-[300px] max-3xl:w-[300px] ' +
114
130
  'max-xl:h-[200px] max-xl:w-[200px] ' +
115
131
  'max-sm:h-[180px] max-sm:w-[180px]'}>
116
132
  {/*이미지*/}
117
- <span className={'absolute bottom-0 left-0 block h-[299px] w-[279px] overflow-hidden max-xl:h-[149px] max-xl:w-[139px] max-xl:rounded-tr-[100px] max-sm:h-[160px] max-sm:w-[160px]'}>
118
- <Image src={imagePath + `/strength_new/people_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px" className={'object-contain object-left max-sm:hidden'} quality={100}/>
133
+ <span className={'absolute bottom-0 left-0 block h-[299px] w-[279px] overflow-hidden ' +
134
+ 'max-3xl:h-[219px] max-3xl:w-[199px] max-3xl:rounded-tr-[100px] ' +
135
+ 'max-xl:h-[149px] max-xl:w-[139px] max-xl:rounded-tr-[50px] ' +
136
+ 'max-sm:h-[159px] max-sm:w-[159px] max-sm:rounded-tr-[100px]'}>
137
+ <Image src={imagePath + `/strength_new/people_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px" className={'object-contain object-right max-3xl:scale-110 max-lg:hidden'} quality={100}/>
138
+ <Image src={imagePath + `/strength_new/people_tab_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px" className={'object-contain object-left max-sm:hidden lg:hidden'} quality={100}/>
119
139
  <Image src={imagePath + `/strength_new/people_mo_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px" className={'object-contain object-left sm:hidden'} quality={100}/>
120
140
  </span>
121
141
  </div>
122
142
 
123
143
  {/*내용*/}
124
144
  <div className={'relative w-full pr-[120px] pt-[100px] ' +
145
+ 'max-3xl:pr-[100px] max-3xl:pt-20 ' +
125
146
  'max-xl:pr-[60px] max-xl:pt-[50px] ' +
126
147
  'max-sm:pr-5 max-sm:pt-5'}>
127
148
  {/*보더*/}
128
- <div style={{ paddingLeft: padding }} className={'relative w-full rounded-tr-[100px] border-r border-t border-solid border-r-[#4E00B3] border-t-[#4E00B3] pb-[100px] pr-[280px] ' +
129
- 'max-full:!pl-[140px] ' +
130
- 'max-3xl:!pl-20 ' +
131
- 'max-xl:pb-[50px] max-xl:pr-[140px] ' +
132
- 'max-lg:!pl-[60px] ' +
149
+ <div style={width > 1919 ? { paddingLeft: padding } : {}} className={'relative w-full rounded-tr-[100px] border-r border-t border-solid border-r-[#5368C4] border-t-[#5368C4] pb-[100px] pr-[280px] ' +
150
+ 'max-full:pl-[140px] ' +
151
+ 'max-3xl:pl-20 max-3xl:pr-[200px] ' +
152
+ 'max-xl:rounded-tr-[50px] max-xl:pb-[50px] max-xl:pr-[140px] ' +
153
+ 'max-lg:pl-[60px] ' +
133
154
  'max-md:pr-10 max-md:pt-[140px] ' +
134
- 'max-sm:!pl-5 max-sm:pb-5 max-sm:pr-0 max-sm:pt-[160px]'}>
155
+ 'max-sm:rounded-tr-[100px] max-sm:!pl-5 max-sm:pb-5 max-sm:pr-0 max-sm:pt-[160px]'}>
135
156
  {/*글자내용*/}
136
157
  <div className={'relative flex min-h-[360px] w-full flex-col gap-10 px-[120px] pb-[65px] pt-[60px] ' +
137
- 'max-3xl:gap-7 max-3xl:pr-20 ' +
158
+ 'max-5xl:pr-[100px] ' +
159
+ 'max-3xl:pl-[100px] ' +
138
160
  'max-xl:min-h-[228px] max-xl:gap-5 max-xl:p-10 max-xl:pl-[60px] ' +
139
161
  'max-sm:p-5 max-sm:pb-10 '}>
140
162
  <h2 className={'whitespace-pre-wrap text-[36px] font-[800] leading-[1.3] ' +
141
163
  'max-5xl:text-[34px] ' +
142
164
  'max-3xl:text-[32px] ' +
143
- 'max-xl:text-[24px] ' +
144
- 'max-sm:text-[20px]'} dangerouslySetInnerHTML={{
145
- __html: replaceInitialData(item.title.replace('*consult_date*', `<span class='text-[20px]'>*consult_date*</span>`), initialData)
146
- }}></h2>
147
- <p className={'relative z-10 whitespace-pre-wrap text-[24px] font-[400] leading-[1.4] ' +
165
+ 'max-xl:text-[24px] '} dangerouslySetInnerHTML={{
166
+ __html: replaceInitialData(item.title
167
+ .replace('(', `<span class='text-[20px] font-medium max-xl:text-[16px]'>(`)
168
+ .replace(')', `)</span>`), initialData)
169
+ }}/>
170
+ <p className={'relative z-20 whitespace-pre-wrap text-[24px] font-[400] leading-[1.4] ' +
148
171
  'max-5xl:text-[22px] ' +
149
172
  'max-3xl:text-[20px] ' +
150
- 'max-xl:text-[16px]'}>
151
- {replaceInitialData(item.desc, initialData)}
152
- </p>
153
- <p className={'absolute right-[120px] top-[30px] z-0 text-[200px] font-[900] leading-none text-[#E7E7E7] opacity-25 ' +
154
- 'max-3xl:top-[40px] max-3xl:text-[150px] ' +
155
- 'max-xl:right-10 max-xl:top-8 max-xl:text-[120px] ' +
156
- 'max-md2:text-[100px] ' +
157
- 'max-md:left-[60px] max-md:top-[-65px] ' +
158
- 'max-sm:left-5 max-sm:top-[-80px] max-sm:text-[80px]'}>
159
- 0{index + 1}
160
- </p>{' '}
173
+ 'max-xl:text-[16px]'} dangerouslySetInnerHTML={{ __html: replaceInitialData(item.desc, initialData) }}></p>
174
+ <ItemNumber index={index} className={'right-[120px] top-[30px] max-3xl:top-[40px] max-xl:right-10 max-xl:top-8 max-md:left-[60px] max-md:top-[-68px] max-sm:left-5 max-sm:top-[-80px] '}/>
161
175
  </div>
162
176
  </div>
163
177
  </div>
@@ -1,8 +1,11 @@
1
1
  import Image from 'next/image';
2
- import React, { useEffect, useRef, useState } from 'react';
2
+ import React, { useEffect, useState } from 'react';
3
+ import ItemNumber from '../common/ItemNumber';
4
+ import { useRouter } from 'next/navigation';
3
5
  import { IInitialDataTypes } from '../../../../common';
4
6
  import useBrowser from '../../../../hook/useBrowser';
5
7
  import { replaceInitialData } from '../../../../../lib';
8
+
6
9
  const PeopleSection = ({
7
10
  people_list,
8
11
  initialData
@@ -14,7 +17,11 @@ const PeopleSection = ({
14
17
  initialData: IInitialDataTypes;
15
18
  }) => {
16
19
  return (
17
- <section className={'w-full pt-[100px] tracking-[-0.04em] max-lg:pt-10 '}>
20
+ <section
21
+ className={
22
+ 'w-full border-b border-solid border-[#4E00B3] pt-[100px] tracking-[-0.04em] max-xl:pt-20 max-sm:pt-10 '
23
+ }
24
+ >
18
25
  {people_list.map((item, index) => {
19
26
  const Component = index % 2 === 0 ? RightTextItem : LeftTextItem;
20
27
  return <Component item={item} key={index} index={index} initialData={initialData} />;
@@ -39,15 +46,22 @@ const RightTextItem = ({
39
46
  const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
40
47
  const { width } = useBrowser(true);
41
48
  const [padding, setPadding] = useState<number>(0);
49
+ const router = useRouter();
42
50
 
43
- useEffect(() => {
44
- if (width != 0) {
45
- if (width > 2119) {
46
- setPadding((width - 1920 + 80) / 2);
47
- } else if (width < 2120 && width > 1920) {
48
- setPadding((width - 1920 + 280) / 2);
51
+ const handleSetPadding = () => {
52
+ if (typeof window != 'undefined') {
53
+ const widthBrowser = width != 0 ? width : window.innerWidth;
54
+
55
+ if (widthBrowser > 2119) {
56
+ setPadding((widthBrowser - 1920 + 80) / 2);
57
+ } else if (widthBrowser < 2120 && widthBrowser > 1919) {
58
+ setPadding((widthBrowser - 1920 + 280) / 2);
49
59
  }
50
60
  }
61
+ };
62
+
63
+ useEffect(() => {
64
+ handleSetPadding();
51
65
  }, [width]);
52
66
 
53
67
  return (
@@ -59,7 +73,7 @@ const RightTextItem = ({
59
73
  'max-3xl:pl-20 ' +
60
74
  'max-lg:pl-[60px] ' +
61
75
  'max-sm:pl-5 ' +
62
- (index != 0 ? 'mt-[-100px] max-xl:mt-[-50px] max-sm:mt-[-20px]' : '')
76
+ (index != 0 ? 'mt-[-100px] max-3xl:mt-[-80px] max-xl:mt-[-50px] max-sm:mt-[-20px]' : '')
63
77
  }
64
78
  >
65
79
  <div className={'relative h-full w-full '}>
@@ -67,6 +81,7 @@ const RightTextItem = ({
67
81
  <div
68
82
  className={
69
83
  'absolute left-0 top-0 h-[400px] w-[400px] overflow-hidden rounded-full border border-solid border-[#4E00B3] ' +
84
+ 'max-3xl:h-[300px] max-3xl:w-[300px] ' +
70
85
  'max-xl:h-[200px] max-xl:w-[200px] ' +
71
86
  'max-sm:h-[180px] max-sm:w-[180px]'
72
87
  }
@@ -75,8 +90,9 @@ const RightTextItem = ({
75
90
  <span
76
91
  className={
77
92
  'absolute bottom-0 right-0 block h-[299px] w-[279px] overflow-hidden ' +
78
- 'max-xl:h-[149px] max-xl:w-[139px] max-xl:rounded-tl-[100px] ' +
79
- 'max-sm:h-[160px] max-sm:w-[160px]'
93
+ 'max-3xl:h-[219px] max-3xl:w-[199px] max-3xl:rounded-tl-[100px] ' +
94
+ 'max-xl:h-[149px] max-xl:w-[139px] max-xl:rounded-tl-[50px] ' +
95
+ 'max-sm:h-[159px] max-sm:w-[159px] max-sm:rounded-tl-[100px]'
80
96
  }
81
97
  >
82
98
  <Image
@@ -84,7 +100,15 @@ const RightTextItem = ({
84
100
  alt={'강점'}
85
101
  fill
86
102
  sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px"
87
- className={'object-contain object-right max-sm:hidden'}
103
+ className={'object-contain object-right max-3xl:scale-110 max-lg:hidden'}
104
+ quality={100}
105
+ />
106
+ <Image
107
+ src={imagePath + `/strength_new/people_tab_${index + 1}.webp`}
108
+ alt={'강점'}
109
+ fill
110
+ sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px"
111
+ className={'object-contain object-right max-sm:hidden lg:hidden'}
88
112
  quality={100}
89
113
  />
90
114
  <Image
@@ -101,27 +125,32 @@ const RightTextItem = ({
101
125
  {/*내용 박스 > 원 위에*/}
102
126
  <div
103
127
  className={
104
- 'relative w-full pl-[120px] pt-[100px] max-xl:pl-[60px] max-xl:pt-[50px] max-sm:pl-5 max-sm:pt-5'
128
+ 'relative w-full pl-[120px] pt-[100px] ' +
129
+ 'max-3xl:pl-[100px] max-3xl:pt-20 ' +
130
+ 'max-xl:pl-[60px] max-xl:pt-[50px] ' +
131
+ 'max-sm:pl-5 max-sm:pt-5'
105
132
  }
106
133
  >
107
134
  {/*보더*/}
108
135
  <div
109
136
  className={
110
137
  'relative w-full rounded-tl-[100px] border-l border-t border-solid border-l-[#4E00B3] border-t-[#4E00B3] pb-[100px] pl-[280px] ' +
111
- 'max-xl:pb-[50px] max-xl:pl-[140px] ' +
138
+ 'max-3xl:pb-[80px] max-3xl:pl-[200px] ' +
139
+ 'max-xl:rounded-tl-[50px] max-xl:pb-[50px] max-xl:pl-[140px] ' +
112
140
  'max-md:pl-10 max-md:pt-[140px] ' +
113
- 'max-sm:pb-5 max-sm:pl-5 max-sm:pt-[160px] '
141
+ 'max-sm:rounded-tl-[100px] max-sm:pb-5 max-sm:pl-5 max-sm:pt-[160px] '
114
142
  }
115
143
  >
116
144
  {/*글자 내용*/}
117
145
  <div
118
- style={{ paddingRight: padding + 120 }}
146
+ style={width > 1919 ? { paddingRight: padding + 120 } : {}}
119
147
  className={
120
- 'relative flex min-h-[360px] w-full flex-col gap-10 pb-[65px] pl-[120px] pt-[60px] ' +
121
- 'max-3xl:gap-7 max-3xl:!pr-[200px] max-3xl:pl-20 ' +
122
- 'max-xl:min-h-[228px] max-xl:gap-5 max-xl:p-10 max-xl:!pr-[140px] ' +
123
- 'max-lg:!pr-[120px] ' +
124
- 'max-sm:p-5 max-sm:!pr-10 max-sm:pb-10 '
148
+ 'relative flex min-h-[360px] w-full flex-col gap-10 pb-[65px] pl-[120px] pt-[60px] max-full:pr-[260px] ' +
149
+ 'max-5xl:pl-[100px] ' +
150
+ 'max-3xl:pl-20 max-3xl:pr-[180px] ' +
151
+ 'max-xl:min-h-[228px] max-xl:gap-5 max-xl:p-10 max-xl:pr-[140px] ' +
152
+ 'max-lg:pr-[120px] ' +
153
+ 'max-sm:pb-10 max-sm:pl-0 max-sm:pr-10 max-sm:pt-5 '
125
154
  }
126
155
  >
127
156
  <h2
@@ -130,40 +159,36 @@ const RightTextItem = ({
130
159
  'max-5xl:text-[34px] ' +
131
160
  'max-3xl:text-[32px] ' +
132
161
  'max-xl:text-[24px] ' +
133
- 'max-md:text-right ' +
134
- 'max-sm:text-right max-sm:text-[20px]'
162
+ 'max-md:text-right '
135
163
  }
136
164
  dangerouslySetInnerHTML={{
137
165
  __html: replaceInitialData(
138
- item.title.replace(
139
- '(*consult_date*)',
140
- `<span class='text-[20px] font-medium'>(*consult_date*)</span>`
141
- ),
166
+ item.title
167
+ .replace('(', `<span class='text-[20px] font-medium max-xl:text-[16px] '>(`)
168
+ .replace(')', `)</span>`),
142
169
  initialData
143
170
  )
144
171
  }}
145
- ></h2>
172
+ />
146
173
  <p
147
174
  className={
148
- 'relative z-10 whitespace-pre-wrap text-[24px] font-[400] leading-[1.4] ' +
175
+ 'relative z-10 text-[24px] font-[400] leading-[1.4] ' +
149
176
  'max-5xl:text-[22px] ' +
150
177
  'max-3xl:text-[20px] ' +
151
178
  'max-xl:text-[16px]'
152
179
  }
153
180
  >
154
- {replaceInitialData(item.desc, initialData)}
155
- <p
181
+ <span
182
+ className={'relative z-20 whitespace-pre-wrap'}
183
+ dangerouslySetInnerHTML={{ __html: replaceInitialData(item.desc, initialData) }}
184
+ ></span>
185
+
186
+ <ItemNumber
187
+ index={index}
156
188
  className={
157
- 'absolute right-0 top-[-160px] z-0 text-[200px] font-[900] leading-none text-[#E7E7E7] opacity-25 ' +
158
- 'max-3xl:top-[-130px] max-3xl:text-[150px] ' +
159
- 'max-xl:top-[-95px] max-xl:text-[120px] ' +
160
- 'max-md2:text-[100px] ' +
161
- 'max-md:top-[-190px] ' +
162
- 'max-sm:top-[-176px] max-sm:text-[80px]'
189
+ 'right-0 top-[-160px] max-3xl:top-[-130px] max-xl:top-[-95px] max-md:top-[-189px] max-sm:top-[-184px] '
163
190
  }
164
- >
165
- 0{index + 1}
166
- </p>
191
+ />
167
192
  </p>
168
193
  </div>
169
194
  </div>
@@ -188,24 +213,31 @@ const LeftTextItem = ({
188
213
  const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
189
214
  const { width } = useBrowser(true);
190
215
  const [padding, setPadding] = useState<number>(0);
216
+ const router = useRouter();
191
217
 
192
- useEffect(() => {
193
- if (width != 0) {
194
- if (width > 2119) {
195
- setPadding((width - 1920 + 80) / 2);
196
- } else if (width < 2120 && width > 1920) {
197
- setPadding((width - 1920 + 280) / 2);
218
+ const handleSetPadding = () => {
219
+ if (typeof window != 'undefined') {
220
+ const widthBrowser = width != 0 ? width : window.innerWidth;
221
+
222
+ if (widthBrowser > 2119) {
223
+ setPadding((widthBrowser - 1920 + 80) / 2);
224
+ } else if (widthBrowser < 2120 && widthBrowser > 1919) {
225
+ setPadding((widthBrowser - 1920 + 280) / 2);
198
226
  }
199
227
  }
228
+ };
229
+
230
+ useEffect(() => {
231
+ handleSetPadding();
200
232
  }, [width]);
201
233
 
202
234
  return (
203
235
  <div
204
236
  className={
205
- 'mt-[-100px] w-full pr-[calc((100%-1920px+80px)/2)] ' +
237
+ 'mt-[-100px] w-full pr-[calc((100%-1920px+80px)/2)] ' +
206
238
  'max-[2120px]:pr-[calc((100%-1920px+280px)/2)] ' +
207
239
  'max-full:pr-[140px] ' +
208
- 'max-3xl:pr-20 ' +
240
+ 'max-3xl:mt-[-80px] max-3xl:pr-20 ' +
209
241
  'max-xl:mt-[-50px] ' +
210
242
  'max-lg:pr-[60px] ' +
211
243
  'max-sm:mt-[-20px] max-sm:pr-5'
@@ -215,7 +247,8 @@ const LeftTextItem = ({
215
247
  {/*원*/}
216
248
  <div
217
249
  className={
218
- 'absolute right-0 top-0 h-[400px] w-[400px] overflow-hidden rounded-full border border-solid border-[#4E00B3] ' +
250
+ 'absolute right-0 top-0 h-[400px] w-[400px] overflow-hidden rounded-full border border-solid border-[#5368C4] ' +
251
+ 'max-3xl:h-[300px] max-3xl:w-[300px] ' +
219
252
  'max-xl:h-[200px] max-xl:w-[200px] ' +
220
253
  'max-sm:h-[180px] max-sm:w-[180px]'
221
254
  }
@@ -223,7 +256,10 @@ const LeftTextItem = ({
223
256
  {/*이미지*/}
224
257
  <span
225
258
  className={
226
- 'absolute bottom-0 left-0 block h-[299px] w-[279px] overflow-hidden max-xl:h-[149px] max-xl:w-[139px] max-xl:rounded-tr-[100px] max-sm:h-[160px] max-sm:w-[160px]'
259
+ 'absolute bottom-0 left-0 block h-[299px] w-[279px] overflow-hidden ' +
260
+ 'max-3xl:h-[219px] max-3xl:w-[199px] max-3xl:rounded-tr-[100px] ' +
261
+ 'max-xl:h-[149px] max-xl:w-[139px] max-xl:rounded-tr-[50px] ' +
262
+ 'max-sm:h-[159px] max-sm:w-[159px] max-sm:rounded-tr-[100px]'
227
263
  }
228
264
  >
229
265
  <Image
@@ -231,7 +267,15 @@ const LeftTextItem = ({
231
267
  alt={'강점'}
232
268
  fill
233
269
  sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px"
234
- className={'object-contain object-left max-sm:hidden'}
270
+ className={'object-contain object-right max-3xl:scale-110 max-lg:hidden'}
271
+ quality={100}
272
+ />
273
+ <Image
274
+ src={imagePath + `/strength_new/people_tab_${index + 1}.webp`}
275
+ alt={'강점'}
276
+ fill
277
+ sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px"
278
+ className={'object-contain object-left max-sm:hidden lg:hidden'}
235
279
  quality={100}
236
280
  />
237
281
  <Image
@@ -249,28 +293,30 @@ const LeftTextItem = ({
249
293
  <div
250
294
  className={
251
295
  'relative w-full pr-[120px] pt-[100px] ' +
296
+ 'max-3xl:pr-[100px] max-3xl:pt-20 ' +
252
297
  'max-xl:pr-[60px] max-xl:pt-[50px] ' +
253
298
  'max-sm:pr-5 max-sm:pt-5'
254
299
  }
255
300
  >
256
301
  {/*보더*/}
257
302
  <div
258
- style={{ paddingLeft: padding }}
303
+ style={width > 1919 ? { paddingLeft: padding } : {}}
259
304
  className={
260
- 'relative w-full rounded-tr-[100px] border-r border-t border-solid border-r-[#4E00B3] border-t-[#4E00B3] pb-[100px] pr-[280px] ' +
261
- 'max-full:!pl-[140px] ' +
262
- 'max-3xl:!pl-20 ' +
263
- 'max-xl:pb-[50px] max-xl:pr-[140px] ' +
264
- 'max-lg:!pl-[60px] ' +
305
+ 'relative w-full rounded-tr-[100px] border-r border-t border-solid border-r-[#5368C4] border-t-[#5368C4] pb-[100px] pr-[280px] ' +
306
+ 'max-full:pl-[140px] ' +
307
+ 'max-3xl:pl-20 max-3xl:pr-[200px] ' +
308
+ 'max-xl:rounded-tr-[50px] max-xl:pb-[50px] max-xl:pr-[140px] ' +
309
+ 'max-lg:pl-[60px] ' +
265
310
  'max-md:pr-10 max-md:pt-[140px] ' +
266
- 'max-sm:!pl-5 max-sm:pb-5 max-sm:pr-0 max-sm:pt-[160px]'
311
+ 'max-sm:rounded-tr-[100px] max-sm:!pl-5 max-sm:pb-5 max-sm:pr-0 max-sm:pt-[160px]'
267
312
  }
268
313
  >
269
314
  {/*글자내용*/}
270
315
  <div
271
316
  className={
272
317
  'relative flex min-h-[360px] w-full flex-col gap-10 px-[120px] pb-[65px] pt-[60px] ' +
273
- 'max-3xl:gap-7 max-3xl:pr-20 ' +
318
+ 'max-5xl:pr-[100px] ' +
319
+ 'max-3xl:pl-[100px] ' +
274
320
  'max-xl:min-h-[228px] max-xl:gap-5 max-xl:p-10 max-xl:pl-[60px] ' +
275
321
  'max-sm:p-5 max-sm:pb-10 '
276
322
  }
@@ -280,41 +326,32 @@ const LeftTextItem = ({
280
326
  'whitespace-pre-wrap text-[36px] font-[800] leading-[1.3] ' +
281
327
  'max-5xl:text-[34px] ' +
282
328
  'max-3xl:text-[32px] ' +
283
- 'max-xl:text-[24px] ' +
284
- 'max-sm:text-[20px]'
329
+ 'max-xl:text-[24px] '
285
330
  }
286
331
  dangerouslySetInnerHTML={{
287
332
  __html: replaceInitialData(
288
- item.title.replace(
289
- '*consult_date*',
290
- `<span class='text-[20px]'>*consult_date*</span>`
291
- ),
333
+ item.title
334
+ .replace('(', `<span class='text-[20px] font-medium max-xl:text-[16px]'>(`)
335
+ .replace(')', `)</span>`),
292
336
  initialData
293
337
  )
294
338
  }}
295
- ></h2>
339
+ />
296
340
  <p
297
341
  className={
298
- 'relative z-10 whitespace-pre-wrap text-[24px] font-[400] leading-[1.4] ' +
342
+ 'relative z-20 whitespace-pre-wrap text-[24px] font-[400] leading-[1.4] ' +
299
343
  'max-5xl:text-[22px] ' +
300
344
  'max-3xl:text-[20px] ' +
301
345
  'max-xl:text-[16px]'
302
346
  }
303
- >
304
- {replaceInitialData(item.desc, initialData)}
305
- </p>
306
- <p
347
+ dangerouslySetInnerHTML={{ __html: replaceInitialData(item.desc, initialData) }}
348
+ ></p>
349
+ <ItemNumber
350
+ index={index}
307
351
  className={
308
- 'absolute right-[120px] top-[30px] z-0 text-[200px] font-[900] leading-none text-[#E7E7E7] opacity-25 ' +
309
- 'max-3xl:top-[40px] max-3xl:text-[150px] ' +
310
- 'max-xl:right-10 max-xl:top-8 max-xl:text-[120px] ' +
311
- 'max-md2:text-[100px] ' +
312
- 'max-md:left-[60px] max-md:top-[-65px] ' +
313
- 'max-sm:left-5 max-sm:top-[-80px] max-sm:text-[80px]'
352
+ 'right-[120px] top-[30px] max-3xl:top-[40px] max-xl:right-10 max-xl:top-8 max-md:left-[60px] max-md:top-[-68px] max-sm:left-5 max-sm:top-[-80px] '
314
353
  }
315
- >
316
- 0{index + 1}
317
- </p>{' '}
354
+ />
318
355
  </div>
319
356
  </div>
320
357
  </div>