@daeryun/dr_components 1.1.81 → 1.1.83

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.
@@ -0,0 +1,3 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 199 49" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="current">
2
+ <path d="M198.5 0.353516L150.5 48.3535H0"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 199 49" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M198.5 0.353516L150.5 48.3535H0" stroke="current"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 118 68" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M117 0.250001L78.3175 67.25L0 67.25" stroke="current"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 269 106" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="current">
2
+ <path d="M0.433105 0.25L61.0549 105.25H268.433" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 206 106" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M0.433105 0.25L61.0549 105.25H205.433" stroke="current"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 156 68" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M0.433167 67.5L39.1156 0.5L155.433 0.5" stroke="current"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 289 38" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="current">
2
+ <path d="M288 37.5L266.638 0.5H0" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 208 38" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M207 37.5L185.638 0.5H0" stroke="current"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 122 68" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M0.50006 3.95899e-05L0.500061 67L121.5 67" stroke="current"/>
3
+ </svg>
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare const GlobalOfficeSection: ({ isView, setIsView }: {
3
+ isView: boolean;
4
+ setIsView: (v: boolean) => void;
5
+ }) => React.JSX.Element;
6
+ export default GlobalOfficeSection;
@@ -0,0 +1,193 @@
1
+ import Image from 'next/image';
2
+ import React from 'react';
3
+ import Link from 'next/link';
4
+ import Wrapper from '../Layout/Wrapper';
5
+ import LineWashington from '../../asset/images/globalOffice/washington_line.svg';
6
+ import LineNewYork from '../../asset/images/globalOfficenewyork_line.svg';
7
+ import LineKorea from '../../asset/images/globalOfficekorea_line.svg';
8
+ import IconArrow from '../../asset/images/globalOfficeglobal_arrow.svg';
9
+ import LineWashingtonMd from '../../asset/images/globalOfficewashington_line_md.svg';
10
+ import LineNewYorkMd from '../../asset/images/globalOfficenewyork_line_md.svg';
11
+ import LineKoreaMd from '../../asset/images/globalOfficekorea_line_md.svg';
12
+ import LineWashingtonSm from '../../asset/images/globalOfficewashington_line_sm.svg';
13
+ import LineNewYorkSm from '../../asset/images/globalOfficenewyork_line_sm.svg';
14
+ import LineKoreaSm from '../../asset/images/globalOfficekorea_line_sm.svg';
15
+ import useBrowser from '../hook/useBrowser';
16
+ const GlobalOfficeSection = ({ isView, setIsView }) => {
17
+ const { width } = useBrowser(true);
18
+ return (<div className={'z-[6] h-[1300px] w-full bg-white transition-opacity duration-700 ' +
19
+ 'max-[1935px]:aspect-[1935/1300] max-[1935px]:h-auto ' +
20
+ 'max-xl:aspect-[900/790] ' +
21
+ 'max-md:aspect-[360/640] '}>
22
+ <Image src={`https://d1tgonli21s4df.cloudfront.net/main_new/global_map_bg${width >= 1280 ? '' : width >= 768 ? '_md' : '_sm'}.webp`} alt="" fill draggable="false" loading={'lazy'} className={'absolute left-0 top-0 h-full w-full object-cover '}/>
23
+ <Wrapper className={'relative h-full font-[NotoSansKR]'}>
24
+ {/*title*/}
25
+ <span className={'absolute bottom-[200px] z-[1] w-[800px] ' +
26
+ 'max-[1935px]:bottom-[10.34vw] max-[1935px]:w-[41.37vw] ' +
27
+ 'max-xl:w-[70.37vw] ' +
28
+ 'max-md:bottom-[16.67vw] max-md:w-[80vw] '}>
29
+ <h2 className={'flex items-center gap-[10px] text-[#04325A] ' +
30
+ 'max-[1935px]:gap-[0.52vw] ' +
31
+ 'max-xl:gap-[1.8vw] '}>
32
+ <span className={'text-[250px] font-[900] leading-none ' +
33
+ 'max-[1935px]:text-[12.92vw] ' +
34
+ 'max-xl:text-[17.78vw] ' +
35
+ 'max-md:text-[27vw] '}>
36
+ 3
37
+ </span>
38
+ <span className={'pt-[24px] text-[70px] font-[700] tracking-[-0.9px] ' +
39
+ 'max-[1935px]:pt-[1.24vw] max-[1935px]:text-[3.62vw] max-[1935px]:tracking-[-0.05vw] ' +
40
+ 'max-xl:text-[5.3vw] max-xl:tracking-[-0.15vw] ' +
41
+ 'max-md:translate-y-[-40%] max-md:pt-0 max-md:text-[8vw] '}>
42
+ Global Offices
43
+ </span>
44
+ </h2>
45
+ <span className={'absolute bottom-[8px] left-[170px] flex items-center gap-[36px] ' +
46
+ 'max-[1935px]:bottom-[0.41vw] max-[1935px]:left-[8.79vw] max-[1935px]:gap-[1.86vw] ' +
47
+ 'max-xl:bottom-[1vw] max-xl:left-[13vw] max-xl:gap-[3.8vw] ' +
48
+ 'max-md:bottom-[3vw] max-md:left-[19vw] max-md:flex-wrap max-md:gap-y-[0.7vw] '}>
49
+ <TextCon text={'korea'}/>
50
+ <TextCon text={'New York'}/>
51
+ <TextCon text={'WASHINGTON'}/>
52
+ </span>
53
+ </span>
54
+
55
+ <div className={'h-full w-full '}>
56
+ {width >= 1280 ? (<Image src={'https://d1tgonli21s4df.cloudfront.net/main_new/global_map.webp'} alt="" fill draggable="false" loading={'lazy'} className={'h-full w-full translate-y-[10%] scale-[1.2] object-contain object-top ' +
57
+ 'max-4xl:translate-y-[5%] max-4xl:scale-110'}/>) : (<Image src={'https://d1tgonli21s4df.cloudfront.net/main_new/global_map_md.webp'} alt="" fill draggable="false" loading={'lazy'} className={'h-full w-full translate-x-[7%] translate-y-[5%] scale-[0.97] object-contain object-top ' +
58
+ 'max-md:translate-x-[-4.5%] max-md:translate-y-[-8%] max-md:scale-[1.25] max-md:object-center'}/>)}
59
+
60
+ {/*워싱턴*/}
61
+ <Link href={'https://www.sjkplawfirm.com/'} target={'_blank'} className={'group absolute h-fit w-fit object-cover ' +
62
+ 'left-[385px] top-[400px] -translate-x-[100%] -translate-y-[42px] ' +
63
+ 'max-[1935px]:left-[19.89vw] max-[1935px]:top-[20.67vw] max-[1935px]:-translate-y-[2.17vw] ' +
64
+ 'max-4xl:left-[22.2vw] max-4xl:top-[18.6vw] ' +
65
+ 'max-xl:left-[31.3vw] max-xl:top-[23.2vw] ' +
66
+ 'max-md:left-[13.7vw] max-md:top-[65vw] max-md:translate-x-0 max-md:translate-y-0 '}>
67
+ <span className={'relative block h-fit w-fit '}>
68
+ {width >= 1280 ? (<LineWashington className={'h-auto w-[289px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
69
+ 'max-[1935px]:w-[14.94vw] ' +
70
+ 'max-4xl:w-[17vw] '}/>) : width >= 768 ? (<LineWashingtonMd className={'h-auto w-[23vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '}/>) : (<LineWashingtonSm className={'h-auto w-[30.2vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '}/>)}
71
+
72
+ <Ping className={'bottom-0 right-0 translate-x-1/2 translate-y-1/2 ' +
73
+ 'max-md:bottom-[unset] max-md:left-0 max-md:right-[unset] max-md:top-0 max-md:-translate-x-[40%] max-md:-translate-y-1/2'}/>
74
+ <p className={'absolute -top-[50px] flex h-[50px] w-fit items-end text-[24px] font-[900] uppercase tracking-[-0.5px] text-[#04325A] ' +
75
+ 'transition-[color,font-size] duration-300 group-hover:text-[28px] group-hover:text-[#285FA7] ' +
76
+ 'max-[1935px]:-top-[2.58vw] max-[1935px]:h-[2.58vw] max-[1935px]:text-[1.24vw] max-[1935px]:group-hover:text-[1.45vw] ' +
77
+ 'max-4xl:text-[1.7vw] max-4xl:group-hover:text-[1.9vw] ' +
78
+ 'max-xl:text-[2.22vw] max-xl:group-hover:text-[2.67vw] ' +
79
+ '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] '}>
80
+ WASHINGTON
81
+ </p>
82
+ </span>
83
+ <div className={'relative aspect-square w-[240px] translate-y-[-15px] overflow-hidden bg-[#ddd] ' +
84
+ 'max-[1935px]:w-[12.40vw] max-[1935px]:translate-y-[-0.78vw] ' +
85
+ 'max-4xl:w-[14.2vw] ' +
86
+ 'max-xl:w-[20vw] max-xl:translate-y-[-2.53vw] ' +
87
+ 'max-md:mt-[2.22vw] max-md:w-[30vw] max-md:translate-y-0 '}>
88
+ <Image src={'https://d1tgonli21s4df.cloudfront.net/main_new/washington_img.webp'} alt="" fill draggable="false" loading={'lazy'} unoptimized sizes={'280px'} className={'h-full w-full object-cover ' + 'duration-700 group-hover:scale-105'}/>
89
+ </div>
90
+ </Link>
91
+
92
+ {/*뉴욕*/}
93
+ <Link href={'https://www.sjkplawfirm.com/'} target={'_blank'} className={'group absolute flex h-fit w-fit flex-col items-end object-cover ' +
94
+ 'left-[408px] top-[372px] ' +
95
+ 'max-[1935px]:left-[21.09vw] max-[1935px]:top-[19.23vw] ' +
96
+ 'max-4xl:left-[23.6vw] max-4xl:top-[17.5vw] ' +
97
+ 'max-xl:left-[32.5vw] max-xl:top-[24vw] ' +
98
+ 'max-md:left-[15.1vw] max-md:top-[14vw] max-md:flex-col-reverse '}>
99
+ <span className={'relative block h-fit w-fit '}>
100
+ {width >= 1280 ? (<LineNewYork className={'h-auto w-[269px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
101
+ 'max-[1935px]:w-[13.90vw] ' +
102
+ 'max-4xl:w-[16.4vw]'}/>) : width >= 768 ? (<LineNewYorkMd className={'h-auto w-[22.78vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '}/>) : (<LineNewYorkSm className={'h-auto w-[40vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '}/>)}
103
+
104
+ <Ping className={'left-0 top-0 -translate-x-1/2 -translate-y-1/2 ' +
105
+ 'max-md:bottom-0 max-md:top-[unset] max-md:translate-y-1/2 '}/>
106
+ <p className={'absolute bottom-0 right-0 text-[24px] font-[900] uppercase tracking-[-0.5px] text-[#04325A] ' +
107
+ 'transition-[color,font-size] duration-300 group-hover:text-[28px] group-hover:text-[#285FA7] ' +
108
+ 'max-[1935px]:text-[1.24vw] max-[1935px]:group-hover:text-[1.45vw] ' +
109
+ 'max-4xl:text-[1.7vw] max-4xl:group-hover:text-[1.9vw] ' +
110
+ 'max-xl:text-[2.22vw] max-xl:group-hover:text-[2.67vw] ' +
111
+ 'max-md:bottom-[unset] max-md:top-[0.5vw] max-md:text-[4vw] max-md:tracking-[-0.1vw] max-md:group-hover:text-[4vw] '}>
112
+ New York
113
+ </p>
114
+ </span>
115
+ <div className={'relative mt-[20px] aspect-square w-[240px] overflow-hidden bg-[#ddd] ' +
116
+ 'max-[1935px]:mt-[1.03vw] max-[1935px]:w-[12.40vw] ' +
117
+ 'max-4xl:w-[14.2vw] ' +
118
+ 'max-xl:mt-[1.53vw] max-xl:w-[20vw] ' +
119
+ 'max-md:mb-[2.22vw] max-md:mt-0 max-md:w-[30vw]'}>
120
+ <Image src={'https://d1tgonli21s4df.cloudfront.net/main_new/newyork_img.webp'} alt="" fill draggable="false" loading={'lazy'} unoptimized sizes={'280px'} className={'h-full w-full object-cover ' + 'duration-700 group-hover:scale-105'}/>
121
+ </div>
122
+ </Link>
123
+
124
+ {/*한국*/}
125
+ <button className={'group absolute h-fit w-fit cursor-pointer object-cover ' +
126
+ 'right-[203px] top-[380px] translate-x-[40px] ' +
127
+ 'max-[1935px]:right-[10.49vw] max-[1935px]:top-[19.64vw] max-[1935px]:translate-x-[2.07vw] ' +
128
+ 'max-4xl:right-[14.9vw] max-4xl:top-[18vw] ' +
129
+ 'max-xl:right-[12.1vw] max-xl:top-[24.4vw] ' +
130
+ 'max-md:right-[13.7vw] max-md:top-[64.6vw] '} onClick={() => {
131
+ setIsView(false);
132
+ }}>
133
+ <span className={'relative block h-fit w-fit '}>
134
+ {width >= 1280 ? (<LineKorea className={'h-auto w-[199px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
135
+ 'max-[1935px]:w-[10.28vw] ' +
136
+ 'max-4xl:w-[13.2vw] '}/>) : width >= 768 ? (<LineKoreaMd className={'h-auto w-[21.78vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '}/>) : (<LineKoreaSm className={'h-auto w-[29.8vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '}/>)}
137
+
138
+ <Ping className={'right-0 top-0 -translate-y-1/2 translate-x-1/2 ' + 'max-md:-translate-y-[80%] '}/>
139
+ <p className={'absolute bottom-0 left-0 text-[24px] font-[900] uppercase tracking-[-0.5px] text-[#04325A] ' +
140
+ 'transition-[color,font-size] duration-300 group-hover:text-[28px] group-hover:text-[#285FA7] ' +
141
+ 'max-[1935px]:text-[1.24vw] max-[1935px]:group-hover:text-[1.45vw] ' +
142
+ 'max-4xl:text-[1.7vw] max-4xl:group-hover:text-[1.9vw] ' +
143
+ 'max-xl:text-[2.22vw] max-xl:group-hover:text-[2.67vw] ' +
144
+ 'max-md:bottom-[0.8vw] max-md:text-[4vw] max-md:tracking-[-0.1vw] max-md:group-hover:text-[4vw]'}>
145
+ korea
146
+ </p>
147
+ </span>
148
+ <div className={'relative mt-[20px] aspect-square w-[240px] overflow-hidden bg-[#ddd] ' +
149
+ 'max-[1935px]:mt-[1.03vw] max-[1935px]:w-[12.40vw] ' +
150
+ 'max-4xl:w-[14.2vw] ' +
151
+ 'max-xl:mt-[1.53vw] max-xl:w-[20vw] ' +
152
+ 'max-md:mt-[2vw] max-md:w-[30vw]'}>
153
+ <Image src={'https://d1tgonli21s4df.cloudfront.net/main_new/korea_img.webp'} alt="" fill draggable="false" loading={'lazy'} unoptimized sizes={'280px'} className={'h-full w-full scale-[1.01] object-cover transition-transform ' +
154
+ 'duration-700 group-hover:scale-105 '}/>
155
+ </div>
156
+ <div className={'flex h-[60px] w-[240px] items-center justify-between bg-[#04325A] px-[28px] text-[20px] tracking-[-0.9px] text-white ' +
157
+ 'transition-colors group-hover:bg-[#285FA7] ' +
158
+ '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] ' +
159
+ 'max-4xl:h-[3.8vw] max-4xl:w-[14.2vw] max-4xl:text-[1.25vw] ' +
160
+ 'max-xl:h-[5.11vw] max-xl:w-[20vw] max-xl:text-[1.8vw] ' +
161
+ 'max-md:h-[8vw] max-md:w-[30vw] max-md:px-[2.5vw] max-md:text-[2.7vw]'}>
162
+ 사무소 더 보기
163
+ <IconArrow className={'h-auto w-[16px] ' +
164
+ 'max-[1935px]:w-[0.83vw] ' +
165
+ 'max-4xl:w-[1vw] ' +
166
+ 'max-xl:w-[1.65vw] ' +
167
+ 'max-md:w-[2vw] '}/>
168
+ </div>
169
+ </button>
170
+ </div>
171
+ </Wrapper>
172
+ </div>);
173
+ };
174
+ export default GlobalOfficeSection;
175
+ const Ping = ({ className }) => {
176
+ return (<div className={'absolute aspect-square w-[10px] max-xl:scale-[0.8] max-2sm:scale-[0.6] ' + className}>
177
+ <div className={'absolute left-0 top-0 h-full w-full rounded-full bg-[#04325A] ' +
178
+ 'transition-[transform,background-color] duration-300 group-hover:scale-[1.8] group-hover:bg-[#285FA7] '}/>
179
+ <div className={'absolute left-0 top-0 h-full w-full rounded-full bg-[#285FA7] opacity-0 ' +
180
+ 'group-hover:animate-global_map_ping_1 duration-500'}/>
181
+ <div className={'absolute left-0 top-0 h-full w-full rounded-full bg-[#285FA7] opacity-0 ' +
182
+ 'group-hover:animate-global_map_ping_2 duration-500'}/>
183
+ </div>);
184
+ };
185
+ const TextCon = ({ text }) => {
186
+ return (<p className={'text-[30px] font-[700] uppercase tracking-[-0.5px] text-[#7F8791] ' +
187
+ 'before:mr-[16px] before:inline-block before:h-[24px] before:w-[3px] before:bg-[#04325A] before:content-[""] ' +
188
+ 'max-[1935px]:text-[1.55vw] max-[1935px]:tracking-[-0.03vw] max-[1935px]:before:mr-[0.83vw] max-[1935px]:before:h-[1.24vw] ' +
189
+ 'max-xl:text-[2.4vw] max-xl:tracking-[-0.08vw] max-xl:before:mr-[1.33vw] max-xl:before:h-[2vw] ' +
190
+ 'max-md:text-[4vw] max-md:leading-none max-md:before:h-[3.33vw]'}>
191
+ {text}
192
+ </p>);
193
+ };