diff --git a/docs/src/components/LandingPage/GithubInfo.jsx b/docs/src/components/LandingPage/GithubInfo.jsx index d3299119..98bcea4b 100644 --- a/docs/src/components/LandingPage/GithubInfo.jsx +++ b/docs/src/components/LandingPage/GithubInfo.jsx @@ -1,51 +1,70 @@ -import React from "react"; -import useGithubInfo from "./useGithubInfo"; +import React from 'react'; +import useGithubInfo from './useGithubInfo'; const GithubInfo = ({ owner, repo }) => { const { favorites, language, forks, license } = useGithubInfo(owner, repo); return ( -
-
-
- star -
-
- {favorites || 4621} -
+

+

+ + +  Star + + + {favorites || 0} +
- - {/*
-
- language -
-
- - {language || "java"} - -
-
*/} - -
-
- forks -
-
- {forks || 1020} -
+ - - {/*
-
- license -
-
- - Apache 2 - -
-
*/} -
+

); }; diff --git a/docs/src/components/LandingPage/Hero.jsx b/docs/src/components/LandingPage/Hero.jsx index 6502162c..5d6decd8 100644 --- a/docs/src/components/LandingPage/Hero.jsx +++ b/docs/src/components/LandingPage/Hero.jsx @@ -1,13 +1,11 @@ import React from 'react'; +import { useEffect } from 'react'; import { Icon } from '@iconify/react'; import useBaseUrl from '@docusaurus/useBaseUrl'; import GithubInfo from './GithubInfo'; import Translate, { translate } from '@docusaurus/Translate'; import Link from '@docusaurus/Link'; - const Hero = () => { - const bgUrl = useBaseUrl('/img/bg.jpg'); - return (
@@ -25,47 +23,31 @@ const Hero = () => { Systems Online.

-