From 671b0de875b7fdbd6d7323e39f3a14a686cdcd69 Mon Sep 17 00:00:00 2001 From: philipcheung Date: Mon, 10 Nov 2025 11:06:45 +0800 Subject: [PATCH] ui updated --- src/components/new_ui/advantages.tsx | 4 ++-- src/components/new_ui/truth.tsx | 23 ++++++++++++++++++++--- src/pages/recipe.tsx | 19 ++++++++++++------- 3 files changed, 34 insertions(+), 12 deletions(-) diff --git a/src/components/new_ui/advantages.tsx b/src/components/new_ui/advantages.tsx index 48182af..d92ab51 100644 --- a/src/components/new_ui/advantages.tsx +++ b/src/components/new_ui/advantages.tsx @@ -198,7 +198,7 @@ function Advantages() { @@ -455,7 +455,7 @@ function Advantages() { (null); const isMainInView = useInView(mainRef, { once: true }); const isTitleInView = useInView(titleRef, { once: true }); + const [hoveredIndex, setHoveredIndex] = useState(null); // Load Facebook SDK and initialize the plugin @@ -168,13 +169,29 @@ function Truth() { window.open(url, '_blank'); } }} + onHoverStart={() => setHoveredIndex(index)} + onHoverEnd={() => setHoveredIndex(null)} >
- router.navigate({ to: '/' })} cursor="pointer" _hover={{ opacity: 0.8 }} > - - + + + {'返回上一頁'} + +