From ec6222d183c551ee886d90aa5c1a1d9fd16646d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=BD=98?= <16176807+xaioppan@user.noreply.gitee.com> Date: Fri, 29 May 2026 17:32:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E4=BD=93=E5=93=8D=E5=BA=94=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/src/components/HeroSection.jsx | 2 +- website/src/components/Navbar.jsx | 4 + website/src/data/products.js | 28 +------ website/src/index.css | 1 + website/src/pages/Contact.jsx | 5 +- website/src/pages/Home.jsx | 108 ++++++++++++------------- website/src/pages/ProductPage.jsx | 29 +++---- 7 files changed, 79 insertions(+), 98 deletions(-) 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 ( <>