Skip to content

Commit 739bd10

Browse files
committed
small refactors, fixes, url changes etc
1 parent 1f63c30 commit 739bd10

File tree

4 files changed

+55
-58
lines changed

4 files changed

+55
-58
lines changed

.eslintrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
},
88
"extends": ["prettier", "plugin:@docusaurus/recommended"],
99
"parserOptions": {
10-
"ecmaVersion": 2020
10+
"ecmaVersion": 2020,
11+
"ecmaFeatures": {
12+
"jsx": true
13+
},
14+
"sourceType": "module"
1115
}
1216
}

docusaurus.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ const config: Config = {
100100
title: "Community",
101101
items: [
102102
{
103-
label: "Discord",
104-
href: "https://discord.gg/j3fWEkjM",
103+
label: "Gitter",
104+
href: "https://gitter.im/nodemailer/wildduck",
105105
},
106106
],
107107
},
Lines changed: 43 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,54 @@
11
import React from 'react';
22
import clsx from 'clsx';
33
import styles from './styles.module.css';
4+
import Heading from '@theme/Heading';
45

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

38-
function Feature({Svg, title, description}) {
39-
return (
40-
<div className={clsx('col col--4')}>
41-
<div className="text--center">
42-
<Svg className={styles.featureSvg} role="img" />
43-
</div>
44-
<div className="text--center padding-horiz--md">
45-
<h3>{title}</h3>
46-
<p>{description}</p>
47-
</div>
48-
</div>
49-
);
28+
function Feature({ Svg, title, description }) {
29+
return (
30+
<div className={clsx('col col--4')}>
31+
<div className="text--center">
32+
<Svg className={styles.featureSvg} role="img" />
33+
</div>
34+
<div className="text--center padding-horiz--md">
35+
<Heading as="h1">{title}</Heading>
36+
<p>{description}</p>
37+
</div>
38+
</div>
39+
);
5040
}
5141

5242
export default function HomepageFeatures() {
53-
return (
54-
<section className={styles.features}>
55-
<div className="container">
56-
<div className="row">
57-
{FeatureList.map((props, idx) => (
58-
<Feature key={idx} {...props} />
59-
))}
60-
</div>
61-
</div>
62-
</section>
63-
);
43+
return (
44+
<section className={styles.features}>
45+
<div className="container">
46+
<div className="row">
47+
{FeatureList.map((props, idx) => (
48+
<Feature key={idx} {...props} />
49+
))}
50+
</div>
51+
</div>
52+
</section>
53+
);
6454
}

src/pages/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ import Link from '@docusaurus/Link';
55
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
66
import styles from './index.module.css';
77
import HomepageFeatures from '@site/src/components/HomepageFeatures';
8+
import Heading from '@theme/Heading';
89

910
function HomepageHeader() {
1011
const { siteConfig } = useDocusaurusContext();
1112
return (
1213
<header className={clsx('hero hero--primary', styles.heroBanner)}>
1314
<div className="container">
14-
<h1 className="hero__title">{siteConfig.title}</h1>
15+
<Heading as="h1" className="hero__title">
16+
{siteConfig.title}
17+
</Heading>
1518
<p className="hero__subtitle">{siteConfig.tagline}</p>
1619
<div className={styles.buttons}>
1720
<Link className="button button--secondary button--lg" to="/docs/intro">
@@ -26,7 +29,7 @@ function HomepageHeader() {
2629
export default function Home() {
2730
const { siteConfig } = useDocusaurusContext();
2831
return (
29-
<Layout title={`Hello from ${siteConfig.title}`} description="Description will go into a meta tag in <head />">
32+
<Layout title={`${siteConfig.title}`} description="WildDuck is a scalable no-SPOF IMAP/POP3 mail server">
3033
<HomepageHeader />
3134
<main>
3235
<HomepageFeatures />

0 commit comments

Comments
 (0)