@daeryun/dr_components 1.1.83 → 1.1.85

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.
@@ -2,28 +2,34 @@ import Image from 'next/image';
2
2
  import React from 'react';
3
3
  import Link from 'next/link';
4
4
  import Wrapper from '../Layout/Wrapper';
5
+ import useBrowser from '../hook/useBrowser';
5
6
 
6
7
  import LineWashington from '../../asset/images/globalOffice/washington_line.svg';
7
- import LineNewYork from '../../asset/images/globalOfficenewyork_line.svg';
8
- import LineKorea from '../../asset/images/globalOfficekorea_line.svg';
9
- import IconArrow from '../../asset/images/globalOfficeglobal_arrow.svg';
10
- import LineWashingtonMd from '../../asset/images/globalOfficewashington_line_md.svg';
11
- import LineNewYorkMd from '../../asset/images/globalOfficenewyork_line_md.svg';
12
- import LineKoreaMd from '../../asset/images/globalOfficekorea_line_md.svg';
13
- import LineWashingtonSm from '../../asset/images/globalOfficewashington_line_sm.svg';
14
- import LineNewYorkSm from '../../asset/images/globalOfficenewyork_line_sm.svg';
15
- import LineKoreaSm from '../../asset/images/globalOfficekorea_line_sm.svg';
16
- import useBrowser from '../hook/useBrowser';
8
+ import LineNewYork from '../../asset/images/globalOffice/newyork_line.svg';
9
+ import LineKorea from '../../asset/images/globalOffice/korea_line.svg';
10
+ import IconArrow from '../../asset/images/globalOffice/global_arrow.svg';
11
+ import LineWashingtonMd from '../../asset/images/globalOffice/washington_line_md.svg';
12
+ import LineNewYorkMd from '../../asset/images/globalOffice/newyork_line_md.svg';
13
+ import LineKoreaMd from '../../asset/images/globalOffice/korea_line_md.svg';
14
+ import LineWashingtonSm from '../../asset/images/globalOffice/washington_line_sm.svg';
15
+ import LineNewYorkSm from '../../asset/images/globalOffice/newyork_line_sm.svg';
16
+ import LineKoreaSm from '../../asset/images/globalOffice/korea_line_sm.svg';
17
+
18
+ // 좌표계산용
19
+ const MAP_W = 3873;
20
+ const MAP_H = 1853;
17
21
 
