@daeryun/dr_components 1.1.83 → 1.1.84
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.
- package/dist/asset/images/globalOffice/global_arrow.svg +3 -0
- package/dist/asset/images/globalOffice/icon_arrow_white.webp +0 -0
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.d.ts +1 -4
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.jsx +114 -103
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.stories.d.ts +6 -0
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.stories.jsx +13 -0
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.stories.tsx +22 -0
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.tsx +140 -138
- package/dist/components/index.js +1 -0
- package/dist/components/index.ts +1 -0
- package/dist/components/page/MapPage/MapPage.d.ts +2 -1
- package/dist/components/page/MapPage/MapPage.jsx +2 -2
- package/dist/components/page/MapPage/MapPage.tsx +10 -2
- package/dist/styles/globals.css +371 -279
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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/
|
|
8
|
-
import LineKorea from '../../asset/images/
|
|
9
|
-
import IconArrow from '../../asset/images/
|
|
10
|
-
import LineWashingtonMd from '../../asset/images/
|
|
11
|
-
import LineNewYorkMd from '../../asset/images/
|
|
12
|
-
import LineKoreaMd from '../../asset/images/
|
|
13
|
-
import LineWashingtonSm from '../../asset/images/
|
|
14
|
-
import LineNewYorkSm from '../../asset/images/
|
|
15
|
-
import LineKoreaSm from '../../asset/images/
|
|
16
|
-
|
|
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 = (
|
|
22
|
+
const GlobalOfficeSection = () => {
|
|
19
23
|
const { width } = useBrowser(true);
|
|
24
|
+
|
|
20
25
|
return (
|
|
21
|
-
<
|
|
26
|
+
<section
|
|
22
27
|
className={
|
|
23
|
-
'z-[6] h-[1300px] w-full bg-white transition-opacity duration-700 ' +
|
|
24
|
-
'max-[1935px]:aspect-[1935/
|
|
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/640] ' +
|
|
32
|
+
'max-[360px]:aspect-auto max-[360px]:h-[640px] '
|
|
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-[
|
|
43
|
-
'max-xl:w-[70.37vw] ' +
|
|
44
|
-
'max-md:bottom-[
|
|
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-[
|
|
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.
|
|
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-[
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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-[83%] max-md:scale-[1.5] ' +
|
|
106
|
+
'max-2sm:translate-y-[65%] '
|
|
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
|
-
'group absolute h-fit w-fit object-cover ' +
|
|
122
|
-
'
|
|
123
|
-
'max-[1935px]
|
|
124
|
-
'max-
|
|
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 '
|
|
125
|
+
'global_link group absolute h-fit w-fit object-cover ' +
|
|
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-[
|
|
134
|
-
'max-[1935px]:w-[
|
|
135
|
-
'max-4xl:w-[
|
|
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-[
|
|
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-[
|
|
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-[
|
|
161
|
-
'transition-[color,font-size] duration-300 group-hover:text-[
|
|
162
|
-
'max-[1935px]:-top-[2.58vw] max-[1935px]:h-[2.58vw] max-[1935px]:text-[1.
|
|
163
|
-
'max-4xl:text-[1.
|
|
164
|
-
'max-xl:text-[2.
|
|
165
|
-
'max-md:bottom-[0.8vw] max-md:right-0 max-md:top-[unset] max-md:text-[
|
|
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-[
|
|
174
|
-
'max-[1935px]:w-[
|
|
175
|
-
'max-4xl:w-[
|
|
176
|
-
'max-xl:w-[
|
|
177
|
-
'max-md:mt-[2.
|
|
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
|
|
@@ -194,13 +199,10 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
|
|
|
194
199
|
<Link
|
|
195
200
|
href={'https://www.sjkplawfirm.com/'}
|
|
196
201
|
target={'_blank'}
|
|
202
|
+
style={{ left: `${(980 / MAP_W) * 100}%`, top: `${(670 / MAP_H) * 100}%` }}
|
|
197
203
|
className={
|
|
198
|
-
'group absolute flex h-fit w-fit flex-col items-end object-cover ' +
|
|
199
|
-
'
|
|
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 '
|
|
204
|
+
'global_link group absolute flex h-fit w-fit flex-col items-end object-cover ' +
|
|
205
|
+
'max-md:-translate-y-[100%] max-md:flex-col-reverse '
|
|
204
206
|
}
|
|
205
207
|
>
|
|
206
208
|
<span className={'relative block h-fit w-fit '}>
|
|
@@ -209,19 +211,20 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
|
|
|
209
211
|
className={
|
|
210
212
|
'h-auto w-[269px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
|
|
211
213
|
'max-[1935px]:w-[13.90vw] ' +
|
|
212
|
-
'max-4xl:w-[
|
|
214
|
+
'max-4xl:w-[15.2vw]'
|
|
213
215
|
}
|
|
214
216
|
/>
|
|
215
217
|
) : width >= 768 ? (
|
|
216
218
|
<LineNewYorkMd
|
|
217
219
|
className={
|
|
218
|
-
'h-auto w-[
|
|
220
|
+
'h-auto w-[21vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '
|
|
219
221
|
}
|
|
220
222
|
/>
|
|
221
223
|
) : (
|
|
222
224
|
<LineNewYorkSm
|
|
223
225
|
className={
|
|
224
|
-
'h-auto w-[
|
|
226
|
+
'h-auto w-[28.61vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
|
|
227
|
+
'max-[360px]:w-[103px] '
|
|
225
228
|
}
|
|
226
229
|
/>
|
|
227
230
|
)}
|
|
@@ -234,12 +237,13 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
|
|
|
234
237
|
/>
|
|
235
238
|
<p
|
|
236
239
|
className={
|
|
237
|
-
'absolute bottom-0 right-0 text-[
|
|
238
|
-
'transition-[color,font-size] duration-300 group-hover:text-[
|
|
239
|
-
'max-[1935px]:text-[1.
|
|
240
|
-
'max-4xl:text-[1.
|
|
241
|
-
'max-xl:text-[2.
|
|
242
|
-
'max-md:bottom-[unset] max-md:top-[0.5vw] max-md:text-[
|
|
240
|
+
'absolute bottom-0 right-0 text-[22px] font-[900] uppercase tracking-[-0.5px] text-[#04325A] ' +
|
|
241
|
+
'transition-[color,font-size] duration-300 group-hover:text-[26px] group-hover:text-[#285FA7] ' +
|
|
242
|
+
'max-[1935px]:text-[1.14vw] max-[1935px]:group-hover:text-[1.34vw] ' +
|
|
243
|
+
'max-4xl:text-[1.5vw] max-4xl:group-hover:text-[1.7vw] ' +
|
|
244
|
+
'max-xl:bottom-[0.6vw] max-xl:text-[2.1vw] max-xl:tracking-[-0.1vw] max-xl:group-hover:text-[2.4vw] ' +
|
|
245
|
+
'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] ' +
|
|
246
|
+
'max-[360px]:top-[1.8px] max-[360px]:text-[11px] max-[360px]:tracking-[-0.4px] max-[360px]:group-hover:text-[11px] '
|
|
243
247
|
}
|
|
244
248
|
>
|
|
245
249
|
New York
|
|
@@ -247,11 +251,12 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
|
|
|
247
251
|
</span>
|
|
248
252
|
<div
|
|
249
253
|
className={
|
|
250
|
-
'relative mt-[20px] aspect-square w-[
|
|
251
|
-
'max-[1935px]:mt-[1.03vw] max-[1935px]:w-[
|
|
252
|
-
'max-4xl:w-[
|
|
253
|
-
'max-xl:mt-[1.
|
|
254
|
-
'max-md:mb-[2.22vw] max-md:mt-0 max-md:w-[
|
|
254
|
+
'relative mt-[20px] aspect-square w-[220px] overflow-hidden bg-[#ddd] ' +
|
|
255
|
+
'max-[1935px]:mt-[1.03vw] max-[1935px]:w-[11.37vw] ' +
|
|
256
|
+
'max-4xl:w-[13vw] ' +
|
|
257
|
+
'max-xl:mt-[1.49vw] max-xl:w-[18.1vw] ' +
|
|
258
|
+
'max-md:mb-[2.22vw] max-md:mt-0 max-md:w-[22.22vw] ' +
|
|
259
|
+
'max-[360px]:mb-[8px] max-[360px]:w-[80px] '
|
|
255
260
|
}
|
|
256
261
|
>
|
|
257
262
|
<Image
|
|
@@ -268,18 +273,13 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
|
|
|
268
273
|
</Link>
|
|
269
274
|
|
|
270
275
|
{/*한국*/}
|
|
271
|
-
<
|
|
276
|
+
<Link
|
|
277
|
+
style={{ right: `${(615 / MAP_W) * 100}%`, top: `${(685 / MAP_H) * 100}%` }}
|
|
272
278
|
className={
|
|
273
|
-
'group absolute h-fit w-fit cursor-pointer object-cover ' +
|
|
274
|
-
'
|
|
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] '
|
|
279
|
+
'global_link group absolute h-fit w-fit translate-x-[20px] cursor-pointer object-cover ' +
|
|
280
|
+
'max-[1935px]:translate-x-[1.03vw] max-4xl:translate-x-[0.9vw] max-xl:translate-x-0'
|
|
279
281
|
}
|
|
280
|
-
|
|
281
|
-
setIsView(false);
|
|
282
|
-
}}
|
|
282
|
+
href={'/map/seoulbon?scroll=false'}
|
|
283
283
|
>
|
|
284
284
|
<span className={'relative block h-fit w-fit '}>
|
|
285
285
|
{width >= 1280 ? (
|
|
@@ -287,36 +287,34 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
|
|
|
287
287
|
className={
|
|
288
288
|
'h-auto w-[199px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
|
|
289
289
|
'max-[1935px]:w-[10.28vw] ' +
|
|
290
|
-
'max-4xl:w-[
|
|
290
|
+
'max-4xl:w-[12vw] '
|
|
291
291
|
}
|
|
292
292
|
/>
|
|
293
293
|
) : width >= 768 ? (
|
|
294
294
|
<LineKoreaMd
|
|
295
295
|
className={
|
|
296
|
-
'h-auto w-[
|
|
296
|
+
'h-auto w-[21vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '
|
|
297
297
|
}
|
|
298
298
|
/>
|
|
299
299
|
) : (
|
|
300
300
|
<LineKoreaSm
|
|
301
301
|
className={
|
|
302
|
-
'h-auto w-[
|
|
302
|
+
'h-auto w-[21.67vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
|
|
303
|
+
'max-[360px]:w-[78px]'
|
|
303
304
|
}
|
|
304
305
|
/>
|
|
305
306
|
)}
|
|
306
307
|
|
|
307
|
-
<Ping
|
|
308
|
-
className={
|
|
309
|
-
'right-0 top-0 -translate-y-1/2 translate-x-1/2 ' + 'max-md:-translate-y-[80%] '
|
|
310
|
-
}
|
|
311
|
-
/>
|
|
308
|
+
<Ping className={'right-0 top-0 -translate-y-1/2 translate-x-1/2 '} />
|
|
312
309
|
<p
|
|
313
310
|
className={
|
|
314
|
-
'absolute bottom-0 left-0 text-[
|
|
315
|
-
'transition-[color,font-size] duration-300 group-hover:text-[
|
|
316
|
-
'max-[1935px]:text-[1.
|
|
317
|
-
'max-4xl:text-[1.
|
|
318
|
-
'max-xl:text-[2.
|
|
319
|
-
'max-md:bottom-[0.8vw] max-md:text-[
|
|
311
|
+
'absolute bottom-0 left-0 text-[22px] font-[900] uppercase tracking-[-0.5px] text-[#04325A] ' +
|
|
312
|
+
'transition-[color,font-size] duration-300 group-hover:text-[26px] group-hover:text-[#285FA7] ' +
|
|
313
|
+
'max-[1935px]:text-[1.14vw] max-[1935px]:group-hover:text-[1.34vw] ' +
|
|
314
|
+
'max-4xl:text-[1.5vw] max-4xl:group-hover:text-[1.7vw] ' +
|
|
315
|
+
'max-xl:bottom-[0.6vw] max-xl:text-[2.1vw] max-xl:tracking-[-0.1vw] max-xl:group-hover:text-[2.4vw] ' +
|
|
316
|
+
'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] ' +
|
|
317
|
+
'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
318
|
}
|
|
321
319
|
>
|
|
322
320
|
korea
|
|
@@ -324,11 +322,12 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
|
|
|
324
322
|
</span>
|
|
325
323
|
<div
|
|
326
324
|
className={
|
|
327
|
-
'relative mt-[20px] aspect-square w-[
|
|
328
|
-
'max-[1935px]:mt-[1.03vw] max-[1935px]:w-[
|
|
329
|
-
'max-4xl:w-[
|
|
330
|
-
'max-xl:mt-[1.
|
|
331
|
-
'max-md:mt-[2vw] max-md:w-[
|
|
325
|
+
'relative mt-[20px] aspect-square w-[220px] overflow-hidden bg-[#ddd] ' +
|
|
326
|
+
'max-[1935px]:mt-[1.03vw] max-[1935px]:w-[11.37vw] ' +
|
|
327
|
+
'max-4xl:w-[13vw] ' +
|
|
328
|
+
'max-xl:mt-[1.49vw] max-xl:w-[18.1vw] ' +
|
|
329
|
+
'max-md:mt-[2vw] max-md:w-[22.22vw] ' +
|
|
330
|
+
'max-[360px]:mt-[8px] max-[360px]:w-[80px] '
|
|
332
331
|
}
|
|
333
332
|
>
|
|
334
333
|
<Image
|
|
@@ -347,12 +346,13 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
|
|
|
347
346
|
</div>
|
|
348
347
|
<div
|
|
349
348
|
className={
|
|
350
|
-
'flex h-[
|
|
349
|
+
'flex h-[55px] w-[220px] translate-y-[-1px] items-center justify-between bg-[#04325A] px-[26px] text-[18px] tracking-[-0.9px] text-white ' +
|
|
351
350
|
'transition-colors group-hover:bg-[#285FA7] ' +
|
|
352
|
-
'max-[1935px]:h-[
|
|
353
|
-
'max-4xl:h-[3.
|
|
354
|
-
'max-xl:h-[
|
|
355
|
-
'max-md:h-[
|
|
351
|
+
'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] ' +
|
|
352
|
+
'max-4xl:h-[3.5vw] max-4xl:w-[13vw] max-4xl:text-[1.1vw] ' +
|
|
353
|
+
'max-xl:h-[5vw] max-xl:w-[18.1vw] max-xl:text-[1.7vw] ' +
|
|
354
|
+
'max-md:h-[6.39vw] max-md:w-[22.22vw] max-md:px-[2.22vw] max-md:text-[2.22vw] ' +
|
|
355
|
+
'max-[360px]:h-[23px] max-[360px]:w-[80px] max-[360px]:px-[8px] max-[360px]:text-[8px] '
|
|
356
356
|
}
|
|
357
357
|
>
|
|
358
358
|
사무소 더 보기
|
|
@@ -361,15 +361,16 @@ const GlobalOfficeSection = ({ isView, setIsView }: { isView: boolean; setIsView
|
|
|
361
361
|
'h-auto w-[16px] ' +
|
|
362
362
|
'max-[1935px]:w-[0.83vw] ' +
|
|
363
363
|
'max-4xl:w-[1vw] ' +
|
|
364
|
-
'max-xl:w-[1.
|
|
365
|
-
'max-md:w-[2vw] '
|
|
364
|
+
'max-xl:w-[1.5vw] ' +
|
|
365
|
+
'max-md:w-[2vw] ' +
|
|
366
|
+
'max-[360px]:w-[7px]'
|
|
366
367
|
}
|
|
367
368
|
/>
|
|
368
369
|
</div>
|
|
369
|
-
</
|
|
370
|
+
</Link>
|
|
370
371
|
</div>
|
|
371
372
|
</Wrapper>
|
|
372
|
-
</
|
|
373
|
+
</section>
|
|
373
374
|
);
|
|
374
375
|
};
|
|
375
376
|
|
|
@@ -377,7 +378,7 @@ export default GlobalOfficeSection;
|
|
|
377
378
|
|
|
378
379
|
const Ping = ({ className }: { className?: string }) => {
|
|
379
380
|
return (
|
|
380
|
-
<div className={'absolute aspect-square w-[
|
|
381
|
+
<div className={'absolute aspect-square w-[9px] max-xl:scale-[0.8] max-2sm:scale-[0.6] ' + className}>
|
|
381
382
|
<div
|
|
382
383
|
className={
|
|
383
384
|
'absolute left-0 top-0 h-full w-full rounded-full bg-[#04325A] ' +
|
|
@@ -386,13 +387,13 @@ const Ping = ({ className }: { className?: string }) => {
|
|
|
386
387
|
/>
|
|
387
388
|
<div
|
|
388
389
|
className={
|
|
389
|
-
'absolute left-0 top-0 h-full w-full rounded-full bg-[#285FA7] opacity-0 ' +
|
|
390
|
+
'ping_1 absolute left-0 top-0 h-full w-full rounded-full bg-[#285FA7] opacity-0 ' +
|
|
390
391
|
'group-hover:animate-global_map_ping_1 duration-500'
|
|
391
392
|
}
|
|
392
393
|
/>
|
|
393
394
|
<div
|
|
394
395
|
className={
|
|
395
|
-
'absolute left-0 top-0 h-full w-full rounded-full bg-[#285FA7] opacity-0 ' +
|
|
396
|
+
'ping_2 absolute left-0 top-0 h-full w-full rounded-full bg-[#285FA7] opacity-0 ' +
|
|
396
397
|
'group-hover:animate-global_map_ping_2 duration-500'
|
|
397
398
|
}
|
|
398
399
|
/>
|
|
@@ -406,9 +407,10 @@ const TextCon = ({ text }: { text: string }) => {
|
|
|
406
407
|
className={
|
|
407
408
|
'text-[30px] font-[700] uppercase tracking-[-0.5px] text-[#7F8791] ' +
|
|
408
409
|
'before:mr-[16px] before:inline-block before:h-[24px] before:w-[3px] before:bg-[#04325A] before:content-[""] ' +
|
|
409
|
-
'max-[1935px]:text-[1.
|
|
410
|
+
'max-[1935px]:text-[1.4vw] max-[1935px]:tracking-[-0.03vw] max-[1935px]:before:mr-[0.83vw] max-[1935px]:before:h-[1.1vw] ' +
|
|
410
411
|
'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]'
|
|
412
|
+
'max-md:text-[4vw] max-md:leading-none max-md:before:h-[3.33vw] max-md:before:w-[2px] ' +
|
|
413
|
+
'max-[360px]:text-[14.4px] max-[360px]:before:h-[12px] '
|
|
412
414
|
}
|
|
413
415
|
>
|
|
414
416
|
{text}
|
package/dist/components/index.js
CHANGED
|
@@ -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';
|
package/dist/components/index.ts
CHANGED
|
@@ -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 = ({
|
|
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);
|