2020-06-22 14:00:51 +03:00
|
|
|
import * as React from 'react';
|
|
|
|
import * as System from '~/components/system';
|
|
|
|
import * as SVG from '~/components/system/svg';
|
|
|
|
import * as OldSVG from '~/common/svg';
|
|
|
|
import * as Constants from '~/common/constants';
|
|
|
|
|
|
|
|
import { css } from '@emotion/react';
|
|
|
|
|
|
|
|
import SystemPage from '~/components/system/SystemPage';
|
2020-06-22 14:15:04 +03:00
|
|
|
import ViewSourceLink from '~/components/system/ViewSourceLink';
|
2020-06-22 14:00:51 +03:00
|
|
|
|
|
|
|
const DEFAULT_SYSTEM_ICON_SIZE = '88px';
|
|
|
|
|
|
|
|
const ICONS = [
|
|
|
|
<OldSVG.Home height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<OldSVG.Folder height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<OldSVG.Wallet height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<OldSVG.Channels height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<OldSVG.Deals height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<OldSVG.Peers height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<OldSVG.Deals height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<OldSVG.Status height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<OldSVG.Stats height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<OldSVG.DataTransfer height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<OldSVG.Logs height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<OldSVG.Miners height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<OldSVG.StorageMarket height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<SVG.BandwidthUp height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<SVG.BandwidthDown height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<SVG.Information height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<SVG.CopyAndPaste height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<SVG.FileImage height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<SVG.Plus height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
<SVG.CheckBox height={DEFAULT_SYSTEM_ICON_SIZE} />,
|
|
|
|
];
|
|
|
|
|
|
|
|
const STYLES_ICON = css`
|
|
|
|
padding: 24px;
|
2020-06-22 14:28:14 +03:00
|
|
|
color: ${Constants.system.pitchBlack};
|
2020-06-22 14:00:51 +03:00
|
|
|
display: inline-flex;
|
|
|
|
transition: 200ms ease color;
|
2020-06-24 05:02:55 +03:00
|
|
|
text-align: center;
|
2020-06-22 14:00:51 +03:00
|
|
|
|
|
|
|
:hover {
|
|
|
|
color: ${Constants.system.brand};
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default class SystemPageIcons extends React.Component {
|
|
|
|
render() {
|
|
|
|
return (
|
2020-07-01 10:31:55 +03:00
|
|
|
<SystemPage title="SDS: Icons" description="..." url="https://fps.onrender.com/system/icons">
|
2020-06-22 14:15:04 +03:00
|
|
|
<System.H1>
|
2020-07-01 10:31:55 +03:00
|
|
|
Icons <ViewSourceLink file="system/icons.js" />
|
2020-06-22 14:15:04 +03:00
|
|
|
</System.H1>
|
2020-06-22 14:00:51 +03:00
|
|
|
<br />
|
|
|
|
<br />
|
2020-06-24 05:02:55 +03:00
|
|
|
<System.P>Every icon used in the Filecoin Client.</System.P>
|
2020-06-22 14:00:51 +03:00
|
|
|
<br />
|
|
|
|
<br />
|
2020-06-24 05:02:55 +03:00
|
|
|
<System.H2>Usage</System.H2>
|
|
|
|
<hr />
|
|
|
|
<br />
|
|
|
|
<System.P>Import the SVG components.</System.P>
|
|
|
|
<br />
|
|
|
|
<System.CodeBlock>
|
2020-07-01 10:31:55 +03:00
|
|
|
{`import * as SVG from '~/components/system/svg';
|
2020-06-22 14:00:51 +03:00
|
|
|
|
2020-06-24 05:02:55 +03:00
|
|
|
import * as OldSVG from '~/common/svg';`}
|
|
|
|
</System.CodeBlock>
|
|
|
|
<br />
|
|
|
|
<System.P>Declare the SVG icons.</System.P>
|
|
|
|
<br />
|
|
|
|
<System.CodeBlock>
|
2020-07-01 10:31:55 +03:00
|
|
|
{`<OldSVG.Home height='88px' />
|
2020-06-24 05:02:55 +03:00
|
|
|
<OldSVG.Folder height='88px' />
|
|
|
|
<OldSVG.Wallet height='88px' />
|
|
|
|
<OldSVG.Channels height='88px' />
|
|
|
|
<OldSVG.Deals height='88px' />
|
|
|
|
<OldSVG.Peers height='88px' />
|
|
|
|
<OldSVG.Deals height='88px' />
|
|
|
|
<OldSVG.Status height='88px' />
|
|
|
|
<OldSVG.Stats height='88px' />
|
|
|
|
<OldSVG.DataTransfer height='88px' />
|
|
|
|
<OldSVG.Logs height='88px' />
|
|
|
|
<OldSVG.Miners height='88px' />
|
|
|
|
<OldSVG.StorageMarket height='88px' />
|
|
|
|
<SVG.BandwidthUp height='88px' />
|
|
|
|
<SVG.BandwidthDown height='88px' />
|
|
|
|
<SVG.Information height='88px' />
|
|
|
|
<SVG.CopyAndPaste height='88px' />
|
|
|
|
<SVG.FileImage height='88px' />
|
|
|
|
<SVG.Plus height='88px' />
|
|
|
|
<SVG.CheckBox height='88px' />`}
|
|
|
|
</System.CodeBlock>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<System.H2>Output</System.H2>
|
|
|
|
<hr />
|
|
|
|
<br />
|
2020-06-22 14:00:51 +03:00
|
|
|
{ICONS.map((icon, i) => {
|
|
|
|
return (
|
|
|
|
<div css={STYLES_ICON} key={i}>
|
|
|
|
{icon}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
})}
|
|
|
|
</SystemPage>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|