18
- const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView: (v: boolean) => void }) => {
22
+ const GlobalOfficeSection = () => {
19
23
  const { width } = useBrowser(true);
24
+
20
25
  return (
21
- <div
26
+ <section
22
27
  className={
23
- 'z-[6] h-[1300px] w-full bg-white transition-opacity duration-700 ' +
24
- 'max-[1935px]:aspect-[1935/1300] max-[1935px]:h-auto ' +
28
+ 'relative z-[6] h-[1300px] w-full overflow-hidden bg-white transition-opacity duration-700 ' +
29
+ 'max-[1935px]:aspect-[1935/1000] max-[1935px]:h-auto ' +
25
30
  'max-xl:aspect-[900/790] ' +
26
- 'max-md:aspect-[360/640] '
31
+ 'max-md:aspect-[360/700] ' +
32
+ 'max-[360px]:aspect-auto max-[360px]:h-[700px] '
27
33
  }
28
34
  >
29
35
  <Image
@@ -39,24 +45,27 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
39
45
  <span
40
46
  className={
41
47
  'absolute bottom-[200px] z-[1] w-[800px] ' +
42
- 'max-[1935px]:bottom-[10.34vw] max-[1935px]:w-[41.37vw] ' +
43
- 'max-xl:w-[70.37vw] ' +
44
- 'max-md:bottom-[16.67vw] max-md:w-[80vw] '
48
+ 'max-[1935px]:bottom-[6vw] max-[1935px]:w-[41.37vw] ' +
49
+ 'max-xl:bottom-[10.34vw] max-xl:w-[70.37vw] ' +
50
+ 'max-md:bottom-[50px] max-md:w-[80vw] ' +
51
+ 'max-[360px]:bottom-[60px] max-[360px]:w-[290px] '
45
52
  }
46
53
  >
47
54
  <h2
48
55
  className={
49
56
  'flex items-center gap-[10px] text-[#04325A] ' +
50
57
  'max-[1935px]:gap-[0.52vw] ' +
51
- 'max-xl:gap-[1.8vw] '
58
+ 'max-xl:gap-[1.8vw] ' +
59
+ 'max-[360px]:gap-[7px]'
52
60
  }
53
61
  >
54
62
  <span
55
63
  className={
56
64
  'text-[250px] font-[900] leading-none ' +
57
- 'max-[1935px]:text-[12.92vw] ' +
65
+ 'max-[1935px]:text-[10vw] ' +
58
66
  'max-xl:text-[17.78vw] ' +
59
- 'max-md:text-[27vw] '
67
+ 'max-md:text-[27vw] ' +
68
+ 'max-[360px]:text-[97.2px]'
60
69
  }
61
70
  >
62
71
  3
@@ -64,9 +73,10 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
64
73
  <span
65
74
  className={
66
75
  'pt-[24px] text-[70px] font-[700] tracking-[-0.9px] ' +
67
- 'max-[1935px]:pt-[1.24vw] max-[1935px]:text-[3.62vw] max-[1935px]:tracking-[-0.05vw] ' +
76
+ 'max-[1935px]:pt-[1.24vw] max-[1935px]:text-[3.2vw] max-[1935px]:tracking-[-0.05vw] ' +
68
77
  'max-xl:text-[5.3vw] max-xl:tracking-[-0.15vw] ' +
69
- 'max-md:translate-y-[-40%] max-md:pt-0 max-md:text-[8vw] '
78
+ 'max-md:translate-y-[-40%] max-md:pt-0 max-md:text-[8vw] ' +
79
+ 'max-[360px]:text-[28.8px]'
70
80
  }
71
81
  >
72
82
  Global Offices
@@ -75,9 +85,10 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
75
85
  <span
76
86
  className={
77
87
  'absolute bottom-[8px] left-[170px] flex items-center gap-[36px] ' +
78
- 'max-[1935px]:bottom-[0.41vw] max-[1935px]:left-[8.79vw] max-[1935px]:gap-[1.86vw] ' +
88
+ 'max-[1935px]:bottom-[0.41vw] max-[1935px]:left-[7.1vw] max-[1935px]:gap-[1.86vw] ' +
79
89
  'max-xl:bottom-[1vw] max-xl:left-[13vw] max-xl:gap-[3.8vw] ' +
80
- 'max-md:bottom-[3vw] max-md:left-[19vw] max-md:flex-wrap max-md:gap-y-[0.7vw] '
90
+ 'max-md:bottom-[3vw] max-md:left-[19vw] max-md:flex-wrap max-md:gap-y-[0.7vw] ' +
91
+ 'max-[360px]:bottom-[10.8px] max-[360px]:left-[69px] max-[360px]:gap-y-[2.52px]'
81
92
  }
82
93
  >
83
94
  <TextCon text={'korea'} />
@@ -85,66 +96,58 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
85
96
  <TextCon text={'WASHINGTON'} />
86
97
  </span>
87
98
  </span>
88
-
89
- <div className={'h-full w-full '}>
90
- {width >= 1280 ? (
91
- <Image
92
- src={'https://d1tgonli21s4df.cloudfront.net/main_new/global_map.webp'}
93
- alt=""
94
- fill
95
- draggable="false"
96
- loading={'lazy'}
97
- className={
98
- 'h-full w-full translate-y-[10%] scale-[1.2] object-contain object-top ' +
99
- 'max-4xl:translate-y-[5%] max-4xl:scale-110'
100
- }
101
- />
102
- ) : (
103
- <Image
104
- src={'https://d1tgonli21s4df.cloudfront.net/main_new/global_map_md.webp'}
105
- alt=""
106
- fill
107
- draggable="false"
108
- loading={'lazy'}
109
- className={
110
- 'h-full w-full translate-x-[7%] translate-y-[5%] scale-[0.97] object-contain object-top ' +
111
- 'max-md:translate-x-[-4.5%] max-md:translate-y-[-8%] max-md:scale-[1.25] max-md:object-center'
112
- }
113
- />
114
- )}
115
-
99
+ <div
100
+ className={
101
+ 'relative h-fit w-full translate-y-[-200px] scale-110 ' +
102
+ 'max-4xl:translate-y-[-250px] max-4xl:scale-105 ' +
103
+ 'max-xl:translate-x-[100px] max-xl:translate-y-[-100px] max-xl:scale-110 ' +
104
+ 'max-lg:max-xl:translate-y-[-60px] max-lg:translate-x-[70px] ' +
105
+ 'max-md:translate-x-[-20px] max-md:translate-y-[100%] max-md:scale-[1.5] ' +
106
+ 'max-2sm:translate-y-[95%] '
107
+ }
108
+ >
109
+ {/*지도 이미지*/}
110
+ <Image
111
+ src={'https://d1tgonli21s4df.cloudfront.net/main_new/global_map.webp'}
112
+ alt=""
113
+ width={MAP_W}
114
+ height={MAP_H}
115
+ draggable="false"
116
+ loading={'lazy'}
117
+ className={'h-full w-full'}
118
+ />
116
119
  {/*워싱턴*/}
117
120
  <Link
118
121
  href={'https://www.sjkplawfirm.com/'}
119
122
  target={'_blank'}
123
+ style={{ left: `${(930 / MAP_W) * 100}%`, top: `${(730 / MAP_H) * 100}%` }}
120
124
  className={
121
125
  'group absolute h-fit w-fit object-cover ' +
122
- 'left-[385px] top-[400px] -translate-x-[100%] -translate-y-[42px] ' +
123
- 'max-[1935px]:left-[19.89vw] max-[1935px]:top-[20.67vw] max-[1935px]:-translate-y-[2.17vw] ' +
124
- 'max-4xl:left-[22.2vw] max-4xl:top-[18.6vw] ' +
125
- 'max-xl:left-[31.3vw] max-xl:top-[23.2vw] ' +
126
- 'max-md:left-[13.7vw] max-md:top-[65vw] max-md:translate-x-0 max-md:translate-y-0 '
126
+ '-translate-x-[100%] -translate-y-[42px] ' +
127
+ 'max-[1935px]:-translate-y-[2.17vw] max-4xl:-translate-y-[2.6vw] max-xl:-translate-y-[4.17vw] ' +
128
+ 'max-md:translate-x-0 max-md:translate-y-0 '
127
129
  }
128
130
  >
129
131
  <span className={'relative block h-fit w-fit '}>
130
132
  {width >= 1280 ? (
131
133
  <LineWashington
132
134
  className={
133
- 'h-auto w-[289px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
134
- 'max-[1935px]:w-[14.94vw] ' +
135
- 'max-4xl:w-[17vw] '
135
+ 'h-auto w-[260px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
136
+ 'max-[1935px]:w-[13.44vw] ' +
137
+ 'max-4xl:w-[16vw] '
136
138
  }
137
139
  />
138
140
  ) : width >= 768 ? (
139
141
  <LineWashingtonMd
140
142
  className={
141
- 'h-auto w-[23vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '
143
+ 'h-auto w-[21vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '
142
144
  }
143
145
  />
144
146
  ) : (
145
147
  <LineWashingtonSm
146
148
  className={
147
- 'h-auto w-[30.2vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '
149
+ 'h-auto w-[22.44vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
150
+ 'max-[360px]:w-[80.8px]'
148
151
  }
149
152
  />
150
153
  )}
@@ -157,12 +160,13 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
157
160
  />
158
161
  <p
159
162
  className={
160
- 'absolute -top-[50px] flex h-[50px] w-fit items-end text-[24px] font-[900] uppercase tracking-[-0.5px] text-[#04325A] ' +
161
- 'transition-[color,font-size] duration-300 group-hover:text-[28px] group-hover:text-[#285FA7] ' +
162
- 'max-[1935px]:-top-[2.58vw] max-[1935px]:h-[2.58vw] max-[1935px]:text-[1.24vw] max-[1935px]:group-hover:text-[1.45vw] ' +
163
- 'max-4xl:text-[1.7vw] max-4xl:group-hover:text-[1.9vw] ' +
164
- 'max-xl:text-[2.22vw] max-xl:group-hover:text-[2.67vw] ' +
165
- 'max-md:bottom-[0.8vw] max-md:right-0 max-md:top-[unset] max-md:text-[4vw] max-md:tracking-[-0.1vw] max-md:group-hover:text-[4vw] '
163
+ 'absolute -top-[50px] flex h-[50px] w-fit items-end text-[22px] font-[900] uppercase tracking-[-0.5px] text-[#04325A] ' +
164
+ 'transition-[color,font-size] duration-300 group-hover:text-[26px] group-hover:text-[#285FA7] ' +
165
+ 'max-[1935px]:-top-[2.58vw] max-[1935px]:h-[2.58vw] max-[1935px]:text-[1.14vw] max-[1935px]:group-hover:text-[1.34vw] ' +
166
+ 'max-4xl:-top-[3vw] max-4xl:text-[1.5vw] max-4xl:group-hover:text-[1.7vw] ' +
167
+ 'max-xl:text-[2.1vw] max-xl:tracking-[-0.1vw] max-xl:group-hover:text-[2.4vw] ' +
168
+ 'max-md:bottom-[0.8vw] max-md:right-0 max-md:top-[unset] max-md:text-[3.06vw] max-md:tracking-[-0.1vw] max-md:group-hover:text-[3.06vw] ' +
169
+ 'max-[360px]:bottom-[2.88px] max-[360px]:h-fit max-[360px]:text-[11px] max-[360px]:tracking-[-0.4px] max-[360px]:group-hover:text-[11px]'
166
170
  }
167
171
  >
168
172
  WASHINGTON
@@ -170,11 +174,12 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
170
174
  </span>
171
175
  <div
172
176
  className={
173
- 'relative aspect-square w-[240px] translate-y-[-15px] overflow-hidden bg-[#ddd] ' +
174
- 'max-[1935px]:w-[12.40vw] max-[1935px]:translate-y-[-0.78vw] ' +
175
- 'max-4xl:w-[14.2vw] ' +
176
- 'max-xl:w-[20vw] max-xl:translate-y-[-2.53vw] ' +
177
- 'max-md:mt-[2.22vw] max-md:w-[30vw] max-md:translate-y-0 '
177
+ 'relative aspect-square w-[220px] translate-y-[-15px] overflow-hidden bg-[#ddd] ' +
178
+ 'max-[1935px]:w-[11.37vw] max-[1935px]:translate-y-[-0.78vw] ' +
179
+ 'max-4xl:w-[13vw] ' +
180
+ 'max-xl:w-[18.1vw] max-xl:translate-y-[-2.2vw] ' +
181
+ 'max-md:mt-[2.55vw] max-md:w-[22.22vw] max-md:translate-y-0 ' +
182
+ 'max-[360px]:mt-[8px] max-[360px]:w-[80px] '
178
183
  }
179
184
  >
180
185
  <Image
@@ -188,19 +193,39 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
188
193
  className={'h-full w-full object-cover ' + 'duration-700 group-hover:scale-105'}
189
194
  />
190
195
  </div>
196
+ <div
197
+ className={
198
+ 'flex h-[55px] w-[220px] translate-y-[-16px] items-center justify-between bg-[#04325A] px-[26px] text-[18px] tracking-[-0.9px] text-white ' +
199
+ 'transition-colors group-hover:bg-[#285FA7] ' +
200
+ 'max-[1935px]:h-[2.84vw] max-[1935px]:w-[11.37vw] max-[1935px]:translate-y-[-0.83vw] max-[1935px]:px-[1.34vw] max-[1935px]:text-[0.93vw] max-[1935px]:tracking-[-0.05vw] ' +
201
+ 'max-4xl:h-[3.5vw] max-4xl:w-[13vw] max-4xl:text-[1.1vw] ' +
202
+ 'max-xl:h-[5vw] max-xl:w-[18.1vw] max-xl:translate-y-[-2.3vw] max-xl:text-[1.7vw] ' +
203
+ 'max-md:h-[6.39vw] max-md:w-[22.22vw] max-md:translate-y-[-1px] max-md:px-[2vw] max-md:text-[1.8vw] ' +
204
+ 'max-[360px]:h-[23px] max-[360px]:w-[80px] max-[360px]:px-[5px] max-[360px]:text-[7px] '
205
+ }
206
+ >
207
+ 홈페이지 바로가기
208
+ <IconArrow
209
+ className={
210
+ 'h-auto w-[16px] ' +
211
+ 'max-[1935px]:w-[0.83vw] ' +
212
+ 'max-4xl:w-[1vw] ' +
213
+ 'max-xl:w-[1.5vw] ' +
214
+ 'max-md:w-[2vw] ' +
215
+ 'max-[360px]:w-[7px]'
216
+ }
217
+ />
218
+ </div>
191
219
  </Link>
192
220
 
193
221
  {/*뉴욕*/}
194
222
  <Link
195
223
  href={'https://www.sjkplawfirm.com/'}
196
224
  target={'_blank'}
225
+ style={{ left: `${(980 / MAP_W) * 100}%`, top: `${(670 / MAP_H) * 100}%` }}
197
226
  className={
198
227
  'group absolute flex h-fit w-fit flex-col items-end object-cover ' +
199
- 'left-[408px] top-[372px] ' +
200
- 'max-[1935px]:left-[21.09vw] max-[1935px]:top-[19.23vw] ' +
201
- 'max-4xl:left-[23.6vw] max-4xl:top-[17.5vw] ' +
202
- 'max-xl:left-[32.5vw] max-xl:top-[24vw] ' +
203
- 'max-md:left-[15.1vw] max-md:top-[14vw] max-md:flex-col-reverse '
228
+ 'max-md:-translate-y-[100%] max-md:flex-col-reverse '
204
229
  }
205
230
  >
206
231
  <span className={'relative block h-fit w-fit '}>
@@ -209,19 +234,20 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
209
234
  className={
210
235
  'h-auto w-[269px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
211
236
  'max-[1935px]:w-[13.90vw] ' +
212
- 'max-4xl:w-[16.4vw]'
237
+ 'max-4xl:w-[15.2vw]'
213
238
  }
214
239
  />
215
240
  ) : width >= 768 ? (
216
241
  <LineNewYorkMd
217
242
  className={
218
- 'h-auto w-[22.78vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '
243
+ 'h-auto w-[21vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '
219
244
  }
220
245
  />
221
246
  ) : (
222
247
  <LineNewYorkSm
223
248
  className={
224
- 'h-auto w-[40vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '
249
+ 'h-auto w-[28.61vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
250
+ 'max-[360px]:w-[103px] '
225
251
  }
226
252
  />
227
253
  )}
@@ -234,12 +260,13 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
234
260
  />
235
261
  <p
236
262
  className={
237
- 'absolute bottom-0 right-0 text-[24px] font-[900] uppercase tracking-[-0.5px] text-[#04325A] ' +
238
- 'transition-[color,font-size] duration-300 group-hover:text-[28px] group-hover:text-[#285FA7] ' +
239
- 'max-[1935px]:text-[1.24vw] max-[1935px]:group-hover:text-[1.45vw] ' +
240
- 'max-4xl:text-[1.7vw] max-4xl:group-hover:text-[1.9vw] ' +
241
- 'max-xl:text-[2.22vw] max-xl:group-hover:text-[2.67vw] ' +
242
- 'max-md:bottom-[unset] max-md:top-[0.5vw] max-md:text-[4vw] max-md:tracking-[-0.1vw] max-md:group-hover:text-[4vw] '
263
+ 'absolute bottom-0 right-0 text-[22px] font-[900] uppercase tracking-[-0.5px] text-[#04325A] ' +
264
+ 'transition-[color,font-size] duration-300 group-hover:text-[26px] group-hover:text-[#285FA7] ' +
265
+ 'max-[1935px]:text-[1.14vw] max-[1935px]:group-hover:text-[1.34vw] ' +
266
+ 'max-4xl:text-[1.5vw] max-4xl:group-hover:text-[1.7vw] ' +
267
+ 'max-xl:bottom-[0.6vw] max-xl:text-[2.1vw] max-xl:tracking-[-0.1vw] max-xl:group-hover:text-[2.4vw] ' +
268
+ 'max-md:bottom-[unset] max-md:top-[0.5vw] max-md:text-[3.06vw] max-md:tracking-[-0.1vw] max-md:group-hover:text-[3.06vw] ' +
269
+ 'max-[360px]:top-[1.8px] max-[360px]:text-[11px] max-[360px]:tracking-[-0.4px] max-[360px]:group-hover:text-[11px] '
243
270
  }
244
271
  >
245
272
  New York
@@ -247,11 +274,12 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
247
274
  </span>
248
275
  <div
249
276
  className={
250
- 'relative mt-[20px] aspect-square w-[240px] overflow-hidden bg-[#ddd] ' +
251
- 'max-[1935px]:mt-[1.03vw] max-[1935px]:w-[12.40vw] ' +
252
- 'max-4xl:w-[14.2vw] ' +
253
- 'max-xl:mt-[1.53vw] max-xl:w-[20vw] ' +
254
- 'max-md:mb-[2.22vw] max-md:mt-0 max-md:w-[30vw]'
277
+ 'relative mt-[20px] aspect-square w-[220px] overflow-hidden bg-[#ddd] ' +
278
+ 'max-[1935px]:mt-[1.03vw] max-[1935px]:w-[11.37vw] ' +
279
+ 'max-4xl:w-[13vw] ' +
280
+ 'max-xl:mt-[1.49vw] max-xl:w-[18.1vw] ' +
281
+ 'max-md:order-2 max-md:mb-[2.22vw] max-md:mt-0 max-md:w-[22.22vw] ' +
282
+ 'max-[360px]:mb-[8px] max-[360px]:w-[80px] '
255
283
  }
256
284
  >
257
285
  <Image
@@ -265,21 +293,39 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
265
293
  className={'h-full w-full object-cover ' + 'duration-700 group-hover:scale-105'}
266
294
  />
267
295
  </div>
296
+ <div
297
+ className={
298
+ 'flex h-[55px] w-[220px] translate-y-[-1px] items-center justify-between bg-[#04325A] px-[26px] text-[18px] tracking-[-0.9px] text-white ' +
299
+ 'transition-colors group-hover:bg-[#285FA7] ' +
300
+ 'max-[1935px]:h-[2.84vw] max-[1935px]:w-[11.37vw] max-[1935px]:px-[1.34vw] max-[1935px]:text-[0.93vw] max-[1935px]:tracking-[-0.05vw] ' +
301
+ 'max-4xl:h-[3.5vw] max-4xl:w-[13vw] max-4xl:text-[1.1vw] ' +
302
+ 'max-xl:h-[5vw] max-xl:w-[18.1vw] max-xl:text-[1.7vw] ' +
303
+ 'max-md:order-1 max-md:h-[6.39vw] max-md:w-[22.22vw] max-md:translate-y-[-2.5vw] max-md:px-[2vw] max-md:text-[1.8vw] ' +
304
+ 'max-md:translate-y-[-9px] max-[360px]:h-[23px] max-[360px]:w-[80px] max-[360px]:px-[5px] max-[360px]:text-[7px] '
305
+ }
306
+ >
307
+ 홈페이지 바로가기
308
+ <IconArrow
309
+ className={
310
+ 'h-auto w-[16px] ' +
311
+ 'max-[1935px]:w-[0.83vw] ' +
312
+ 'max-4xl:w-[1vw] ' +
313
+ 'max-xl:w-[1.5vw] ' +
314
+ 'max-md:w-[2vw] ' +
315
+ 'max-[360px]:w-[7px]'
316
+ }
317
+ />
318
+ </div>
268
319
  </Link>
269
320
 
270
321
  {/*한국*/}
271
- <button
322
+ <Link
323
+ style={{ right: `${(615 / MAP_W) * 100}%`, top: `${(685 / MAP_H) * 100}%` }}
272
324
  className={
273
- 'group absolute h-fit w-fit cursor-pointer object-cover ' +
274
- 'right-[203px] top-[380px] translate-x-[40px] ' +
275
- 'max-[1935px]:right-[10.49vw] max-[1935px]:top-[19.64vw] max-[1935px]:translate-x-[2.07vw] ' +
276
- 'max-4xl:right-[14.9vw] max-4xl:top-[18vw] ' +
277
- 'max-xl:right-[12.1vw] max-xl:top-[24.4vw] ' +
278
- 'max-md:right-[13.7vw] max-md:top-[64.6vw] '
325
+ 'group absolute h-fit w-fit translate-x-[20px] cursor-pointer object-cover ' +
326
+ 'max-[1935px]:translate-x-[1.03vw] max-4xl:translate-x-[0.9vw] max-xl:translate-x-0'
279
327
  }
280
- onClick={() => {
281
- setIsView(false);
282
- }}
328
+ href={'/map/seoulbon?scroll=false'}
283
329
  >
284
330
  <span className={'relative block h-fit w-fit '}>
285
331
  {width >= 1280 ? (
@@ -287,36 +333,34 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
287
333
  className={
288
334
  'h-auto w-[199px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
289
335
  'max-[1935px]:w-[10.28vw] ' +
290
- 'max-4xl:w-[13.2vw] '
336
+ 'max-4xl:w-[12vw] '
291
337
  }
292
338
  />
293
339
  ) : width >= 768 ? (
294
340
  <LineKoreaMd
295
341
  className={
296
- 'h-auto w-[21.78vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '
342
+ 'h-auto w-[21vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '
297
343
  }
298
344
  />
299
345
  ) : (
300
346
  <LineKoreaSm
301
347
  className={
302
- 'h-auto w-[29.8vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '
348
+ 'h-auto w-[21.67vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
349
+ 'max-[360px]:w-[78px]'
303
350
  }
304
351
  />
305
352
  )}
306
353
 
307
- <Ping
308
- className={
309
- 'right-0 top-0 -translate-y-1/2 translate-x-1/2 ' + 'max-md:-translate-y-[80%] '
310
- }
311
- />
354
+ <Ping className={'right-0 top-0 -translate-y-1/2 translate-x-1/2 '} />
312
355
  <p
313
356
  className={
314
- 'absolute bottom-0 left-0 text-[24px] font-[900] uppercase tracking-[-0.5px] text-[#04325A] ' +
315
- 'transition-[color,font-size] duration-300 group-hover:text-[28px] group-hover:text-[#285FA7] ' +
316
- 'max-[1935px]:text-[1.24vw] max-[1935px]:group-hover:text-[1.45vw] ' +
317
- 'max-4xl:text-[1.7vw] max-4xl:group-hover:text-[1.9vw] ' +
318
- 'max-xl:text-[2.22vw] max-xl:group-hover:text-[2.67vw] ' +
319
- 'max-md:bottom-[0.8vw] max-md:text-[4vw] max-md:tracking-[-0.1vw] max-md:group-hover:text-[4vw]'
357
+ 'absolute bottom-0 left-0 text-[22px] font-[900] uppercase tracking-[-0.5px] text-[#04325A] ' +
358
+ 'transition-[color,font-size] duration-300 group-hover:text-[26px] group-hover:text-[#285FA7] ' +
359
+ 'max-[1935px]:text-[1.14vw] max-[1935px]:group-hover:text-[1.34vw] ' +
360
+ 'max-4xl:text-[1.5vw] max-4xl:group-hover:text-[1.7vw] ' +
361
+ 'max-xl:bottom-[0.6vw] max-xl:text-[2.1vw] max-xl:tracking-[-0.1vw] max-xl:group-hover:text-[2.4vw] ' +
362
+ 'max-md:bottom-[0.8vw] max-md:h-fit max-md:text-[3.06vw] max-md:tracking-[-0.1vw] max-md:group-hover:text-[3.06vw] ' +
363
+ 'max-[360px]:bottom-[2.88px] max-[360px]:h-fit max-[360px]:text-[11px] max-[360px]:tracking-[-0.4px] max-[360px]:group-hover:text-[11px]'
320
364
  }
321
365
  >
322
366
  korea
@@ -324,11 +368,12 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
324
368
  </span>
325
369
  <div
326
370
  className={
327
- 'relative mt-[20px] aspect-square w-[240px] overflow-hidden bg-[#ddd] ' +
328
- 'max-[1935px]:mt-[1.03vw] max-[1935px]:w-[12.40vw] ' +
329
- 'max-4xl:w-[14.2vw] ' +
330
- 'max-xl:mt-[1.53vw] max-xl:w-[20vw] ' +
331
- 'max-md:mt-[2vw] max-md:w-[30vw]'
371
+ 'relative mt-[20px] aspect-square w-[220px] overflow-hidden bg-[#ddd] ' +
372
+ 'max-[1935px]:mt-[1.03vw] max-[1935px]:w-[11.37vw] ' +
373
+ 'max-4xl:w-[13vw] ' +
374
+ 'max-xl:mt-[1.49vw] max-xl:w-[18.1vw] ' +
375
+ 'max-md:mt-[2vw] max-md:w-[22.22vw] ' +
376
+ 'max-[360px]:mt-[8px] max-[360px]:w-[80px] '
332
377
  }
333
378
  >
334
379
  <Image
@@ -347,12 +392,13 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
347
392
  </div>
348
393
  <div
349
394
  className={
350
- 'flex h-[60px] w-[240px] items-center justify-between bg-[#04325A] px-[28px] text-[20px] tracking-[-0.9px] text-white ' +
395
+ 'flex h-[55px] w-[220px] translate-y-[-1px] items-center justify-between bg-[#04325A] px-[26px] text-[18px] tracking-[-0.9px] text-white ' +
351
396
  'transition-colors group-hover:bg-[#285FA7] ' +
352
- 'max-[1935px]:h-[3.10vw] max-[1935px]:w-[12.40vw] max-[1935px]:px-[1.45vw] max-[1935px]:text-[1.03vw] max-[1935px]:tracking-[-0.05vw] ' +
353
- 'max-4xl:h-[3.8vw] max-4xl:w-[14.2vw] max-4xl:text-[1.25vw] ' +
354
- 'max-xl:h-[5.11vw] max-xl:w-[20vw] max-xl:text-[1.8vw] ' +
355
- 'max-md:h-[8vw] max-md:w-[30vw] max-md:px-[2.5vw] max-md:text-[2.7vw]'
397
+ 'max-[1935px]:h-[2.84vw] max-[1935px]:w-[11.37vw] max-[1935px]:px-[1.34vw] max-[1935px]:text-[0.93vw] max-[1935px]:tracking-[-0.05vw] ' +
398
+ 'max-4xl:h-[3.5vw] max-4xl:w-[13vw] max-4xl:text-[1.1vw] ' +
399
+ 'max-xl:h-[5vw] max-xl:w-[18.1vw] max-xl:text-[1.7vw] ' +
400
+ 'max-md:h-[6.39vw] max-md:w-[22.22vw] max-md:px-[2vw] max-md:text-[1.8vw] ' +
401
+ 'max-[360px]:h-[23px] max-[360px]:w-[80px] max-[360px]:px-[5px] max-[360px]:text-[7px] '
356
402
  }
357
403
  >
358
404
  사무소 더 보기
@@ -361,15 +407,16 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
361
407
  'h-auto w-[16px] ' +
362
408
  'max-[1935px]:w-[0.83vw] ' +
363
409
  'max-4xl:w-[1vw] ' +
364
- 'max-xl:w-[1.65vw] ' +
365
- 'max-md:w-[2vw] '
410
+ 'max-xl:w-[1.5vw] ' +
411
+ 'max-md:w-[2vw] ' +
412
+ 'max-[360px]:w-[7px]'
366
413
  }
