This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fury-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 78461bf  Add Faq to Fury website. (#147)
78461bf is described below

commit 78461bffb7249c50ddc9a459bdd7e99b45986312
Author: LofiSu <[email protected]>
AuthorDate: Thu Aug 8 00:16:16 2024 +0800

    Add Faq to Fury website. (#147)
    
    Add Faq to Fury website.
    
    https://github.com/apache/fury/issues/1793
---
 docusaurus.config.ts                            |  5 ++++
 i18n/en/docusaurus-theme-classic/navbar.json    |  4 +++
 i18n/zh-CN/docusaurus-theme-classic/navbar.json |  4 +++
 package-lock.json                               | 21 +++++++++++++
 package.json                                    |  1 +
 src/pages/index.tsx                             | 39 +++++++++++++++++++++++--
 6 files changed, 71 insertions(+), 3 deletions(-)

diff --git a/docusaurus.config.ts b/docusaurus.config.ts
index 75f736d..8c9e9e6 100644
--- a/docusaurus.config.ts
+++ b/docusaurus.config.ts
@@ -99,6 +99,11 @@ const config: Config = {
           to: 'download',
           label: 'Download',
         },
+        {
+          position: 'right',
+          to: 'https://github.com/apache/fury/issues/1793',
+          label: 'FAQ',
+        },
         {to: '/blog', label: 'Blog', position: 'right'},
         {
           type: 'dropdown',
diff --git a/i18n/en/docusaurus-theme-classic/navbar.json 
b/i18n/en/docusaurus-theme-classic/navbar.json
index d038b1c..ef5308f 100644
--- a/i18n/en/docusaurus-theme-classic/navbar.json
+++ b/i18n/en/docusaurus-theme-classic/navbar.json
@@ -27,6 +27,10 @@
     "message": "Download",
     "description": "Navbar item with label Download"
   },
+  "item.label.FAQ": {
+    "message": "FAQ",
+    "description": "Navbar item with label FAQ"
+  },
   "item.label.Blog": {
     "message": "Blog",
     "description": "Navbar item with label Blog"
diff --git a/i18n/zh-CN/docusaurus-theme-classic/navbar.json 
b/i18n/zh-CN/docusaurus-theme-classic/navbar.json
index bd48e98..305c6fb 100644
--- a/i18n/zh-CN/docusaurus-theme-classic/navbar.json
+++ b/i18n/zh-CN/docusaurus-theme-classic/navbar.json
@@ -27,6 +27,10 @@
     "message": "下载",
     "description": "Navbar item with label Download"
   },
+  "item.label.FAQ": {
+    "message": "FAQ",
+    "description": "Navbar item with label FAQ"
+  },
   "item.label.Blog": {
     "message": "博客",
     "description": "Navbar item with label Blog"
diff --git a/package-lock.json b/package-lock.json
index f23d624..59e176f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -11,6 +11,7 @@
         "@docusaurus/core": "3.0.1",
         "@docusaurus/preset-classic": "3.0.1",
         "@mdx-js/react": "^3.0.0",
+        "aos": "^2.3.4",
         "clsx": "^2.0.0",
         "docusaurus-lunr-search": "^3.3.1",
         "prism-react-renderer": "^2.3.0",
@@ -4038,6 +4039,16 @@
         "node": ">= 8"
       }
     },
+    "node_modules/aos": {
+      "version": "2.3.4",
+      "resolved": "https://registry.npmjs.org/aos/-/aos-2.3.4.tgz";,
+      "integrity": 
"sha512-zh/ahtR2yME4I51z8IttIt4lC1Nw0ktsFtmeDzID1m9naJnWXhCoARaCgNOGXb5CLy3zm+wqmRAEgMYB5E2HUw==",
+      "dependencies": {
+        "classlist-polyfill": "^1.0.3",
+        "lodash.debounce": "^4.0.6",
+        "lodash.throttle": "^4.0.1"
+      }
+    },
     "node_modules/aproba": {
       "version": "2.0.0",
       "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz";,
@@ -4642,6 +4653,11 @@
         "node": ">=8"
       }
     },
