Skip to content

Commit d41b2de

Browse files
Redirect to /docs/intro
1 parent 49622f6 commit d41b2de

1 file changed

Lines changed: 68 additions & 63 deletions

File tree

Lines changed: 68 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,76 @@
1-
import type {ReactNode} from 'react';
1+
import type {JSX, ReactNode} from 'react';
22
import clsx from 'clsx';
33
import Heading from '@theme/Heading';
44
import styles from './styles.module.css';
5+
import { Redirect } from '@docusaurus/router';
56

6-
type FeatureItem = {
7-
title: string;
8-
Svg: React.ComponentType<React.ComponentProps<'svg'>>;
9-
description: ReactNode;
10-
};
7+
// type FeatureItem = {
8+
// title: string;
9+
// Svg: React.ComponentType<React.ComponentProps<'svg'>>;
10+
// description: ReactNode;
11+
// };
1112

12-
const FeatureList: FeatureItem[] = [
13-
// {
14-
// title: 'Easy to Use',
15-
// Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
16-
// description: (
17-
// <>
18-
// Docusaurus was designed from the ground up to be easily installed and
19-
// used to get your website up and running quickly.
20-
// </>
21-
// ),
22-
// },
23-
// {
24-
// title: 'Focus on What Matters',
25-
// Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
26-
// description: (
27-
// <>
28-
// Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
29-
// ahead and move your docs into the <code>docs</code> directory.
30-
// </>
31-
// ),
32-
// },
33-
// {
34-
// title: 'Powered by React',
35-
// Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
36-
// description: (
37-
// <>
38-
// Extend or customize your website layout by reusing React. Docusaurus can
39-
// be extended while reusing the same header and footer.
40-
// </>
41-
// ),
42-
// },
43-
];
13+
// const FeatureList: FeatureItem[] = [
14+
// {
15+
// title: 'Easy to Use',
16+
// Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
17+
// description: (
18+
// <>
19+
// Docusaurus was designed from the ground up to be easily installed and
20+
// used to get your website up and running quickly.
21+
// </>
22+
// ),
23+
// },
24+
// {
25+
// title: 'Focus on What Matters',
26+
// Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
27+
// description: (
28+
// <>
29+
// Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
30+
// ahead and move your docs into the <code>docs</code> directory.
31+
// </>
32+
// ),
33+
// },
34+
// {
35+
// title: 'Powered by React',
36+
// Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
37+
// description: (
38+
// <>
39+
// Extend or customize your website layout by reusing React. Docusaurus can
40+
// be extended while reusing the same header and footer.
41+
// </>
42+
// ),
43+
// },
44+
// ];
4445

45-
function Feature({title, Svg, description}: FeatureItem) {
46-
return (
47-
<div className={clsx('col col--4')}>
48-
<div className="text--center">
49-
<Svg className={styles.featureSvg} role="img" />
50-
</div>
51-
<div className="text--center padding-horiz--md">
52-
<Heading as="h3">{title}</Heading>
53-
<p>{description}</p>
54-
</div>
55-
</div>
56-
);
57-
}
46+
// function Feature({title, Svg, description}: FeatureItem) {
47+
// return (
48+
// <div className={clsx('col col--4')}>
49+
// <div className="text--center">
50+
// <Svg className={styles.featureSvg} role="img" />
51+
// </div>
52+
// <div className="text--center padding-horiz--md">
53+
// <Heading as="h3">{title}</Heading>
54+
// <p>{description}</p>
55+
// </div>
56+
// </div>
57+
// );
58+
// }
59+
60+
// export default function HomepageFeatures(): ReactNode {
61+
// return (
62+
// <section className={styles.features}>
63+
// <div className="container">
64+
// <div className="row">
65+
// {FeatureList.map((props, idx) => (
66+
// <Feature key={idx} {...props} />
67+
// ))}
68+
// </div>
69+
// </div>
70+
// </section>
71+
// );
72+
// }
5873

59-
export default function HomepageFeatures(): ReactNode {
60-
return (
61-
<section className={styles.features}>
62-
<div className="container">
63-
<div className="row">
64-
{FeatureList.map((props, idx) => (
65-
<Feature key={idx} {...props} />
66-
))}
67-
</div>
68-
</div>
69-
</section>
70-
);
74+
export default function Home(): JSX.Element {
75+
return <Redirect to="/docs/intro" />;
7176
}

0 commit comments

Comments
 (0)