367
414
  />
368
415
  </div>
369
- </button>
416
+ </Link>
370
417
  </div>
371
418
  </Wrapper>
372
- </div>
419
+ </section>
373
420
  );
374
421
  };
375
422
 
@@ -377,7 +424,7 @@ export default GlobalOfficeSection;
377
424
 
378
425
  const Ping = ({ className }: { className?: string }) => {
379
426
  return (
380
- <div className={'absolute aspect-square w-[10px] max-xl:scale-[0.8] max-2sm:scale-[0.6] ' + className}>
427
+ <div className={'absolute aspect-square w-[9px] max-xl:scale-[0.8] max-2sm:scale-[0.6] ' + className}>
381
428
  <div
382
429
  className={
383
430
  'absolute left-0 top-0 h-full w-full rounded-full bg-[#04325A] ' +
@@ -387,13 +434,13 @@ const Ping = ({ className }: { className?: string }) => {
387
434
  <div
388
435
  className={
389
436
  'absolute left-0 top-0 h-full w-full rounded-full bg-[#285FA7] opacity-0 ' +
390
- 'group-hover:animate-global_map_ping_1 duration-500'
437
+ 'duration-500 group-hover:animate-global_map_ping_1'
391
438
  }
392
439
  />
393
440
  <div
394
441
  className={
395
442
  'absolute left-0 top-0 h-full w-full rounded-full bg-[#285FA7] opacity-0 ' +
396
- 'group-hover:animate-global_map_ping_2 duration-500'
443
+ 'duration-500 group-hover:animate-global_map_ping_2'
397
444
  }
398
445
  />
399
446
  </div>
@@ -406,9 +453,10 @@ const TextCon = ({ text }: { text: string }) => {
406
453
  className={
407
454
  'text-[30px] font-[700] uppercase tracking-[-0.5px] text-[#7F8791] ' +
408
455
  'before:mr-[16px] before:inline-block before:h-[24px] before:w-[3px] before:bg-[#04325A] before:content-[""] ' +
409
- 'max-[1935px]:text-[1.55vw] max-[1935px]:tracking-[-0.03vw] max-[1935px]:before:mr-[0.83vw] max-[1935px]:before:h-[1.24vw] ' +
456
+ 'max-[1935px]:text-[1.4vw] max-[1935px]:tracking-[-0.03vw] max-[1935px]:before:mr-[0.83vw] max-[1935px]:before:h-[1.1vw] ' +
410
457
  'max-xl:text-[2.4vw] max-xl:tracking-[-0.08vw] max-xl:before:mr-[1.33vw] max-xl:before:h-[2vw] ' +
411
- 'max-md:text-[4vw] max-md:leading-none max-md:before:h-[3.33vw]'
458
+ 'max-md:text-[4vw] max-md:leading-none max-md:before:h-[3.33vw] max-md:before:w-[2px] ' +
459
+ 'max-[360px]:text-[14.4px] max-[360px]:before:h-[12px] '
412
460
  }
413
461
  >
414
462
  {text}
@@ -80,3 +80,4 @@ export { RouteType } from './ListBottomKeywd/RouteType';
80
80
  export * from '../components/common/types/strength_new';
81
81
  export { default as PaginationForGroup } from './PaginationForGroup/PaginationForGroup';
82
82
  export { default as SuccessList } from './page/Success/SuccessList';
83
+ export { default as GlobalOfficeSection } from './GlobalOfficeSection/GlobalOfficeSection';
@@ -80,3 +80,4 @@ export { RouteType } from './ListBottomKeywd/RouteType';
80
80
  export * from '../components/common/types/strength_new';
81
81
  export { default as PaginationForGroup } from './PaginationForGroup/PaginationForGroup';
82
82
  export { default as SuccessList } from './page/Success/SuccessList';
83
+ export { default as GlobalOfficeSection } from './GlobalOfficeSection/GlobalOfficeSection';
@@ -1,6 +1,7 @@
1
1
  import { IMap, IOfficeListTypes } from '../../common/types/map';
2
- declare const MapPage: ({ officeList, mapInfo }: {
2
+ declare const MapPage: ({ officeList, mapInfo, noScroll }: {
3
3
  officeList: IOfficeListTypes[];
4
4
  mapInfo?: IMap;
5
+ noScroll?: boolean;
5
6
  }) => import("react").JSX.Element;
6
7
  export default MapPage;
@@ -20,7 +20,7 @@ import share from '../../../lib/share';
20
20
  import PcMapKeyDetail from './PcMapKeyDetail';
21
21
  import MobileMapKeyDetail from './MobileMapKeyDetail';
22
22
  import MapModal from './MapModal';
23
- const MapPage = ({ officeList, mapInfo }) => {
23
+ const MapPage = ({ officeList, mapInfo, noScroll = false }) => {
24
24
  var _a, _b;
25
25
  const router = useRouter();
26
26
  const { width } = useBrowser();
@@ -39,7 +39,7 @@ const MapPage = ({ officeList, mapInfo }) => {
39
39
  useEffect(() => {
40
40
  if (mapInfo) {
41
41
  setSelectRegion(mapInfo.modified_br_name || '');
42
- if (mapInfo.modified_br_name) {
42
+ if (mapInfo.modified_br_name && noScroll) {
43
43
  setTimeout(() => {
44
44
  scrollToTarget();
45
45
  }, 100);
@@ -14,7 +14,15 @@ import PcMapKeyDetail from './PcMapKeyDetail';
14
14
  import MobileMapKeyDetail from './MobileMapKeyDetail';
15
15
  import MapModal from './MapModal';
16
16
 
17
- const MapPage = ({ officeList, mapInfo }: { officeList: IOfficeListTypes[]; mapInfo?: IMap }) => {
17
+ const MapPage = ({
18
+ officeList,
19
+ mapInfo,
20
+ noScroll = false
21
+ }: {
22
+ officeList: IOfficeListTypes[];
23
+ mapInfo?: IMap;
24
+ noScroll?: boolean;
25
+ }) => {
18
26
  const router = useRouter();
19
27
  const { width } = useBrowser();
20
28
  const [selectRegion, setSelectRegion] = useState<string>('전체');
@@ -34,7 +42,7 @@ const MapPage = ({ officeList, mapInfo }: { officeList: IOfficeListTypes[]; mapI
34
42
  useEffect(() => {
35
43
  if (mapInfo) {
36
44
  setSelectRegion(mapInfo.modified_br_name || '');
37
- if (mapInfo.modified_br_name) {
45
+ if (mapInfo.modified_br_name && noScroll) {
38
46
  setTimeout(() => {
39
47
  scrollToTarget();
40
48
  }, 100);