|
1 |
| -import clsx from 'clsx'; |
2 |
| -import Heading from '@theme/Heading'; |
3 |
| -import styles from './styles.module.css'; |
| 1 | +import React from "react"; |
| 2 | +import clsx from "clsx"; |
| 3 | +import Heading from "@theme/Heading"; |
| 4 | +import styles from "./styles.module.css"; |
4 | 5 |
|
5 | 6 | type FeatureItem = {
|
6 | 7 | title: string;
|
7 |
| - Svg: React.ComponentType<React.ComponentProps<'svg'>>; |
| 8 | + Svg: React.ComponentType<React.ComponentProps<"svg">>; |
8 | 9 | description: JSX.Element;
|
9 | 10 | };
|
10 | 11 |
|
11 |
| -const FeatureList: FeatureItem[] = [ |
12 |
| - { |
13 |
| - title: 'Easy to Use', |
14 |
| - Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, |
15 |
| - description: ( |
16 |
| - <> |
17 |
| - Docusaurus was designed from the ground up to be easily installed and |
18 |
| - used to get your website up and running quickly. |
19 |
| - </> |
20 |
| - ), |
21 |
| - }, |
22 |
| - { |
23 |
| - title: 'Focus on What Matters', |
24 |
| - Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, |
25 |
| - description: ( |
26 |
| - <> |
27 |
| - Docusaurus lets you focus on your docs, and we'll do the chores. Go |
28 |
| - ahead and move your docs into the <code>docs</code> directory. |
29 |
| - </> |
30 |
| - ), |
31 |
| - }, |
32 |
| - { |
33 |
| - title: 'Powered by React', |
34 |
| - Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, |
35 |
| - description: ( |
36 |
| - <> |
37 |
| - Extend or customize your website layout by reusing React. Docusaurus can |
38 |
| - be extended while reusing the same header and footer. |
39 |
| - </> |
40 |
| - ), |
41 |
| - }, |
42 |
| -]; |
43 |
| - |
44 |
| -function Feature({title, Svg, description}: FeatureItem) { |
45 |
| - return ( |
46 |
| - <div className={clsx('col col--4')}> |
47 |
| - <div className="text--center"> |
48 |
| - <Svg className={styles.featureSvg} role="img" /> |
49 |
| - </div> |
50 |
| - <div className="text--center padding-horiz--md"> |
51 |
| - <Heading as="h3">{title}</Heading> |
52 |
| - <p>{description}</p> |
53 |
| - </div> |
54 |
| - </div> |
55 |
| - ); |
56 |
| -} |
| 12 | +const FeatureList: FeatureItem[] = []; |
57 | 13 |
|
58 | 14 | export default function HomepageFeatures(): JSX.Element {
|
59 | 15 | return (
|
60 | 16 | <section className={styles.features}>
|
61 | 17 | <div className="container">
|
62 |
| - <div className="row"> |
63 |
| - {FeatureList.map((props, idx) => ( |
64 |
| - <Feature key={idx} {...props} /> |
65 |
| - ))} |
66 |
| - </div> |
| 18 | + <div className="row"></div> |
67 | 19 | </div>
|
68 | 20 | </section>
|
69 | 21 | );
|
|
0 commit comments