@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
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="100%" height="100%" viewBox="0 0 19 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M18.7818 6.88606L13.1914 0.286627C13.041 0.113318 12.8329 0.010612 12.6124 0.000777161C12.3919 -0.00905772 12.1767 0.0747712 12.0133 0.234089C11.85 0.393406 11.7518 0.615371 11.74 0.851857C11.7282 1.08834 11.8038 1.32029 11.9503 1.49741L16.2666 6.59177H0.838753C0.616302 6.59177 0.402962 6.68659 0.245665 6.85537C0.0883683 7.02415 0 7.25306 0 7.49175C0 7.73044 0.0883683 7.95935 0.245665 8.12813C0.402962 8.2969 0.616302 8.39172 0.838753 8.39172H16.265L11.9487 13.4861C11.799 13.6629 11.721 13.8963 11.7317 14.1348C11.7424 14.3734 11.841 14.5976 12.0058 14.7582C12.1706 14.9188 12.3881 15.0025 12.6104 14.991C12.8328 14.9795 13.0418 14.8737 13.1914 14.6969L18.7818 8.09684C18.9221 7.93118 18.9999 7.71534 18.9999 7.49145C18.9999 7.26757 18.9221 7.05172 18.7818 6.88606Z" fill="white"/>
|
|
3
|
+
</svg>
|
|
Binary file
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const GlobalOfficeSection: (
|
|
3
|
-
isView: boolean;
|
|
4
|
-
setIsView: (v: boolean) => void;
|
|
5
|
-
}) => React.JSX.Element;
|
|
2
|
+
declare const GlobalOfficeSection: () => React.JSX.Element;
|
|
6
3
|
export default GlobalOfficeSection;
|
|
@@ -2,192 +2,203 @@ 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 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
5
|
import useBrowser from '../hook/useBrowser';
|
|
16
|
-
|
|
6
|
+
import LineWashington from '../../asset/images/globalOffice/washington_line.svg';
|
|
7
|
+
import LineNewYork from '../../asset/images/globalOffice/newyork_line.svg';
|
|
8
|
+
import LineKorea from '../../asset/images/globalOffice/korea_line.svg';
|
|
9
|
+
import IconArrow from '../../asset/images/globalOffice/global_arrow.svg';
|
|
10
|
+
import LineWashingtonMd from '../../asset/images/globalOffice/washington_line_md.svg';
|
|
11
|
+
import LineNewYorkMd from '../../asset/images/globalOffice/newyork_line_md.svg';
|
|
12
|
+
import LineKoreaMd from '../../asset/images/globalOffice/korea_line_md.svg';
|
|
13
|
+
import LineWashingtonSm from '../../asset/images/globalOffice/washington_line_sm.svg';
|
|
14
|
+
import LineNewYorkSm from '../../asset/images/globalOffice/newyork_line_sm.svg';
|
|
15
|
+
import LineKoreaSm from '../../asset/images/globalOffice/korea_line_sm.svg';
|
|
16
|
+
// 좌표계산용
|
|
17
|
+
const MAP_W = 3873;
|
|
18
|
+
const MAP_H = 1853;
|
|
19
|
+
const GlobalOfficeSection = () => {
|
|
17
20
|
const { width } = useBrowser(true);
|
|
18
|
-
return (<
|
|
19
|
-
'max-[1935px]:aspect-[1935/
|
|
21
|
+
return (<section className={'relative z-[6] h-[1300px] w-full overflow-hidden bg-white transition-opacity duration-700 ' +
|
|
22
|
+
'max-[1935px]:aspect-[1935/1000] max-[1935px]:h-auto ' +
|
|
20
23
|
'max-xl:aspect-[900/790] ' +
|
|
21
|
-
'max-md:aspect-[360/640] '
|
|
24
|
+
'max-md:aspect-[360/640] ' +
|
|
25
|
+
'max-[360px]:aspect-auto max-[360px]:h-[640px] '}>
|
|
22
26
|
<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
27
|
<Wrapper className={'relative h-full font-[NotoSansKR]'}>
|
|
24
28
|
{/*title*/}
|
|
25
29
|
<span className={'absolute bottom-[200px] z-[1] w-[800px] ' +
|
|
26
|
-
'max-[1935px]:bottom-[
|
|
27
|
-
'max-xl:w-[70.37vw] ' +
|
|
28
|
-
'max-md:bottom-[
|
|
30
|
+
'max-[1935px]:bottom-[6vw] max-[1935px]:w-[41.37vw] ' +
|
|
31
|
+
'max-xl:bottom-[10.34vw] max-xl:w-[70.37vw] ' +
|
|
32
|
+
'max-md:bottom-[50px] max-md:w-[80vw] ' +
|
|
33
|
+
'max-[360px]:bottom-[60px] max-[360px]:w-[290px] '}>
|
|
29
34
|
<h2 className={'flex items-center gap-[10px] text-[#04325A] ' +
|
|
30
35
|
'max-[1935px]:gap-[0.52vw] ' +
|
|
31
|
-
'max-xl:gap-[1.8vw] '
|
|
36
|
+
'max-xl:gap-[1.8vw] ' +
|
|
37
|
+
'max-[360px]:gap-[7px]'}>
|
|
32
38
|
<span className={'text-[250px] font-[900] leading-none ' +
|
|
33
|
-
'max-[1935px]:text-[
|
|
39
|
+
'max-[1935px]:text-[10vw] ' +
|
|
34
40
|
'max-xl:text-[17.78vw] ' +
|
|
35
|
-
'max-md:text-[27vw] '
|
|
41
|
+
'max-md:text-[27vw] ' +
|
|
42
|
+
'max-[360px]:text-[97.2px]'}>
|
|
36
43
|
3
|
|
37
44
|
</span>
|
|
38
45
|
<span className={'pt-[24px] text-[70px] font-[700] tracking-[-0.9px] ' +
|
|
39
|
-
'max-[1935px]:pt-[1.24vw] max-[1935px]:text-[3.
|
|
46
|
+
'max-[1935px]:pt-[1.24vw] max-[1935px]:text-[3.2vw] max-[1935px]:tracking-[-0.05vw] ' +
|
|
40
47
|
'max-xl:text-[5.3vw] max-xl:tracking-[-0.15vw] ' +
|
|
41
|
-
'max-md:translate-y-[-40%] max-md:pt-0 max-md:text-[8vw] '
|
|
48
|
+
'max-md:translate-y-[-40%] max-md:pt-0 max-md:text-[8vw] ' +
|
|
49
|
+
'max-[360px]:text-[28.8px]'}>
|
|
42
50
|
Global Offices
|
|
43
51
|
</span>
|
|
44
52
|
</h2>
|
|
45
53
|
<span className={'absolute bottom-[8px] left-[170px] flex items-center gap-[36px] ' +
|
|
46
|
-
'max-[1935px]:bottom-[0.41vw] max-[1935px]:left-[
|
|
54
|
+
'max-[1935px]:bottom-[0.41vw] max-[1935px]:left-[7.1vw] max-[1935px]:gap-[1.86vw] ' +
|
|
47
55
|
'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] '
|
|
56
|
+
'max-md:bottom-[3vw] max-md:left-[19vw] max-md:flex-wrap max-md:gap-y-[0.7vw] ' +
|
|
57
|
+
'max-[360px]:bottom-[10.8px] max-[360px]:left-[69px] max-[360px]:gap-y-[2.52px]'}>
|
|
49
58
|
<TextCon text={'korea'}/>
|
|
50
59
|
<TextCon text={'New York'}/>
|
|
51
60
|
<TextCon text={'WASHINGTON'}/>
|
|
52
61
|
</span>
|
|
53
62
|
</span>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
<div className={'relative h-fit w-full translate-y-[-200px] scale-110 ' +
|
|
64
|
+
'max-4xl:translate-y-[-250px] max-4xl:scale-105 ' +
|
|
65
|
+
'max-xl:translate-x-[100px] max-xl:translate-y-[-100px] max-xl:scale-110 ' +
|
|
66
|
+
'max-lg:max-xl:translate-y-[-60px] max-lg:translate-x-[70px] ' +
|
|
67
|
+
'max-md:translate-x-[-20px] max-md:translate-y-[83%] max-md:scale-[1.5] ' +
|
|
68
|
+
'max-2sm:translate-y-[65%] '}>
|
|
69
|
+
{/*지도 이미지*/}
|
|
70
|
+
<Image src={'https://d1tgonli21s4df.cloudfront.net/main_new/global_map.webp'} alt="" width={MAP_W} height={MAP_H} draggable="false" loading={'lazy'} className={'h-full w-full'}/>
|
|
60
71
|
{/*워싱턴*/}
|
|
61
|
-
<Link href={'https://www.sjkplawfirm.com/'} target={'_blank'} className={'group absolute h-fit w-fit object-cover ' +
|
|
62
|
-
'
|
|
63
|
-
'max-[1935px]
|
|
64
|
-
'max-
|
|
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 '}>
|
|
72
|
+
<Link href={'https://www.sjkplawfirm.com/'} target={'_blank'} style={{ left: `${(930 / MAP_W) * 100}%`, top: `${(730 / MAP_H) * 100}%` }} className={'global_link group absolute h-fit w-fit object-cover ' +
|
|
73
|
+
'-translate-x-[100%] -translate-y-[42px] ' +
|
|
74
|
+
'max-[1935px]:-translate-y-[2.17vw] max-4xl:-translate-y-[2.6vw] max-xl:-translate-y-[4.17vw] ' +
|
|
75
|
+
'max-md:translate-x-0 max-md:translate-y-0 '}>
|
|
67
76
|
<span className={'relative block h-fit w-fit '}>
|
|
68
|
-
{width >= 1280 ? (<LineWashington className={'h-auto w-[
|
|
69
|
-
'max-[1935px]:w-[
|
|
70
|
-
'max-4xl:w-[
|
|
77
|
+
{width >= 1280 ? (<LineWashington className={'h-auto w-[260px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
|
|
78
|
+
'max-[1935px]:w-[13.44vw] ' +
|
|
79
|
+
'max-4xl:w-[16vw] '}/>) : width >= 768 ? (<LineWashingtonMd className={'h-auto w-[21vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '}/>) : (<LineWashingtonSm className={'h-auto w-[22.44vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
|
|
80
|
+
'max-[360px]:w-[80.8px]'}/>)}
|
|
71
81
|
|
|
72
82
|
<Ping className={'bottom-0 right-0 translate-x-1/2 translate-y-1/2 ' +
|
|
73
83
|
'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-[
|
|
75
|
-
'transition-[color,font-size] duration-300 group-hover:text-[
|
|
76
|
-
'max-[1935px]:-top-[2.58vw] max-[1935px]:h-[2.58vw] max-[1935px]:text-[1.
|
|
77
|
-
'max-4xl:text-[1.
|
|
78
|
-
'max-xl:text-[2.
|
|
79
|
-
'max-md:bottom-[0.8vw] max-md:right-0 max-md:top-[unset] max-md:text-[
|
|
84
|
+
<p className={'absolute -top-[50px] flex h-[50px] w-fit items-end text-[22px] font-[900] uppercase tracking-[-0.5px] text-[#04325A] ' +
|
|
85
|
+
'transition-[color,font-size] duration-300 group-hover:text-[26px] group-hover:text-[#285FA7] ' +
|
|
86
|
+
'max-[1935px]:-top-[2.58vw] max-[1935px]:h-[2.58vw] max-[1935px]:text-[1.14vw] max-[1935px]:group-hover:text-[1.34vw] ' +
|
|
87
|
+
'max-4xl:-top-[3vw] max-4xl:text-[1.5vw] max-4xl:group-hover:text-[1.7vw] ' +
|
|
88
|
+
'max-xl:text-[2.1vw] max-xl:tracking-[-0.1vw] max-xl:group-hover:text-[2.4vw] ' +
|
|
89
|
+
'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] ' +
|
|
90
|
+
'max-[360px]:bottom-[2.88px] max-[360px]:h-fit max-[360px]:text-[11px] max-[360px]:tracking-[-0.4px] max-[360px]:group-hover:text-[11px]'}>
|
|
80
91
|
WASHINGTON
|
|
81
92
|
</p>
|
|
82
93
|
</span>
|
|
83
|
-
<div className={'relative aspect-square w-[
|
|
84
|
-
'max-[1935px]:w-[
|
|
85
|
-
'max-4xl:w-[
|
|
86
|
-
'max-xl:w-[
|
|
87
|
-
'max-md:mt-[2.
|
|
94
|
+
<div className={'relative aspect-square w-[220px] translate-y-[-15px] overflow-hidden bg-[#ddd] ' +
|
|
95
|
+
'max-[1935px]:w-[11.37vw] max-[1935px]:translate-y-[-0.78vw] ' +
|
|
96
|
+
'max-4xl:w-[13vw] ' +
|
|
97
|
+
'max-xl:w-[18.1vw] max-xl:translate-y-[-2.2vw] ' +
|
|
98
|
+
'max-md:mt-[2.55vw] max-md:w-[22.22vw] max-md:translate-y-0 ' +
|
|
99
|
+
'max-[360px]:mt-[8px] max-[360px]:w-[80px] '}>
|
|
88
100
|
<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
101
|
</div>
|
|
90
102
|
</Link>
|
|
91
103
|
|
|
92
104
|
{/*뉴욕*/}
|
|
93
|
-
<Link href={'https://www.sjkplawfirm.com/'} target={'_blank'} className={'group absolute flex h-fit w-fit flex-col items-end object-cover ' +
|
|
94
|
-
'
|
|
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 '}>
|
|
105
|
+
<Link href={'https://www.sjkplawfirm.com/'} target={'_blank'} style={{ left: `${(980 / MAP_W) * 100}%`, top: `${(670 / MAP_H) * 100}%` }} className={'global_link group absolute flex h-fit w-fit flex-col items-end object-cover ' +
|
|
106
|
+
'max-md:-translate-y-[100%] max-md:flex-col-reverse '}>
|
|
99
107
|
<span className={'relative block h-fit w-fit '}>
|
|
100
108
|
{width >= 1280 ? (<LineNewYork className={'h-auto w-[269px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
|
|
101
109
|
'max-[1935px]:w-[13.90vw] ' +
|
|
102
|
-
'max-4xl:w-[
|
|
110
|
+
'max-4xl:w-[15.2vw]'}/>) : width >= 768 ? (<LineNewYorkMd className={'h-auto w-[21vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '}/>) : (<LineNewYorkSm className={'h-auto w-[28.61vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
|
|
111
|
+
'max-[360px]:w-[103px] '}/>)}
|
|
103
112
|
|
|
104
113
|
<Ping className={'left-0 top-0 -translate-x-1/2 -translate-y-1/2 ' +
|
|
105
114
|
'max-md:bottom-0 max-md:top-[unset] max-md:translate-y-1/2 '}/>
|
|
106
|
-
<p className={'absolute bottom-0 right-0 text-[
|
|
107
|
-
'transition-[color,font-size] duration-300 group-hover:text-[
|
|
108
|
-
'max-[1935px]:text-[1.
|
|
109
|
-
'max-4xl:text-[1.
|
|
110
|
-
'max-xl:text-[2.
|
|
111
|
-
'max-md:bottom-[unset] max-md:top-[0.5vw] max-md:text-[
|
|
115
|
+
<p className={'absolute bottom-0 right-0 text-[22px] font-[900] uppercase tracking-[-0.5px] text-[#04325A] ' +
|
|
116
|
+
'transition-[color,font-size] duration-300 group-hover:text-[26px] group-hover:text-[#285FA7] ' +
|
|
117
|
+
'max-[1935px]:text-[1.14vw] max-[1935px]:group-hover:text-[1.34vw] ' +
|
|
118
|
+
'max-4xl:text-[1.5vw] max-4xl:group-hover:text-[1.7vw] ' +
|
|
119
|
+
'max-xl:bottom-[0.6vw] max-xl:text-[2.1vw] max-xl:tracking-[-0.1vw] max-xl:group-hover:text-[2.4vw] ' +
|
|
120
|
+
'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] ' +
|
|
121
|
+
'max-[360px]:top-[1.8px] max-[360px]:text-[11px] max-[360px]:tracking-[-0.4px] max-[360px]:group-hover:text-[11px] '}>
|
|
112
122
|
New York
|
|
113
123
|
</p>
|
|
114
124
|
</span>
|
|
115
|
-
<div className={'relative mt-[20px] aspect-square w-[
|
|
116
|
-
'max-[1935px]:mt-[1.03vw] max-[1935px]:w-[
|
|
117
|
-
'max-4xl:w-[
|
|
118
|
-
'max-xl:mt-[1.
|
|
119
|
-
'max-md:mb-[2.22vw] max-md:mt-0 max-md:w-[
|
|
125
|
+
<div className={'relative mt-[20px] aspect-square w-[220px] overflow-hidden bg-[#ddd] ' +
|
|
126
|
+
'max-[1935px]:mt-[1.03vw] max-[1935px]:w-[11.37vw] ' +
|
|
127
|
+
'max-4xl:w-[13vw] ' +
|
|
128
|
+
'max-xl:mt-[1.49vw] max-xl:w-[18.1vw] ' +
|
|
129
|
+
'max-md:mb-[2.22vw] max-md:mt-0 max-md:w-[22.22vw] ' +
|
|
130
|
+
'max-[360px]:mb-[8px] max-[360px]:w-[80px] '}>
|
|
120
131
|
<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
132
|
</div>
|
|
122
133
|
</Link>
|
|
123
134
|
|
|
124
135
|
{/*한국*/}
|
|
125
|
-
<
|
|
126
|
-
'
|
|
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
|
-
}}>
|
|
136
|
+
<Link style={{ right: `${(615 / MAP_W) * 100}%`, top: `${(685 / MAP_H) * 100}%` }} className={'global_link group absolute h-fit w-fit translate-x-[20px] cursor-pointer object-cover ' +
|
|
137
|
+
'max-[1935px]:translate-x-[1.03vw] max-4xl:translate-x-[0.9vw] max-xl:translate-x-0'} href={'/map/seoulbon?scroll=false'}>
|
|
133
138
|
<span className={'relative block h-fit w-fit '}>
|
|
134
139
|
{width >= 1280 ? (<LineKorea className={'h-auto w-[199px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
|
|
135
140
|
'max-[1935px]:w-[10.28vw] ' +
|
|
136
|
-
'max-4xl:w-[
|
|
141
|
+
'max-4xl:w-[12vw] '}/>) : width >= 768 ? (<LineKoreaMd className={'h-auto w-[21vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] '}/>) : (<LineKoreaSm className={'h-auto w-[21.67vw] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
|
|
142
|
+
'max-[360px]:w-[78px]'}/>)}
|
|
137
143
|
|
|
138
|
-
<Ping className={'right-0 top-0 -translate-y-1/2 translate-x-1/2 '
|
|
139
|
-
<p className={'absolute bottom-0 left-0 text-[
|
|
140
|
-
'transition-[color,font-size] duration-300 group-hover:text-[
|
|
141
|
-
'max-[1935px]:text-[1.
|
|
142
|
-
'max-4xl:text-[1.
|
|
143
|
-
'max-xl:text-[2.
|
|
144
|
-
'max-md:bottom-[0.8vw] max-md:text-[
|
|
144
|
+
<Ping className={'right-0 top-0 -translate-y-1/2 translate-x-1/2 '}/>
|
|
145
|
+
<p className={'absolute bottom-0 left-0 text-[22px] font-[900] uppercase tracking-[-0.5px] text-[#04325A] ' +
|
|
146
|
+
'transition-[color,font-size] duration-300 group-hover:text-[26px] group-hover:text-[#285FA7] ' +
|
|
147
|
+
'max-[1935px]:text-[1.14vw] max-[1935px]:group-hover:text-[1.34vw] ' +
|
|
148
|
+
'max-4xl:text-[1.5vw] max-4xl:group-hover:text-[1.7vw] ' +
|
|
149
|
+
'max-xl:bottom-[0.6vw] max-xl:text-[2.1vw] max-xl:tracking-[-0.1vw] max-xl:group-hover:text-[2.4vw] ' +
|
|
150
|
+
'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] ' +
|
|
151
|
+
'max-[360px]:bottom-[2.88px] max-[360px]:h-fit max-[360px]:text-[11px] max-[360px]:tracking-[-0.4px] max-[360px]:group-hover:text-[11px]'}>
|
|
145
152
|
korea
|
|
146
153
|
</p>
|
|
147
154
|
</span>
|
|
148
|
-
<div className={'relative mt-[20px] aspect-square w-[
|
|
149
|
-
'max-[1935px]:mt-[1.03vw] max-[1935px]:w-[
|
|
150
|
-
'max-4xl:w-[
|
|
151
|
-
'max-xl:mt-[1.
|
|
152
|
-
'max-md:mt-[2vw] max-md:w-[
|
|
155
|
+
<div className={'relative mt-[20px] aspect-square w-[220px] overflow-hidden bg-[#ddd] ' +
|
|
156
|
+
'max-[1935px]:mt-[1.03vw] max-[1935px]:w-[11.37vw] ' +
|
|
157
|
+
'max-4xl:w-[13vw] ' +
|
|
158
|
+
'max-xl:mt-[1.49vw] max-xl:w-[18.1vw] ' +
|
|
159
|
+
'max-md:mt-[2vw] max-md:w-[22.22vw] ' +
|
|
160
|
+
'max-[360px]:mt-[8px] max-[360px]:w-[80px] '}>
|
|
153
161
|
<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
162
|
'duration-700 group-hover:scale-105 '}/>
|
|
155
163
|
</div>
|
|
156
|
-
<div className={'flex h-[
|
|
164
|
+
<div className={'flex h-[55px] w-[220px] translate-y-[-1px] items-center justify-between bg-[#04325A] px-[26px] text-[18px] tracking-[-0.9px] text-white ' +
|
|
157
165
|
'transition-colors group-hover:bg-[#285FA7] ' +
|
|
158
|
-
'max-[1935px]:h-[
|
|
159
|
-
'max-4xl:h-[3.
|
|
160
|
-
'max-xl:h-[
|
|
161
|
-
'max-md:h-[
|
|
166
|
+
'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] ' +
|
|
167
|
+
'max-4xl:h-[3.5vw] max-4xl:w-[13vw] max-4xl:text-[1.1vw] ' +
|
|
168
|
+
'max-xl:h-[5vw] max-xl:w-[18.1vw] max-xl:text-[1.7vw] ' +
|
|
169
|
+
'max-md:h-[6.39vw] max-md:w-[22.22vw] max-md:px-[2.22vw] max-md:text-[2.22vw] ' +
|
|
170
|
+
'max-[360px]:h-[23px] max-[360px]:w-[80px] max-[360px]:px-[8px] max-[360px]:text-[8px] '}>
|
|
162
171
|
사무소 더 보기
|
|
163
172
|
<IconArrow className={'h-auto w-[16px] ' +
|
|
164
173
|
'max-[1935px]:w-[0.83vw] ' +
|
|
165
174
|
'max-4xl:w-[1vw] ' +
|
|
166
|
-
'max-xl:w-[1.
|
|
167
|
-
'max-md:w-[2vw] '
|
|
175
|
+
'max-xl:w-[1.5vw] ' +
|
|
176
|
+
'max-md:w-[2vw] ' +
|
|
177
|
+
'max-[360px]:w-[7px]'}/>
|
|
168
178
|
</div>
|
|
169
|
-
</
|
|
179
|
+
</Link>
|
|
170
180
|
</div>
|
|
171
181
|
</Wrapper>
|
|
172
|
-
</
|
|
182
|
+
</section>);
|
|
173
183
|
};
|
|
174
184
|
export default GlobalOfficeSection;
|
|
175
185
|
const Ping = ({ className }) => {
|
|
176
|
-
return (<div className={'absolute aspect-square w-[
|
|
186
|
+
return (<div className={'absolute aspect-square w-[9px] max-xl:scale-[0.8] max-2sm:scale-[0.6] ' + className}>
|
|
177
187
|
<div className={'absolute left-0 top-0 h-full w-full rounded-full bg-[#04325A] ' +
|
|
178
188
|
'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 ' +
|
|
189
|
+
<div className={'ping_1 absolute left-0 top-0 h-full w-full rounded-full bg-[#285FA7] opacity-0 ' +
|
|
180
190
|
'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 ' +
|
|
191
|
+
<div className={'ping_2 absolute left-0 top-0 h-full w-full rounded-full bg-[#285FA7] opacity-0 ' +
|
|
182
192
|
'group-hover:animate-global_map_ping_2 duration-500'}/>
|
|
183
193
|
</div>);
|
|
184
194
|
};
|
|
185
195
|
const TextCon = ({ text }) => {
|
|
186
196
|
return (<p className={'text-[30px] font-[700] uppercase tracking-[-0.5px] text-[#7F8791] ' +
|
|
187
197
|
'before:mr-[16px] before:inline-block before:h-[24px] before:w-[3px] before:bg-[#04325A] before:content-[""] ' +
|
|
188
|
-
'max-[1935px]:text-[1.
|
|
198
|
+
'max-[1935px]:text-[1.4vw] max-[1935px]:tracking-[-0.03vw] max-[1935px]:before:mr-[0.83vw] max-[1935px]:before:h-[1.1vw] ' +
|
|
189
199
|
'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]'
|
|
200
|
+
'max-md:text-[4vw] max-md:leading-none max-md:before:h-[3.33vw] max-md:before:w-[2px] ' +
|
|
201
|
+
'max-[360px]:text-[14.4px] max-[360px]:before:h-[12px] '}>
|
|
191
202
|
{text}
|
|
192
203
|
</p>);
|
|
193
204
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import GlobalOfficeSection from './GlobalOfficeSection';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: Meta<typeof GlobalOfficeSection>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import GlobalOfficeSection from './GlobalOfficeSection';
|
|
2
|
+
const meta = {
|
|
3
|
+
component: GlobalOfficeSection,
|
|
4
|
+
title: 'GlobalOfficeSection'
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
export const Default = {
|
|
8
|
+
render: args => {
|
|
9
|
+
return (<div className={'font-[SUIT]'}>
|
|
10
|
+
<GlobalOfficeSection />
|
|
11
|
+
</div>);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import GlobalOfficeSection from './GlobalOfficeSection';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import { initInitialData } from '../common/initialData';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof GlobalOfficeSection> = {
|
|
6
|
+
component: GlobalOfficeSection,
|
|
7
|
+
title: 'GlobalOfficeSection'
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default meta;
|
|
11
|
+
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
|
|
14
|
+
export const Default: Story = {
|
|
15
|
+
render: args => {
|
|
16
|
+
return (
|
|
17
|
+
<div className={'font-[SUIT]'}>
|
|
18
|
+
<GlobalOfficeSection />
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
};
|