diff --git a/src/pages/index.js b/src/pages/index.js deleted file mode 100644 index affcd90..0000000 --- a/src/pages/index.js +++ /dev/null @@ -1,41 +0,0 @@ -import React from 'react'; -import clsx from 'clsx'; -import Link from '@docusaurus/Link'; -import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; -import Layout from '@theme/Layout'; -import HomepageFeatures from '@site/src/components/HomepageFeatures'; - -import styles from './index.module.css'; - -function HomepageHeader() { - const {siteConfig} = useDocusaurusContext(); - return ( -
-
-

{siteConfig.title}

-

{siteConfig.tagline}

-
- - Docusaurus Tutorial - 5min ⏱️ - -
-
-
- ); -} - -export default function Home() { - const {siteConfig} = useDocusaurusContext(); - return ( - - -
- -
-
- ); -} diff --git a/src/pages/index.tsx b/src/pages/index.tsx new file mode 100644 index 0000000..24f72c7 --- /dev/null +++ b/src/pages/index.tsx @@ -0,0 +1,126 @@ +import React from 'react'; +import clsx from 'clsx'; +import Link from '@docusaurus/Link'; +import Translate, {translate} from '@docusaurus/Translate'; +import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; +import Layout from '@theme/Layout'; +import HomepageFeatures from '@site/src/components/HomepageFeatures'; +import useBaseUrl, {useBaseUrlUtils} from '@docusaurus/useBaseUrl'; +import Heading from '@theme/Heading'; +import styles from './styles.module.css'; + +function HomepageHeader() { + const {siteConfig} = useDocusaurusContext(); + return ( +
+
+

{siteConfig.title}

+

{siteConfig.tagline}

+
+ + Docusaurus Tutorial - 5min ⏱️ + +
+
+
+ ); +} + +function TopBanner() { + return ( +
+
+ {'🎉\xa0'} + + + {'我们即将开源!️'} + + + {'\xa0🥳'} +
+
+
+
+ 包括框架代码、以及十万字以上的技术文档 +
+
+
+
+
+
+ ); +} + +function HeroBanner() { + return ( +
+
+ + {translate({message: + self-evolving and interoperable system for future digital world', + description: + 'Home page hero title, can contain simple html tags', + }), + }} + /> + +
+ + Whitepaper + + + Documentation + + +