Skip to content

Commit 9d89169

Browse files
committed
docs: update docs homepage
1 parent d95df9e commit 9d89169

File tree

9 files changed

+60
-24
lines changed

9 files changed

+60
-24
lines changed
Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
import React from 'react';
2-
import clsx from 'clsx';
3-
import styles from './styles.module.css';
1+
/* eslint-disable import/no-unresolved */
2+
/* eslint-disable @typescript-eslint/no-var-requires */
3+
/* eslint-disable global-require */
4+
import React from 'react'
5+
import clsx from 'clsx'
6+
import styles from './styles.module.css'
47

58
type FeatureItem = {
6-
title: string;
7-
Svg: React.ComponentType<React.ComponentProps<'svg'>>;
8-
description: JSX.Element;
9-
};
9+
title: string
10+
Svg: React.ComponentType<React.ComponentProps<'svg'>>
11+
description: JSX.Element
12+
}
1013

1114
const FeatureList: FeatureItem[] = [
1215
{
1316
title: 'Easy to Use',
14-
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
17+
Svg: require('@site/static/img/only-tooltip-top.svg').default,
1518
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-
</>
19+
<>ReactTooltip was designed with love from the ground up to be easily installed and used.</>
2020
),
2121
},
2222
{
23-
title: 'Focus on What Matters',
24-
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
23+
title: 'Open Source',
24+
Svg: require('@site/static/img/github.svg').default,
2525
description: (
2626
<>
27-
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
28-
ahead and move your docs into the <code>docs</code> directory.
27+
An Open Source project built by developers to developers, we work together with the
28+
community to always try to improve ReactTooltip.
2929
</>
3030
),
3131
},
3232
{
33-
title: 'Powered by React',
34-
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
33+
title: 'Focus on What Matters',
34+
Svg: require('@site/static/img/happy-face-tooltip.svg').default,
3535
description: (
3636
<>
37-
Extend or customize your website layout by reusing React. Docusaurus can
38-
be extended while reusing the same header and footer.
37+
Don&rsquo;t waste your time building a tooltip component from scratch, just use ReactTooltip
38+
and focus on new features or bug fixes.
3939
</>
4040
),
4141
},
42-
];
42+
]
4343

44-
function Feature({title, Svg, description}: FeatureItem) {
44+
function Feature({ title, Svg, description }: FeatureItem) {
4545
return (
4646
<div className={clsx('col col--4')}>
4747
<div className="text--center">
@@ -52,7 +52,7 @@ function Feature({title, Svg, description}: FeatureItem) {
5252
<p>{description}</p>
5353
</div>
5454
</div>
55-
);
55+
)
5656
}
5757

5858
export default function HomepageFeatures(): JSX.Element {
@@ -61,10 +61,11 @@ export default function HomepageFeatures(): JSX.Element {
6161
<div className="container">
6262
<div className="row">
6363
{FeatureList.map((props, idx) => (
64+
// eslint-disable-next-line react/no-array-index-key
6465
<Feature key={idx} {...props} />
6566
))}
6667
</div>
6768
</div>
6869
</section>
69-
);
70+
)
7071
}

docs/static/img/Octocat.jpg

50.5 KB
Loading

docs/static/img/Octocat.png

2.03 MB
Loading

docs/static/img/Octocat.svg

Lines changed: 9 additions & 0 deletions
Loading

docs/static/img/github.svg

Lines changed: 1 addition & 0 deletions
Loading
10 KB
Loading

docs/static/img/happy-face-tooltip.svg

Lines changed: 21 additions & 0 deletions
Loading

docs/static/img/only-tooltip-top.png

3.31 KB
Loading

docs/static/img/only-tooltip-top.svg

Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)