2020-06-22 14:00:51 +03:00
|
|
|
import * as React from 'react';
|
|
|
|
import * as Strings from '~/common/strings';
|
|
|
|
import * as System from '~/components/system';
|
|
|
|
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 STYLES_COLOR_BAR = css`
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 72px 24px 0 0px;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_COLOR_TEXT = css`
|
|
|
|
display: block;
|
|
|
|
text-transform: uppercase;
|
|
|
|
letter-spacing: 0.2px;
|
|
|
|
font-size: 12px;
|
|
|
|
padding: 8px;
|
|
|
|
color: ${Constants.system.white};
|
|
|
|
background-color: rgba(0, 0, 0, 0.4);
|
|
|
|
margin-top: 8px;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default class SystemPageColors extends React.Component {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<SystemPage title="FCDS: Colors" description="Lorem Ipsum" url="https://fps.onrender.com/system/colors">
|
2020-06-22 14:15:04 +03:00
|
|
|
<System.H1>
|
|
|
|
Colors <ViewSourceLink file="colors.js" />
|
|
|
|
</System.H1>
|
2020-06-22 14:00:51 +03:00
|
|
|
<br />
|
|
|
|
<br />
|
2020-06-22 14:28:14 +03:00
|
|
|
<System.P>All of the colors the Filecoin Client uses.</System.P>
|
2020-06-22 14:00:51 +03:00
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
{Object.keys(Constants.system).map((each) => {
|
|
|
|
const hex = Constants.system[each];
|
|
|
|
const rgba = Strings.hexToRGBA(hex);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div
|
|
|
|
key={each}
|
|
|
|
css={STYLES_COLOR_BAR}
|
|
|
|
style={{
|
|
|
|
backgroundColor: hex,
|
|
|
|
color: Constants.system.black,
|
|
|
|
}}>
|
|
|
|
<span css={STYLES_COLOR_TEXT}>{each.toUpperCase()}</span>
|
|
|
|
<br />
|
|
|
|
<span css={STYLES_COLOR_TEXT}>{hex}</span>
|
|
|
|
<br />
|
|
|
|
<span css={STYLES_COLOR_TEXT}>{rgba}</span>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
})}
|
|
|
|
</SystemPage>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|