Move to Docusaurus
This commit is contained in:
11
src/components/DiscordBadge.js
Normal file
11
src/components/DiscordBadge.js
Normal file
@ -0,0 +1,11 @@
|
||||
import React from 'react';
|
||||
|
||||
function DiscordBadge() {
|
||||
return (
|
||||
<a href="https://discord.gg/tVFN4N84PP">
|
||||
<img height="40px" src="https://img.shields.io/discord/746721520931569757?style=social&logo=discord&label=Chat%20with%20us" alt="Discord" />
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
export default DiscordBadge;
|
64
src/components/HomepageFeatures/index.js
Normal file
64
src/components/HomepageFeatures/index.js
Normal file
@ -0,0 +1,64 @@
|
||||
import clsx from 'clsx';
|
||||
import Heading from '@theme/Heading';
|
||||
import styles from './styles.module.css';
|
||||
|
||||
const FeatureList = [
|
||||
{
|
||||
title: 'Easy to Use',
|
||||
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
|
||||
description: (
|
||||
<>
|
||||
Docusaurus was designed from the ground up to be easily installed and
|
||||
used to get your website up and running quickly.
|
||||
</>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: 'Focus on What Matters',
|
||||
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
|
||||
description: (
|
||||
<>
|
||||
Docusaurus lets you focus on your docs, and we'll do the chores. Go
|
||||
ahead and move your docs into the <code>docs</code> directory.
|
||||
</>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: 'Powered by React',
|
||||
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
|
||||
description: (
|
||||
<>
|
||||
Extend or customize your website layout by reusing React. Docusaurus can
|
||||
be extended while reusing the same header and footer.
|
||||
</>
|
||||
),
|
||||
},
|
||||
];
|
||||
|
||||
function Feature({Svg, title, description}) {
|
||||
return (
|
||||
<div className={clsx('col col--4')}>
|
||||
<div className="text--center">
|
||||
<Svg className={styles.featureSvg} role="img" />
|
||||
</div>
|
||||
<div className="text--center padding-horiz--md">
|
||||
<Heading as="h3">{title}</Heading>
|
||||
<p>{description}</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default function HomepageFeatures() {
|
||||
return (
|
||||
<section className={styles.features}>
|
||||
<div className="container">
|
||||
<div className="row">
|
||||
{FeatureList.map((props, idx) => (
|
||||
<Feature key={idx} {...props} />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
11
src/components/HomepageFeatures/styles.module.css
Normal file
11
src/components/HomepageFeatures/styles.module.css
Normal file
@ -0,0 +1,11 @@
|
||||
.features {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 2rem 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.featureSvg {
|
||||
height: 200px;
|
||||
width: 200px;
|
||||
}
|
95
src/css/custom.css
Normal file
95
src/css/custom.css
Normal file
@ -0,0 +1,95 @@
|
||||
:root {
|
||||
--ifm-color-primary: #a43b8d;
|
||||
--ifm-color-primary-dark: #94357f;
|
||||
--ifm-color-primary-darker: #8b3278;
|
||||
--ifm-color-primary-darkest: #732963;
|
||||
--ifm-color-primary-light: #b4419b;
|
||||
--ifm-color-primary-lighter: #bc45a2;
|
||||
--ifm-color-primary-lightest: #c55dae;
|
||||
}
|
||||
|
||||
[data-theme='dark'] {
|
||||
--ifm-color-primary: #e685d0;
|
||||
--ifm-color-primary-dark: #e376ca;
|
||||
--ifm-color-primary-darker: #e067c4;
|
||||
--ifm-color-primary-darkest: #da49b9;
|
||||
--ifm-color-primary-light: #e994d6;
|
||||
--ifm-color-primary-lighter: #eca3dc;
|
||||
--ifm-color-primary-lightest: #f2c1e7;
|
||||
}
|
||||
|
||||
.navbar,
|
||||
.navbar-sidebar__brand {
|
||||
background-image: url('/img/bg.png');
|
||||
background-size: cover;
|
||||
background-color: #000;
|
||||
box-shadow: 0 0 10px #0006;
|
||||
}
|
||||
|
||||
.navbar__logo img {
|
||||
filter: drop-shadow(1px 1px 2px #0003);
|
||||
}
|
||||
|
||||
.navbar__inner,
|
||||
.navbar__inner a,
|
||||
.navbar__inner a:hover,
|
||||
.navbar-sidebar__brand,
|
||||
.navbar-sidebar__brand a,
|
||||
.navbar-sidebar__brand a:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.navbar__inner .navbar__item {
|
||||
transition: background var(--ifm-transition-fast);
|
||||
border-radius: var(--ifm-breadcrumb-border-radius);
|
||||
}
|
||||
|
||||
.navbar__inner .navbar__item:hover,
|
||||
.navbar__inner .clean-btn:hover,
|
||||
.navbar-sidebar__brand .clean-btn:hover {
|
||||
background-color: #fff3;
|
||||
}
|
||||
|
||||
.navbar-sidebar__close {
|
||||
--ifm-color-emphasis-600: #fff;
|
||||
}
|
||||
|
||||
.navbar__toggle.clean-btn:hover,
|
||||
.navbar-sidebar__close.clean-btn:hover {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.navbar__inner .github-button,
|
||||
.navbar__inner .discord-button {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.navbar__inner .github-button *,
|
||||
.navbar__inner .discord-button * {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.navbar__inner .github-button:before,
|
||||
.navbar__inner .discord-button:before {
|
||||
content: '';
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.navbar__inner .discord-button:before {
|
||||
background: url('/img/discord.svg') no-repeat;
|
||||
margin: 3px 0 0 -7px;
|
||||
}
|
||||
|
||||
.navbar__inner .github-button:before {
|
||||
background: url('/img/github.svg') no-repeat;
|
||||
margin: 1px 0 0 -7px;
|
||||
}
|
||||
|
||||
table {
|
||||
font-family: "Consolas", "Source Code Pro", monospace;
|
||||
font-size: 14px
|
||||
}
|
23
src/pages/index.module.css
Normal file
23
src/pages/index.module.css
Normal file
@ -0,0 +1,23 @@
|
||||
/**
|
||||
* CSS files with the .module.css suffix will be treated as CSS modules
|
||||
* and scoped locally.
|
||||
*/
|
||||
|
||||
.heroBanner {
|
||||
padding: 4rem 0;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 996px) {
|
||||
.heroBanner {
|
||||
padding: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.buttons {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
7
src/pages/markdown-page.md
Normal file
7
src/pages/markdown-page.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: Markdown page example
|
||||
---
|
||||
|
||||
# Markdown page example
|
||||
|
||||
You don't need React to write simple standalone pages.
|
Reference in New Issue
Block a user