mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-18 14:31:44 +03:00
155 lines
4.0 KiB
JavaScript
155 lines
4.0 KiB
JavaScript
import * as React from "react";
|
|
import * as System from "~/components/system";
|
|
import * as Constants from "~/common/constants";
|
|
|
|
import { css } from "@emotion/react";
|
|
|
|
import SystemPage from "~/components/system/SystemPage";
|
|
import ViewSourceLink from "~/components/system/ViewSourceLink";
|
|
|
|
const STYLES_CSS_LABEL = css`
|
|
display: block;
|
|
letter-spacing: 0.2px;
|
|
font-size: 12px;
|
|
color: ${Constants.system.darkGray};
|
|
margin-bottom: 8px;
|
|
`;
|
|
|
|
export default class SystemPageTypography extends React.Component {
|
|
render() {
|
|
return (
|
|
<SystemPage
|
|
title="SDS: Typography"
|
|
description="..."
|
|
url="https://fps.onrender.com/system/typography"
|
|
>
|
|
<System.H1>
|
|
Typography <ViewSourceLink file="system/typography.js" />
|
|
</System.H1>
|
|
<br />
|
|
<br />
|
|
<System.P>
|
|
The Filecoin Client uses the <a href="https://rsms.me/inter/" target="_blank">Inter typeface family</a>.
|
|
</System.P>
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<System.H2>Imports</System.H2>
|
|
<hr />
|
|
<br />
|
|
<System.P>
|
|
Import React and the Typography Component.
|
|
</System.P>
|
|
<br />
|
|
<System.CodeBlock>
|
|
{`import { H1, H2, H3, H4, P, UL, OL, LI } from 'slate-react-system'; `}
|
|
</System.CodeBlock>
|
|
<br />
|
|
<br />
|
|
<System.H2>Typescale</System.H2>
|
|
<hr />
|
|
<br />
|
|
<span css={STYLES_CSS_LABEL}>1.953rem Semi Bold</span>
|
|
<System.H1>
|
|
This is heading level 1
|
|
</System.H1>
|
|
<br />
|
|
<span css={STYLES_CSS_LABEL}>1.563rem Medium</span>
|
|
<System.H2>
|
|
This is heading level 2
|
|
</System.H2>
|
|
<br />
|
|
<span css={STYLES_CSS_LABEL}>1.25rem Medium</span>
|
|
<System.H3>
|
|
This is heading level 3
|
|
</System.H3>
|
|
<br />
|
|
<span css={STYLES_CSS_LABEL}>1rem Medium</span>
|
|
<System.H4>
|
|
This is heading level 4
|
|
</System.H4>
|
|
<br />
|
|
<br />
|
|
<System.CodeBlock>
|
|
{`
|
|
<System.H1>
|
|
This is heading level 1
|
|
</System.H1>
|
|
|
|
<System.H2>
|
|
This is heading level 2
|
|
</System.H2>
|
|
|
|
<System.H3>
|
|
This is heading level 3
|
|
</System.H3>
|
|
|
|
<System.H4>
|
|
This is heading level 4
|
|
</System.H4>
|
|
`}
|
|
</System.CodeBlock>
|
|
<br />
|
|
<br />
|
|
<System.H2>Ordered and Unordered Lists</System.H2>
|
|
<hr />
|
|
<br />
|
|
<System.OL>
|
|
<System.LI>Rainbow</System.LI>
|
|
<System.LI>Cloud</System.LI>
|
|
<System.LI>Cake</System.LI>
|
|
</System.OL>
|
|
<br />
|
|
<System.UL>
|
|
<System.LI>Cloud</System.LI>
|
|
<System.LI>Cake</System.LI>
|
|
<System.LI>Rainbow</System.LI>
|
|
</System.UL>
|
|
<br />
|
|
<br />
|
|
<System.CodeBlock>
|
|
{`
|
|
<System.OL>
|
|
<System.LI>Rainbow</System.LI>
|
|
<System.LI>Cloud</System.LI>
|
|
<System.LI>Cake</System.LI>
|
|
</System.OL>
|
|
|
|
<System.UL>
|
|
<System.LI>Cloud</System.LI>
|
|
<System.LI>Cake</System.LI>
|
|
<System.LI>Rainbow</System.LI>
|
|
</System.UL>
|
|
`}
|
|
</System.CodeBlock>
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<System.H2>Typefaces</System.H2>
|
|
<hr />
|
|
<br />
|
|
<System.H3>Inter</System.H3>
|
|
<System.P>a b c d e f g h i j k l m n o p q r s t u v w x y z</System.P>
|
|
<System.P>A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</System.P>
|
|
<System.P>0 1 2 3 4 5 6 7 8 9</System.P>
|
|
<br />
|
|
<System.H3>Fira Code</System.H3>
|
|
<System.P>a b c d e f g h i j k l m n o p q r s t u v w x y z</System.P>
|
|
<System.P>A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</System.P>
|
|
<System.P>0 1 2 3 4 5 6 7 8 9</System.P>
|
|
<br />
|
|
<System.H3>Inter</System.H3>
|
|
<System.P>a b c d e f g h i j k l m n o p q r s t u v w x y z</System.P>
|
|
<System.P>A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</System.P>
|
|
<System.P>0 1 2 3 4 5 6 7 8 9</System.P>
|
|
|
|
|
|
|
|
|
|
|
|
</SystemPage>
|
|
|
|
);
|
|
}
|
|
}
|