diff --git a/src/components/Banner.module.css b/src/components/Banner.module.css
index 89b73d0..3ef80e5 100644
--- a/src/components/Banner.module.css
+++ b/src/components/Banner.module.css
@@ -14,7 +14,7 @@
/* width: 10rem; */
height: 10rem;
object-fit: cover;
- margin-bottom: -2.5rem;
+ /* margin-bottom: -2.5rem; */
}
.bgSwiper {
@@ -53,12 +53,10 @@
inset: 0;
z-index: 1;
pointer-events: none;
- background: linear-gradient(
- to right,
- rgba(0, 0, 0, 0.5) 0%,
- rgba(0, 0, 0, 0.2) 60%,
- transparent 100%
- );
+ background: linear-gradient(to right,
+ rgba(0, 0, 0, 0.5) 0%,
+ rgba(0, 0, 0, 0.2) 60%,
+ transparent 100%);
display: none;
}
@@ -96,6 +94,8 @@
color: rgba(255, 255, 255, 0.95);
margin: 0;
letter-spacing: 0.02em;
+ font-weight: 500;
+ line-height: 44px;
}
.heroLargeDesc {
@@ -181,5 +181,4 @@
margin-top: 2rem;
font-size: 0.875rem;
}
-}
-
+}
\ No newline at end of file
diff --git a/src/components/Banner.tsx b/src/components/Banner.tsx
index 64abb48..a37b81e 100644
--- a/src/components/Banner.tsx
+++ b/src/components/Banner.tsx
@@ -53,7 +53,7 @@ function BannerSlideVideo({
export type { BannerConfig } from "@/type";
type Props = {
- title: string;
+ title?: string;
subtitle?: string;
desc?: string | React.ReactNode;
content?: string;
@@ -101,7 +101,7 @@ export default function Banner({
if (child) return child.label;
}
const last = path.split("/").pop() ?? path;
- return title;
+ return title ?? "";
};
const items = paths.map((path) => ({
label: getLabelByPath(path),
@@ -117,7 +117,7 @@ export default function Banner({
const heroContent = (
- {icon ?
+ {icon ? icon
:
{title}
}
diff --git a/src/pages/About/History.tsx b/src/pages/About/History.tsx
index 153759c..91dc278 100644
--- a/src/pages/About/History.tsx
+++ b/src/pages/About/History.tsx
@@ -54,7 +54,7 @@ export default function AboutHistory() {
diff --git a/src/pages/Business/BaseGroup.tsx b/src/pages/Business/BaseGroup.tsx
index da87eb4..ed3041e 100644
--- a/src/pages/Business/BaseGroup.tsx
+++ b/src/pages/Business/BaseGroup.tsx
@@ -33,7 +33,7 @@ export default function BaseGroup() {
diff --git a/src/pages/Business/CommercialGroup.tsx b/src/pages/Business/CommercialGroup.tsx
index 2f2fcb6..6da2b38 100644
--- a/src/pages/Business/CommercialGroup.tsx
+++ b/src/pages/Business/CommercialGroup.tsx
@@ -90,7 +90,7 @@ export default function BusinessCommercialGroup() {
diff --git a/src/pages/Business/CommercialGroupDetail.tsx b/src/pages/Business/CommercialGroupDetail.tsx
index 35ba686..09d9a58 100644
--- a/src/pages/Business/CommercialGroupDetail.tsx
+++ b/src/pages/Business/CommercialGroupDetail.tsx
@@ -18,7 +18,7 @@ export default function BusinessCommercialGroupDetail() {
}
largedesc={(banner as BannerConfig)?.largeContent}
titleSize={(banner as BannerConfig)?.titleSize ?? "large"}
backgroundImage={banner?.backgroundImage ?? "/images/bg-commercial-group.png"}
diff --git a/src/pages/Business/InvestGroup.tsx b/src/pages/Business/InvestGroup.tsx
index 3bb5c42..1a7b68c 100644
--- a/src/pages/Business/InvestGroup.tsx
+++ b/src/pages/Business/InvestGroup.tsx
@@ -22,7 +22,7 @@ export default function InvestGroup() {
diff --git a/src/pages/Business/RealtyGroup.tsx b/src/pages/Business/RealtyGroup.tsx
index abb29ff..1b8d631 100644
--- a/src/pages/Business/RealtyGroup.tsx
+++ b/src/pages/Business/RealtyGroup.tsx
@@ -36,7 +36,7 @@ export default function RealtyGroup() {
diff --git a/src/pages/Business/RuijingGroup.tsx b/src/pages/Business/RuijingGroup.tsx
index 959d9e7..e7d587a 100644
--- a/src/pages/Business/RuijingGroup.tsx
+++ b/src/pages/Business/RuijingGroup.tsx
@@ -27,7 +27,7 @@ export default function RuijingGroup() {
diff --git a/src/pages/Social/Foundation.tsx b/src/pages/Social/Foundation.tsx
index d45faf9..a49d236 100644
--- a/src/pages/Social/Foundation.tsx
+++ b/src/pages/Social/Foundation.tsx
@@ -71,7 +71,8 @@ export default function Foundation() {
return (
}
+ subtitle={banner?.title ?? ""}
content={(banner as BannerConfig)?.content}
titleSize={(banner as BannerConfig)?.titleSize ?? "medium"}
backgroundImage={banner?.backgroundImage ?? "/images/bg-overview.png"}