+    "node_modules/classlist-polyfill": {
+      "version": "1.2.0",
+      "resolved": 
"https://registry.npmjs.org/classlist-polyfill/-/classlist-polyfill-1.2.0.tgz";,
+      "integrity": 
"sha512-GzIjNdcEtH4ieA2S8NmrSxv7DfEV5fmixQeyTmqmRmRJPGpRBaSnA2a0VrCjyT8iW8JjEdMbKzDotAJf+ajgaQ=="
+    },
     "node_modules/clean-css": {
       "version": "5.3.3",
       "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.3.tgz";,
@@ -8484,6 +8500,11 @@
       "resolved": 
"https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz";,
       "integrity": 
"sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag=="
     },
+    "node_modules/lodash.throttle": {
+      "version": "4.1.1",
+      "resolved": 
"https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz";,
+      "integrity": 
"sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ=="
+    },
     "node_modules/lodash.uniq": {
       "version": "4.5.0",
       "resolved": 
"https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz";,
diff --git a/package.json b/package.json
index 1747560..d289658 100644
--- a/package.json
+++ b/package.json
@@ -18,6 +18,7 @@
     "@docusaurus/core": "3.0.1",
     "@docusaurus/preset-classic": "3.0.1",
     "@mdx-js/react": "^3.0.0",
+    "aos": "^2.3.4",
     "clsx": "^2.0.0",
     "docusaurus-lunr-search": "^3.3.1",
     "prism-react-renderer": "^2.3.0",
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 6703890..86a82aa 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -1,3 +1,4 @@
+import React, { useEffect } from "react";
 import clsx from "clsx";
 import Link from "@docusaurus/Link";
 import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
@@ -6,12 +7,27 @@ import HomepageFeatures from 
"@site/src/components/HomepageFeatures";
 import Heading from "@theme/Heading";
 import styles from "./index.module.css";
 import Translate, { translate } from "@docusaurus/Translate";
-import React from "react";
+import AOS from "aos";
+import "aos/dist/aos.css";
 
 function HomepageHeader() {
   const { siteConfig } = useDocusaurusContext();
+
+  useEffect(() => {
+    AOS.init({
+      offset: 100,
+      duration: 700,
+      easing: "ease-out-quad",
+      once: true,
+    });
+    window.addEventListener("load", AOS.refresh);
+  }, []);
+
   return (
-    <header className={clsx("hero hero--primary", styles.heroBanner)}>
+    <header
+      className={clsx("hero hero--primary", styles.heroBanner)}
+      data-aos="fade-up"
+    >
       <div className="container">
         <Heading as="h1" className="hero__title">
           <Translate id="homepage.hero.title">{siteConfig.title}</Translate>
@@ -25,6 +41,8 @@ function HomepageHeader() {
           <Link
             className="button button--secondary button--lg"
             to="https://github.com/apache/fury";
+            data-aos="fade-up"
+            data-aos-delay="200"
           >
             <Translate
               id="homepage.githubButton"
@@ -36,6 +54,8 @@ function HomepageHeader() {
           <Link
             className="button button--secondary button--lg"
             to="/docs/start/install"
+            data-aos="fade-up"
+            data-aos-delay="400"
           >
             <Translate
               id="homepage.getStartedButton"
@@ -52,6 +72,17 @@ function HomepageHeader() {
 
 export default function Home(): JSX.Element {
   const { siteConfig } = useDocusaurusContext();
+
+  useEffect(() => {
+    AOS.init({
+      offset: 100,
+      duration: 700,
+      easing: "ease-out-quad",
+      once: true,
+    });
+    window.addEventListener("load", AOS.refresh);
+  }, []);
+
   return (
     <>
       <Layout
@@ -64,7 +95,9 @@ export default function Home(): JSX.Element {
       >
         <HomepageHeader />
         <main>
-          <HomepageFeatures />
+          <div data-aos="fade-up" data-aos-delay="600">
+            <HomepageFeatures />
+          </div>
         </main>
       </Layout>
     </>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to