Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

Commit

Permalink
chore(docs): update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
0x77dev committed Jan 29, 2022
1 parent 9c4b23b commit 33f3e67
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 16 deletions.
10 changes: 9 additions & 1 deletion docs/src/components/Flowchart.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import React from 'react';
import ReactFlow, { Background } from 'react-flow-renderer';
import ReactFlow, { Background, Controls } from 'react-flow-renderer';

const fitView = (reactFlowInstance) => {
reactFlowInstance.fitView();
};

export default ({ elements, style, ...props }) => (
<div
Expand All @@ -15,11 +19,15 @@ export default ({ elements, style, ...props }) => (
elements={elements}
grid={true}
nodesDraggable={false}
onLoad={fitView}
onMove={fitView}
nodesConnectable={false}
elementsSelectable={false}
{...props}
>
<Background variant="dots" gap={10} size={0.5} />
{/* <MiniMap /> */}
<Controls />
</ReactFlow>
</div>
);
4 changes: 4 additions & 0 deletions docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ nav.navbar {
background-color: #fcf9e8;
color: black;
}

.navbar-sidebar__brand > .navbar__brand {
color: white;
}
20 changes: 12 additions & 8 deletions docs/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@ import Head from '@docusaurus/Head';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import styles from './index.module.css';
import HomepageFeatures from '../components/HomepageFeatures';
import Logo from '../../static/img/logo.svg';

function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
const { siteConfig } = useDocusaurusContext();
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
<Logo className={clsx('hero--logo', styles.heroLogo)} />
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro">
Tutorial 🧑‍💻
to="/docs/intro"
>
Tutorial 🧑‍💻
</Link>
</div>
</div>
Expand All @@ -27,14 +30,15 @@ function HomepageHeader() {
}

export default function Home() {
const {siteConfig} = useDocusaurusContext();
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={siteConfig.tagline}
description={siteConfig.tagline}>
<Layout title={siteConfig.tagline} description={siteConfig.tagline}>
<HomepageHeader />
<Head>
<meta name="google-site-verification" content="7OoBzgK8xinCKmquWj2sKMWQBbKmn7AFPAFKw6lCi6g" />
<meta
name="google-site-verification"
content="7OoBzgK8xinCKmquWj2sKMWQBbKmn7AFPAFKw6lCi6g"
/>
</Head>
<main>
<HomepageFeatures />
Expand Down
4 changes: 4 additions & 0 deletions docs/src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
overflow: hidden;
}

.heroLogo {
margin-bottom: 50px;
}

@media screen and (max-width: 966px) {
.heroBanner {
padding: 2rem;
Expand Down
7 changes: 0 additions & 7 deletions docs/src/pages/markdown-page.md

This file was deleted.

0 comments on commit 33f3e67

Please sign in to comment.