@daeryun/dr_components 1.1.97 → 1.1.99
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/map/washingtondc.webp +0 -0
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.d.ts +2 -1
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.jsx +2 -2
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.stories.jsx +1 -1
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.stories.tsx +1 -1
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.tsx +2 -2
- package/dist/components/page/MapPage/MapPage.jsx +2 -2
- package/dist/components/page/MapPage/MapPage.tsx +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
Binary file
|
|
@@ -17,7 +17,7 @@ import LineKoreaSm from '../../asset/images/globalOffice/korea_line_sm.svg';
|
|
|
17
17
|
// 좌표계산용
|
|
18
18
|
const MAP_W = 3873;
|
|
19
19
|
const MAP_H = 1853;
|
|
20
|
-
const GlobalOfficeSection = ({ isCenter }) => {
|
|
20
|
+
const GlobalOfficeSection = ({ isCenter, customFont }) => {
|
|
21
21
|
const { width } = useBrowser(true);
|
|
22
22
|
return (<section className={'relative z-[6] h-[1300px] w-full overflow-hidden bg-white transition-opacity duration-700 ' +
|
|
23
23
|
'max-[1935px]:aspect-[1935/1000] max-[1935px]:h-auto ' +
|
|
@@ -25,7 +25,7 @@ const GlobalOfficeSection = ({ isCenter }) => {
|
|
|
25
25
|
'max-md:aspect-[360/700] ' +
|
|
26
26
|
'max-[360px]:aspect-auto max-[360px]:h-[700px] '}>
|
|
27
27
|
<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 '}/>
|
|
28
|
-
<Wrapper className={
|
|
28
|
+
<Wrapper className={`relative h-full ${customFont}`}>
|
|
29
29
|
{/*title*/}
|
|
30
30
|
<span className={'absolute bottom-[200px] z-[1] w-[850px] ' +
|
|
31
31
|
'max-[1935px]:bottom-[6vw] max-[1935px]:w-[41.37vw] ' +
|
|
@@ -21,7 +21,7 @@ import LineKoreaSm from '../../asset/images/globalOffice/korea_line_sm.svg';
|
|
|
21
21
|
const MAP_W = 3873;
|
|
22
22
|
const MAP_H = 1853;
|
|
23
23
|
|
|
24
|
-
const GlobalOfficeSection = ({ isCenter }: { isCenter?: boolean }) => {
|
|
24
|
+
const GlobalOfficeSection = ({ isCenter, customFont }: { isCenter?: boolean; customFont: string }) => {
|
|
25
25
|
const { width } = useBrowser(true);
|
|
26
26
|
|
|
27
27
|
return (
|
|
@@ -42,7 +42,7 @@ const GlobalOfficeSection = ({ isCenter }: { isCenter?: boolean }) => {
|
|
|
42
42
|
loading={'lazy'}
|
|
43
43
|
className={'absolute left-0 top-0 h-full w-full object-cover '}
|
|
44
44
|
/>
|
|
45
|
-
<Wrapper className={
|
|
45
|
+
<Wrapper className={`relative h-full ${customFont}`}>
|
|
46
46
|
{/*title*/}
|
|
47
47
|
<span
|
|
48
48
|
className={
|
|
@@ -115,8 +115,8 @@ const MapPage = ({ officeList, mapInfo, noScroll = false }) => {
|
|
|
115
115
|
<div className={'relative md:h-[60%] md:w-[45%] lg:w-[40%]'}>
|
|
116
116
|
{mapInfo && (mapInfo.key === 'newyork' || mapInfo.key === 'washingtondc') ? (<div className={'relative mt-[58px] h-[615px] w-full max-md:aspect-[5/4] max-md:h-auto max-md:max-h-[500px] ' +
|
|
117
117
|
'max-lg:mt-[50px] max-md:mt-0'}>
|
|
118
|
-
<Image src={mapInfo.key === 'newyork' ? ImgNewyork : ImgWashington} alt={mapInfo.key === 'newyork' ? 'sjkp 뉴욕 사무소' : 'sjkp 워싱턴 사무소'} fill className={'h-full w-full object-cover
|
|
119
|
-
`${mapInfo.key === 'washingtondc' ? '
|
|
118
|
+
<Image src={mapInfo.key === 'newyork' ? ImgNewyork : ImgWashington} alt={mapInfo.key === 'newyork' ? 'sjkp 뉴욕 사무소' : 'sjkp 워싱턴 사무소'} fill className={'h-full w-full object-cover ' +
|
|
119
|
+
`${mapInfo.key === 'washingtondc' ? '' : 'max-md:object-top '}`}/>
|
|
120
120
|
</div>) : (<Map isFirstClick={false} onClick={(select, key) => __awaiter(void 0, void 0, void 0, function* () {
|
|
121
121
|
setSelectRegion(key);
|
|
122
122
|
yield router.push(`/map/${key}`);
|
|
@@ -142,8 +142,8 @@ const MapPage = ({
|
|
|
142
142
|
alt={mapInfo.key === 'newyork' ? 'sjkp 뉴욕 사무소' : 'sjkp 워싱턴 사무소'}
|
|
143
143
|
fill
|
|
144
144
|
className={
|
|
145
|
-
'h-full w-full object-cover
|
|
146
|
-
`${mapInfo.key === 'washingtondc' ? '
|
|
145
|
+
'h-full w-full object-cover ' +
|
|
146
|
+
`${mapInfo.key === 'washingtondc' ? '' : 'max-md:object-top '}`
|
|
147
147
|
}
|
|
148
148
|
/>
|
|
149
149
|
</div>
|