fix: docs home page (#1990)

This commit is contained in:
Skillz4Killz
2022-02-03 19:42:09 +00:00
committed by GitHub
parent 5f25263bd4
commit 7ceb6e2d1c
2 changed files with 44 additions and 24 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ const darkCodeTheme = require("prism-react-renderer/themes/dracula");
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Discordeno",
tagline: "A Highly scalable Discord Library",
tagline: "Making Scalable Bots Easy!",
url: "https://discordeno.mod.land",
baseUrl: "/",
onBrokenLinks: "throw",
+43 -23
View File
@@ -1,7 +1,7 @@
import useBaseUrl from '@docusaurus/useBaseUrl';
import React from 'react';
import clsx from 'clsx';
import styles from './HomepageFeatures.module.css';
import useBaseUrl from "@docusaurus/useBaseUrl";
import React from "react";
import clsx from "clsx";
import styles from "./HomepageFeatures.module.css";
type FeatureItem = {
title: string;
@@ -11,46 +11,66 @@ type FeatureItem = {
const FeatureList: FeatureItem[] = [
{
title: 'Easy to Use',
image: '/img/undraw_docusaurus_mountain.svg',
title: "REST does not rest!",
image: "/img/undraw_docusaurus_mountain.svg",
description: (
<>
Docusaurus was designed from the ground up to be easily installed and
used to get your website up and running quickly.
<ul>
<li>Restart without losing any requests.</li>
<li>Prevent Invalid 1 Hour Discord Bans.</li>
<li>Freedom from global rate limit errors.</li>
<li>Single source of contact to API.</li>
<li>Beautiful analytics plugins.</li>
<li>Scalability! Scalability! Scalability!</li>
</ul>
</>
),
},
{
title: 'Focus on What Matters',
image: '/img/undraw_docusaurus_tree.svg',
title: "Zero Downtime Updates",
image: "/img/undraw_docusaurus_tree.svg",
description: (
<>
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.
<ul>
<li>Instant bot restarts/updates.</li>
<li>
Automated sharding &{" "}
<strong>
<i>re</i>
</strong>
sharding.
</li>
<li>Scale horizontally and save money!</li>
<li>Stop losing events during reboots!</li>
<li>Max efficiency with Shards/Worker!</li>
<li>Scalability! Scalability! Scalability!</li>
</ul>
</>
),
},
{
title: 'Powered by React',
image: '/img/undraw_docusaurus_react.svg',
title: "No More Forks!",
image: "/img/undraw_docusaurus_react.svg",
description: (
<>
Extend or customize your website layout by reusing React. Docusaurus can
be extended while reusing the same header and footer.
<ul>
<li>100% customizable without forking!</li>
<li>By default, the lib caches NOTHING!</li>
<li>100% Custom cache support.</li>
<li>Cache only the props your bot needs.</li>
<li>Customize any internal function!</li>
<li>Scalability! Scalability! Scalability!</li>
</ul>
</>
),
},
];
function Feature({title, image, description}: FeatureItem) {
function Feature({ title, image, description }: FeatureItem) {
return (
<div className={clsx('col col--4')}>
<div className={clsx("col col--4")}>
<div className="text--center">
<img
className={styles.featureSvg}
alt={title}
src={useBaseUrl(image)}
/>
<img className={styles.featureSvg} alt={title} src={useBaseUrl(image)} />
</div>
<div className="text--center padding-horiz--md">
<h3>{title}</h3>