slate/pages/system/loaders.js

101 lines
2.4 KiB
JavaScript
Raw Normal View History

import * as React from "react";
import * as System from "~/components/system";
import * as Constants from "~/common/constants";
import SystemPage from "~/components/system/SystemPage";
import ViewSourceLink from "~/components/system/ViewSourceLink";
2020-07-21 04:34:53 +03:00
import CodeBlock from "~/components/system/CodeBlock";
export default class SystemLoaders extends React.Component {
render() {
return (
<SystemPage
title="SDS: Loaders"
description="..."
url="https://slate.host/system/loaders"
>
<System.H1>
Loaders <ViewSourceLink file="system/loaders.js" />
</System.H1>
<br />
<br />
<System.P>
The Loader Component is used to output an animated page loader.
</System.P>
<br />
<br />
<br />
<System.H2>Imports</System.H2>
<hr />
<br />
<System.P>Import the Loader Components.</System.P>
<br />
<br />
2020-07-21 04:34:53 +03:00
<CodeBlock>
{`
import {
LoaderCircles,
LoaderDiamonds,
LoaderMoon,
LoaderRotate,
LoaderProgress,
LoaderSpinner,
} from "~/components/system/components/Loaders";
`}
2020-07-21 04:34:53 +03:00
</CodeBlock>
<br />
<br />
<System.H2>Usage</System.H2>
<hr />
<br />
<System.P>Circles</System.P>
<br />
<System.LoaderCircles />
<br />
2020-07-21 04:34:53 +03:00
<CodeBlock>{`<LoaderCircles />`}</CodeBlock>
<br />
<br />
<br />
<System.P>Progress Bar</System.P>
<br />
<System.LoaderProgress />
<br />
2020-07-21 04:34:53 +03:00
<CodeBlock>{`<LoaderProgress />`}</CodeBlock>
<br />
<br />
<br />
<System.P>Spinner</System.P>
<br />
<System.LoaderSpinner />
<br />
<br />
2020-07-21 04:34:53 +03:00
<CodeBlock>{`<LoaderSpinner />`}</CodeBlock>
<br />
<br />
<br />
<System.P>Diamonds</System.P>
<br />
<System.LoaderDiamonds />
<br />
2020-07-21 04:34:53 +03:00
<CodeBlock>{`<LoaderDiamonds />`}</CodeBlock>
<br />
<br />
<br />
<System.P>Rotate</System.P>
<br />
<System.LoaderRotate />
<br />
2020-07-21 04:34:53 +03:00
<CodeBlock>{`<LoaderRotate />`}</CodeBlock>
<br />
<br />
<br />
<System.P>Moon</System.P>
<br />
<System.LoaderMoon />
<br />
2020-07-21 04:34:53 +03:00
<CodeBlock>{`<LoaderMoon />`}</CodeBlock>
</SystemPage>
);
}
}