✨ feat: 完善内容
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type {ReactNode} from 'react';
|
||||
import type { ReactNode } from 'react';
|
||||
import clsx from 'clsx';
|
||||
import Heading from '@theme/Heading';
|
||||
import styles from './styles.module.css';
|
||||
@@ -10,39 +10,48 @@ type FeatureItem = {
|
||||
};
|
||||
|
||||
const FeatureList: FeatureItem[] = [
|
||||
{
|
||||
title: 'Easy to Use',
|
||||
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
|
||||
description: (
|
||||
<>
|
||||
Docusaurus was designed from the ground up to be easily installed and
|
||||
used to get your website up and running quickly.
|
||||
</>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: 'Focus on What Matters',
|
||||
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
|
||||
description: (
|
||||
<>
|
||||
Docusaurus lets you focus on your docs, and we'll do the chores. Go
|
||||
ahead and move your docs into the <code>docs</code> directory.
|
||||
</>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: 'Powered by React',
|
||||
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
|
||||
description: (
|
||||
<>
|
||||
Extend or customize your website layout by reusing React. Docusaurus can
|
||||
be extended while reusing the same header and footer.
|
||||
</>
|
||||
),
|
||||
},
|
||||
// {
|
||||
// title: 'Easy to Use',
|
||||
// Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
|
||||
// description: (
|
||||
// <>
|
||||
// Docusaurus was designed from the ground up to be easily installed and
|
||||
// used to get your website up and running quickly.
|
||||
// </>
|
||||
// ),
|
||||
// },
|
||||
// {
|
||||
// title: 'Focus on What Matters',
|
||||
// Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
|
||||
// description: (
|
||||
// <>
|
||||
// Docusaurus lets you focus on your docs, and we'll do the chores. Go
|
||||
// ahead and move your docs into the <code>docs</code> directory.
|
||||
// </>
|
||||
// ),
|
||||
// },
|
||||
// {
|
||||
// title: 'Powered by React',
|
||||
// Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
|
||||
// description: (
|
||||
// <>
|
||||
// Extend or customize your website layout by reusing React. Docusaurus can
|
||||
// be extended while reusing the same header and footer.
|
||||
// </>
|
||||
// ),
|
||||
// },
|
||||
// {
|
||||
// title: '由 Docusaurus && React 强力驱动',
|
||||
// Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
|
||||
// description: (
|
||||
// <>
|
||||
// 使用 <a href='https://docusaurus.io/zh-CN/'>Docusaurus</a> 构建的内容核心网站
|
||||
// </>
|
||||
// ),
|
||||
// },
|
||||
];
|
||||
|
||||
function Feature({title, Svg, description}: FeatureItem) {
|
||||
function Feature({ title, Svg, description }: FeatureItem) {
|
||||
return (
|
||||
<div className={clsx('col col--4')}>
|
||||
<div className="text--center">
|
||||
|
||||
@@ -21,7 +21,7 @@ function HomepageHeader() {
|
||||
<Link
|
||||
className="button button--secondary button--lg"
|
||||
to="/docs/intro">
|
||||
Docusaurus Tutorial - 5min ⏱️
|
||||
进入快速引导
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
@@ -33,7 +33,7 @@ export default function Home(): ReactNode {
|
||||
const {siteConfig} = useDocusaurusContext();
|
||||
return (
|
||||
<Layout
|
||||
title={`Hello from ${siteConfig.title}`}
|
||||
title={`${siteConfig.title}`}
|
||||
description="Description will go into a meta tag in <head />">
|
||||
<HomepageHeader />
|
||||
<main>
|
||||
|
||||
Reference in New Issue
Block a user