From 29516c9a1e3159220ddc87ebcd58bf65826d0a99 Mon Sep 17 00:00:00 2001 From: zhangjianjun Date: Tue, 14 Apr 2026 18:15:02 +0800 Subject: [PATCH] ud --- src/App.css | 4 ++-- src/components/Banner.module.css | 2 +- src/components/ScreenOpen/index.module.css | 4 ++-- src/components/layout/BottomTabsSection/index.module.css | 2 +- src/components/layout/JobPage/index.module.css | 2 +- src/components/layout/RowAccordion/index.module.css | 2 +- src/components/layout/SwiperCardSection/index.module.css | 6 +++--- src/components/layout/TopTabsSection/index.module.css | 3 +-- src/index.css | 2 ++ src/pages/About/About.module.css | 2 +- src/pages/About/Founder.module.css | 4 ++-- src/pages/About/History.module.css | 2 +- src/pages/Business/CommercialGroup.module.css | 4 ++-- src/pages/Business/InvestGroup.module.css | 2 +- src/pages/Home/Home.module.css | 4 ++-- src/pages/Social/Sustainability.tsx | 2 +- 16 files changed, 24 insertions(+), 23 deletions(-) diff --git a/src/App.css b/src/App.css index 900edd1..51c0b19 100644 --- a/src/App.css +++ b/src/App.css @@ -30,7 +30,7 @@ ul, li { .App-header { background-color: #282c34; - min-height: calc(100vh / var(--zoom-compensation, 1)); + min-height: 100dvh; display: flex; flex-direction: column; align-items: center; @@ -106,7 +106,7 @@ body { .layout { display: flex; flex-direction: column; - min-height: calc(100vh / var(--zoom-compensation, 1)); + min-height: 100dvh; } .layout-header { diff --git a/src/components/Banner.module.css b/src/components/Banner.module.css index 4d5ed5a..ce228b9 100644 --- a/src/components/Banner.module.css +++ b/src/components/Banner.module.css @@ -1,7 +1,7 @@ /* Hero */ .hero { position: relative; - min-height: calc(100vh / var(--zoom-compensation, 1)); + min-height: 100dvh; background-size: cover; background-position: center; padding-bottom: 3.125rem; diff --git a/src/components/ScreenOpen/index.module.css b/src/components/ScreenOpen/index.module.css index d61ff99..d8a1d05 100644 --- a/src/components/ScreenOpen/index.module.css +++ b/src/components/ScreenOpen/index.module.css @@ -1,6 +1,6 @@ .screenOpen { width: 100%; - height: calc(100vh / var(--zoom-compensation, 1)); + height: 100dvh; position: fixed; top: 0; left: 0; @@ -21,7 +21,7 @@ .screenOpenBackground { width: 100%; - height: calc(100vh / var(--zoom-compensation, 1)); + height: 100dvh; position: absolute; top: 0; left: 0; diff --git a/src/components/layout/BottomTabsSection/index.module.css b/src/components/layout/BottomTabsSection/index.module.css index be03d05..91835d1 100644 --- a/src/components/layout/BottomTabsSection/index.module.css +++ b/src/components/layout/BottomTabsSection/index.module.css @@ -3,7 +3,7 @@ overflow: hidden; width: 100%; /* height: 67.5rem; */ - /* height: calc(100vh / var(--zoom-compensation, 1)); */ + /* height: 100dvh; */ padding: 6.25rem 0; background-size: cover; background-position: center; diff --git a/src/components/layout/JobPage/index.module.css b/src/components/layout/JobPage/index.module.css index b1e2880..b53dcb7 100644 --- a/src/components/layout/JobPage/index.module.css +++ b/src/components/layout/JobPage/index.module.css @@ -1,6 +1,6 @@ .jobPage { width: 100%; - min-height: calc(100vh / var(--zoom-compensation, 1)); + min-height: 100dvh; padding: 7.5rem 6.25rem; .jobPageHeaderLine { diff --git a/src/components/layout/RowAccordion/index.module.css b/src/components/layout/RowAccordion/index.module.css index 68339a7..9186162 100644 --- a/src/components/layout/RowAccordion/index.module.css +++ b/src/components/layout/RowAccordion/index.module.css @@ -6,7 +6,7 @@ overflow-anchor: none; /* padding: 0 13.54vw; */ width: 100%; - height: calc(100vh / var(--zoom-compensation, 1)); + height: 100dvh; } .rowAccordionBgContainer { position: absolute; diff --git a/src/components/layout/SwiperCardSection/index.module.css b/src/components/layout/SwiperCardSection/index.module.css index 0ef09ed..c3a0a45 100644 --- a/src/components/layout/SwiperCardSection/index.module.css +++ b/src/components/layout/SwiperCardSection/index.module.css @@ -1,5 +1,5 @@ .swiperCardSection { - min-height: calc(100vh / var(--zoom-compensation, 1)); + min-height: 100dvh; padding: 6.25rem 13.54vw; background: #D8D8D8; background-size: cover; @@ -24,7 +24,7 @@ position: absolute; top: 50%; transform: translateY(-50%); - left: -5.625rem; + left: -90px; z-index: 99; display: flex; justify-content: center; @@ -33,7 +33,7 @@ .nextBtn { left: auto; - right: -5.625rem; + right: -90px; } .swiperCardList { diff --git a/src/components/layout/TopTabsSection/index.module.css b/src/components/layout/TopTabsSection/index.module.css index 318a998..cf377c2 100644 --- a/src/components/layout/TopTabsSection/index.module.css +++ b/src/components/layout/TopTabsSection/index.module.css @@ -1,8 +1,7 @@ .topTabsSection { padding: 6.25rem 0 0 0; - padding: 6.25rem 13.54vw 0 13.54vw; + padding: 6.25rem 13.54vw; width: 100%; - height: calc(100vh / var(--zoom-compensation, 1)); background-size: cover; background-position: center; background-repeat: no-repeat; diff --git a/src/index.css b/src/index.css index c9a336d..7a56cff 100644 --- a/src/index.css +++ b/src/index.css @@ -19,6 +19,8 @@ html { @media screen and (max-width: 1440px) { html { --design-rem-base: 14px; + font-size: 10px; + } } diff --git a/src/pages/About/About.module.css b/src/pages/About/About.module.css index 1a4137a..c5fe3aa 100644 --- a/src/pages/About/About.module.css +++ b/src/pages/About/About.module.css @@ -1,7 +1,7 @@ /* Section block - full-width with background */ .section { position: relative; - min-height: calc(100vh / var(--zoom-compensation, 1)); + min-height: 100dvh; background-size: cover; background-position: center; display: flex; diff --git a/src/pages/About/Founder.module.css b/src/pages/About/Founder.module.css index 7454970..40525c1 100644 --- a/src/pages/About/Founder.module.css +++ b/src/pages/About/Founder.module.css @@ -1,7 +1,7 @@ .section { background: rgba(255, 255, 255, 0.6); border-radius: 0; - min-height: calc(100vh / var(--zoom-compensation, 1)); + min-height: 100dvh; width: 100%; padding: 6.25rem 13.54vw; display: flex; @@ -109,7 +109,7 @@ .sectionFounder { padding: 6.25rem 0 9.375rem; - min-height: calc(100vh / var(--zoom-compensation, 1)); + min-height: 100dvh; background-size: cover; background-position: center; background-repeat: no-repeat; diff --git a/src/pages/About/History.module.css b/src/pages/About/History.module.css index e71aacd..d7bc9a7 100644 --- a/src/pages/About/History.module.css +++ b/src/pages/About/History.module.css @@ -7,7 +7,7 @@ rgba(200, 200, 205, 0.3) .125rem, rgba(200, 200, 205, 0.3) .25rem ); - min-height: calc(100vh / var(--zoom-compensation, 1)); + min-height: 100dvh; width: 100%; padding: 6.25rem 0; padding-bottom: 9.375rem; diff --git a/src/pages/Business/CommercialGroup.module.css b/src/pages/Business/CommercialGroup.module.css index d4c76b6..53d29c0 100644 --- a/src/pages/Business/CommercialGroup.module.css +++ b/src/pages/Business/CommercialGroup.module.css @@ -163,7 +163,7 @@ /* Features Section */ .featuresHero { width: 100%; - height: calc(100vh / var(--zoom-compensation, 1)); + height: 100dvh; background-size: cover; background-position: center; background-repeat: no-repeat; @@ -252,7 +252,7 @@ } .propertyServices { - height: calc(100vh / var(--zoom-compensation, 1)); + height: 100dvh; color: #fff; padding: 0 13.54vw; } diff --git a/src/pages/Business/InvestGroup.module.css b/src/pages/Business/InvestGroup.module.css index dbae889..714a110 100644 --- a/src/pages/Business/InvestGroup.module.css +++ b/src/pages/Business/InvestGroup.module.css @@ -111,7 +111,7 @@ .industryFoster { width: 100%; - height: calc(100vh / var(--zoom-compensation, 1)); + height: 100dvh; display: flex; align-items: center; position: relative; diff --git a/src/pages/Home/Home.module.css b/src/pages/Home/Home.module.css index 2fec153..e463ae2 100644 --- a/src/pages/Home/Home.module.css +++ b/src/pages/Home/Home.module.css @@ -1,7 +1,7 @@ /* Hero */ .hero { position: relative; - min-height: calc(100vh / var(--zoom-compensation, 1)); + min-height: 100dvh; background-size: cover; background-position: center; } @@ -41,7 +41,7 @@ /* Commercial */ .commercial { position: relative; - height: calc(100vh / var(--zoom-compensation, 1)); + height: 100dvh; background-size: cover; background-position: center; display: flex; diff --git a/src/pages/Social/Sustainability.tsx b/src/pages/Social/Sustainability.tsx index 3d4afd8..e93362b 100644 --- a/src/pages/Social/Sustainability.tsx +++ b/src/pages/Social/Sustainability.tsx @@ -126,7 +126,7 @@ export default function Sustainability() { )} - {section3Data && ( + {section3Data && section3Data.hide !== true && (