diff --git a/website/src/components/HeroSection.jsx b/website/src/components/HeroSection.jsx index 9546316..11f471d 100644 --- a/website/src/components/HeroSection.jsx +++ b/website/src/components/HeroSection.jsx @@ -198,7 +198,7 @@ export default function HeroSection() { {/* Heading */}

- + 智慧教育 diff --git a/website/src/components/Navbar.jsx b/website/src/components/Navbar.jsx index 6d32854..4e199eb 100644 --- a/website/src/components/Navbar.jsx +++ b/website/src/components/Navbar.jsx @@ -8,6 +8,8 @@ export default function Navbar() { const [mobileOpen, setMobileOpen] = useState(false); const location = useLocation(); + + useEffect(() => { const handleScroll = () => setScrolled(window.scrollY > window.innerHeight * 0.7); window.addEventListener('scroll', handleScroll, { passive: true }); @@ -24,6 +26,8 @@ export default function Navbar() { { to: '/contact', label: '联系我们' }, ]; + + return ( <>