From 9dee741e285b003d3ac455d8c992b0fc4b124291 Mon Sep 17 00:00:00 2001 From: Mackie Date: Mon, 25 May 2026 01:11:24 +0800 Subject: [PATCH] hero --- src/components/HeroPage.tsx | 86 ++++++++++++++++++++++--------------- 1 file changed, 51 insertions(+), 35 deletions(-) diff --git a/src/components/HeroPage.tsx b/src/components/HeroPage.tsx index 0e8bbf2..2659c00 100644 --- a/src/components/HeroPage.tsx +++ b/src/components/HeroPage.tsx @@ -170,10 +170,9 @@ function Background({ isDark }: { isDark: boolean }) { type HeroProps = Pick function HeroSection({ isDark, richText, links }: HeroProps & { isDark: boolean }) { - const muted = isDark ? 'text-white/55' : 'text-black/55' + const richTextColor = isDark ? 'text-white' : 'text-black' const borderLine = isDark ? 'bg-white/10' : 'bg-black/10' const borderLineFaint = isDark ? 'bg-white/5' : 'bg-black/5' - const richTextColor = isDark ? 'text-white' : 'text-black' return (
@@ -193,40 +192,57 @@ function HeroSection({ isDark, richText, links }: HeroProps & { isDark: boolean
- {/* Rich text from Payload */} - {richText && ( - - )} + {/* Ghost glass box */} +
+ {/* Rich text from Payload */} + {richText && ( + + )} - {/* Links from Payload */} - {Array.isArray(links) && links.length > 0 && ( -
- {links.map(({ link }, i) => ( - - ))} -
- )} + {/* Links from Payload */} + {Array.isArray(links) && links.length > 0 && ( +
+ {links.map(({ link }, i) => ( + + ))} +
+ )} +