|
@@ -1,6 +1,7 @@
|
|
|
import React, { lazy, Suspense } from 'react';
|
|
import React, { lazy, Suspense } from 'react';
|
|
|
import TopButton from "@/components/common/TopButton";
|
|
import TopButton from "@/components/common/TopButton";
|
|
|
import LoadingSpinner from "@/components/common/LoadingSpinner";
|
|
import LoadingSpinner from "@/components/common/LoadingSpinner";
|
|
|
|
|
+import PopupModal from "@/components/common/PopupModal"; // ✅ import
|
|
|
|
|
|
|
|
const Hero = lazy(() => import("@/components/main/Hero.jsx"));
|
|
const Hero = lazy(() => import("@/components/main/Hero.jsx"));
|
|
|
const Business = lazy(() => import("@/components/main/Business.jsx"));
|
|
const Business = lazy(() => import("@/components/main/Business.jsx"));
|
|
@@ -12,14 +13,35 @@ const Footer = lazy(() => import("@/components/main/Footer.jsx"));
|
|
|
const Main = () => {
|
|
const Main = () => {
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
|
|
+ <PopupModal
|
|
|
|
|
+ imageSrc="/image/popup/popup1.jpg"
|
|
|
|
|
+ button1Text="자세히 보기"
|
|
|
|
|
+ button1Link="/business/sections"
|
|
|
|
|
+ button2Text="전국 문의"
|
|
|
|
|
+ button2Link="/business/sections"
|
|
|
|
|
+ popupKey="popup_hidden_1"
|
|
|
|
|
+ offsetRightPx={24} // right-6
|
|
|
|
|
+ />
|
|
|
|
|
+
|
|
|
|
|
+ <PopupModal
|
|
|
|
|
+ imageSrc="/image/popup/popup2.jpg"
|
|
|
|
|
+ button1Text="자세히 보기"
|
|
|
|
|
+ button1Link="/business/sections"
|
|
|
|
|
+ button2Text="견적 문의하기"
|
|
|
|
|
+ button2Link="/business/sections"
|
|
|
|
|
+ popupKey="popup_hidden_2"
|
|
|
|
|
+ offsetRightPx={360} // right-90px (popup1 width + margin)
|
|
|
|
|
+ />
|
|
|
|
|
+
|
|
|
<Suspense fallback={<LoadingSpinner />}>
|
|
<Suspense fallback={<LoadingSpinner />}>
|
|
|
- <Hero/>
|
|
|
|
|
- <Business/>
|
|
|
|
|
- <Project/>
|
|
|
|
|
- <Partners/>
|
|
|
|
|
- <Directions/>
|
|
|
|
|
- <Footer/>
|
|
|
|
|
|
|
+ <Hero />
|
|
|
|
|
+ <Business />
|
|
|
|
|
+ <Project />
|
|
|
|
|
+ <Partners />
|
|
|
|
|
+ <Directions />
|
|
|
|
|
+ <Footer />
|
|
|
</Suspense>
|
|
</Suspense>
|
|
|
|
|
+
|
|
|
<TopButton />
|
|
<TopButton />
|
|
|
</>
|
|
</>
|
|
|
);
|
|
);
|