summaryrefslogtreecommitdiff
path: root/src/pages/index.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/index.jsx')
-rw-r--r--src/pages/index.jsx24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index 914fb266..8af963fb 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -43,6 +43,11 @@ const FlashSale = dynamic(
loading: () => <FlashSaleSkeleton />,
}
);
+
+const ProgramPromotion = dynamic(() =>
+ import('@/lib/home/components/PromotionProgram')
+);
+
const BannerSection = dynamic(() =>
import('@/lib/home/components/BannerSection')
);
@@ -101,12 +106,16 @@ export default function Home() {
</div>
</div>
- <div className='my-16 flex flex-col gap-y-16'>
+ <div className='my-16 flex flex-col gap-y-8'>
<ServiceList />
<div id='flashsale'>
<PreferredBrand />
</div>
- {!auth?.feature?.soApproval && <FlashSale />}
+ {!auth?.feature?.soApproval && (
+ <>
+ <ProgramPromotion /> <FlashSale />
+ </>
+ )}
<PromotinProgram />
<CategoryHomeId />
<BannerSection />
@@ -129,9 +138,14 @@ export default function Home() {
</div>
</DelayRender>
{!auth?.feature?.soApproval && (
- <DelayRender renderAfter={600}>
- <FlashSale />
- </DelayRender>
+ <>
+ <DelayRender renderAfter={400}>
+ <ProgramPromotion />
+ </DelayRender>
+ <DelayRender renderAfter={600}>
+ <FlashSale />
+ </DelayRender>
+ </>
)}
<DelayRender renderAfter={600}>
<PromotinProgram />