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 }} > - - + + + {'返回上一頁'} + +