|
1 | | -import type {ReactNode} from 'react'; |
2 | | -import clsx from 'clsx'; |
3 | | -import Heading from '@theme/Heading'; |
4 | | -import styles from './styles.module.css'; |
| 1 | +import type { ReactNode } from "react"; |
| 2 | +import clsx from "clsx"; |
| 3 | +import Heading from "@theme/Heading"; |
| 4 | +import styles from "./styles.module.css"; |
5 | 5 |
|
6 | 6 | type FeatureItem = { |
7 | 7 | title: string; |
8 | | - Svg: React.ComponentType<React.ComponentProps<'svg'>>; |
9 | 8 | description: ReactNode; |
10 | 9 | }; |
11 | 10 |
|
12 | 11 | const FeatureList: FeatureItem[] = [ |
13 | 12 | { |
14 | | - title: 'Easy to Use', |
15 | | - Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, |
| 13 | + title: "Learn TypeScript Basics", |
16 | 14 | description: ( |
17 | 15 | <> |
18 | | - Docusaurus was designed from the ground up to be easily installed and |
19 | | - used to get your website up and running quickly. |
| 16 | + Start your journey with TypeScript by learning the fundamental concepts |
| 17 | + and syntax to build strong foundations. |
20 | 18 | </> |
21 | 19 | ), |
22 | 20 | }, |
23 | 21 | { |
24 | | - title: 'Focus on What Matters', |
25 | | - Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, |
| 22 | + title: "Intermediate Concepts", |
26 | 23 | description: ( |
27 | 24 | <> |
28 | | - Docusaurus lets you focus on your docs, and we'll do the chores. Go |
29 | | - ahead and move your docs into the <code>docs</code> directory. |
| 25 | + Dive deeper into TypeScript with topics like union types, type guards, |
| 26 | + and advanced type manipulation. |
30 | 27 | </> |
31 | 28 | ), |
32 | 29 | }, |
33 | 30 | { |
34 | | - title: 'Powered by React', |
35 | | - Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, |
| 31 | + title: "Advanced TypeScript", |
36 | 32 | description: ( |
37 | 33 | <> |
38 | | - Extend or customize your website layout by reusing React. Docusaurus can |
39 | | - be extended while reusing the same header and footer. |
| 34 | + Master TypeScript by exploring generics, conditional types, and |
| 35 | + declaration merging to write highly scalable code. |
40 | 36 | </> |
41 | 37 | ), |
42 | 38 | }, |
43 | 39 | ]; |
44 | 40 |
|
45 | | -function Feature({title, Svg, description}: FeatureItem) { |
| 41 | +function Feature({ title, description }: FeatureItem) { |
46 | 42 | return ( |
47 | | - <div className={clsx('col col--4')}> |
48 | | - <div className="text--center"> |
49 | | - <Svg className={styles.featureSvg} role="img" /> |
50 | | - </div> |
| 43 | + <div className={clsx("col col--4")}> |
51 | 44 | <div className="text--center padding-horiz--md"> |
52 | 45 | <Heading as="h3">{title}</Heading> |
53 | 46 | <p>{description}</p> |
|
0 commit comments